Skip to main content
Inspiring
July 6, 2020
Answered

Drop Down List Export Value

  • July 6, 2020
  • 1 reply
  • 1582 views

Not trying to do anything fancy, I just want the export value from a drop down list item to populate in a specific text box. I feel like it would be a fairly easy thing to do, but all the answers I've read so far are about Javascripts - is this necessary? How do you link the two fields? My drop down list is called "Support Item" and the text box is called "Support Item Number".

This topic has been closed for replies.
Correct answer sarmcgrah

Update - I was wrong to add it to Custom Format Script, I changed it to Calculate >  Custom Calculation Script and it is now working.

1 reply

sarmcgrahAuthor
Inspiring
July 6, 2020

Update - I've just added the following script to the text box properties (Custom Format Script);

event.value = this.getField("Dropdown List").value;

It is now displaying the export value of the first drop down item however it will not change when other items are selected in the list. How can I fix this?

sarmcgrahAuthorCorrect answer
Inspiring
July 6, 2020

Update - I was wrong to add it to Custom Format Script, I changed it to Calculate >  Custom Calculation Script and it is now working.