How to dynamically change the display value of the selected option in a select box variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 04:03 AM
Hi,
I have created a select box variable, where I am creating the options dynamically using g_form.addOption(), which is working fine.
Below are some sample options
1. label : 12345 Bank of India, value : 12345, displayValue: 12345 Bank of India
2. label: 67891 State Bank of India, value: 67891, displayValue: 67891 State Bank of India
After I select any of the above options, I want to change the label of the selected option equal to value.
Because I want to show the users the number and the bank name while selecting but after selection I want the variable to show only the number.
IS that possible??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 11:39 AM
Hello @suvro :
You can not display different value than selected one you can make use of Field Message to display the value just below the selected field