Expand my Community achievements bar.

SOLVED

How to use both the 'text' and 'value' from a drop down list for different purposes

Avatar

Level 3

Hi - I have used code referencing the 'specified values' of the items in a drop down list to hide/show a range of subforms. I want to be able to use the 'text' of the same items to populate a text field. This text field will become the 'subject' line of the email that this form is attached to when submitted. Is this possible, or will I have to change the drop down list to 'global binding' and change the code for the subform functionality? Thanks for any help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The .rawValue of the drop down control will return the specified value but the .formattedValue will return the display text.

Regards

Bruce

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

The .rawValue of the drop down control will return the specified value but the .formattedValue will return the display text.

Regards

Bruce