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

Avatar

Avatar

stephenf8734174

Avatar

stephenf8734174

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)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
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

Answers (1)

Answers (1)

Avatar

Avatar

stephenf8734174

Avatar

stephenf8734174

stephenf8734174

14-12-2016

Thanks Bruce - that works well.