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

stephenf8734174 08-12-2016

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.

Accepted Solutions (1)

Accepted Solutions (1)

BR001
MVP
11-12-2016

Hi,

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

Regards

Bruce