Expand my Community achievements bar.

Populate a text field using selection from a dropdown list

Avatar

Level 2

I would like to know how I can populate a text field with a value from a selection from a dropdown list on the same form.

For example, if one of the values in the drop down list is "value1" the text field's equivalent maybe "Blue"

So I'm sure there is some scripting necessary for the text field that may be something like "if the value in dropdownlist is "value1", value in textfield is "Blue"...."

This of course will be applied to multiple value equivalents for the text field ....

Thanks.

4 Replies

Avatar

Former Community Member

Here is a sample ...the code to populate the field is on the exit event of the DDlist. Notice how each DDList entry can have two different values (on the Binding tab).

Hope that helps

Paul

Avatar

Level 2

thanks for the quick reply...but I didn’t get the sample you mentioned..

Avatar

Level 2

sorry ..didnt see the attachemnt. Thank you