they select "Executive Committee" from the dropdown box
the code for Executive Committee is "561"
the code 561 will automatically appear in a separate textbox
All you have to do is set the code as the "Export Value" for each item in your field and then use this simple custom calculation script in the text field where you want to display it:
event.value = this.getField("Committee").valueAsString;
Make sure to tick the option to immediately commit the selected value of the drop-down field for it to work the moment a selection is made.
Thank you for the instructions. They worked!