ZCDisplayValue Function
***Please Note*** (Options that contain (") or (') in the label will not work)
There may be times when you need to use the "Label" of an option list rather than just the index value. "ZCDisplayValue" function can be used to capture the text of any element utilizing options lists. Multi-select widgets will display each value that is selected, separated by a comma.
You can then use this statement in the Dynamic value of a text, or text area element to populate the option list choice(s) selected. The data column name for the element that contains the option list for this example is "my_list"
Dynamic Value: ZCDisplayValue_my_list
This function could be used to give the user freedom to add onto the list, or modify the selection(s) they made.
You may want to add a message either before, or after the selections from the list. Use any String to pre-populate the text, or text area by doing the following.
Dynamic Value: "This is what I want to show " + ZCDisplayValue_my_list
or
Dynamic Value: ZCDisplayValue_my_list + " This is what I want to show"
Make sure to include a space before you close the quotes so that the text does not run together. Place the space at the end of the String when adding the ZCDisplay after the string. Or place the space at the beginning of the String if ZCDisplay comes first.
ZCDisplayKey
Much like ZCDisplayValue described above, ZCDisplayKey will instead show key value of the option list instead of the index value or label.
In the dynamic value of the field you are passing the key value to, simply put ZCDisplayKey_data_column_name (here data_column_name represents the data column name of the element you are passing the data from).
Comments
0 comments
Please sign in to leave a comment.