How to dynamically change the display value of the selected option in a select box variable

suvro
Mega Sage
Mega Sage

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??

 

 

 

 

10 REPLIES 10

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