Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Accessing Value Field in DropList

Avatar

Level 2
I have a droplist which is populating from a database. The droplist consist of Staff Name for the Text in the list and Staff Codes for the Values. After the user selects a Staff member from the droplist I want to use the code to select records from another DataConnection. I just can't figure out the correct syntax to access the value portion of the droplist selection. Any assistance would be appreciated.
3 Replies

Avatar

Former Community Member
It should be DropDownListName.rawValue;



Chris

Adobe Enterprise Developer Support

Avatar

Level 2
Sorry, could you give me the syntax to capture that to a variable that could be used in the SOL for the Data Connection. I'm putting it in the Change event.

Avatar

Former Community Member
OK, if your using the Change event the rawValue won't be commited yet. So it would be:



var myVar = xfa.event.newText;



Chris

Adobe Enterprise Developer Support