Skip to main content
Known Participant
August 14, 2024
Answered

Dropdown selection to text box

  • August 14, 2024
  • 1 reply
  • 719 views

Great Day Experts, 

 

             I have a hard issue for me, but it is simple for you all.  I am looking to have a dropdown (AWS/AWR) fill a text box (RATING SELECTION). Just that simple. I greatly appreciate your help. 

This topic has been closed for replies.
Correct answer PDF Automation Station

You can either enter the following custom calculation script in the text box:

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

In this case the user won't be able to change the value of the text box manually because it will always revert to the calculated value.  Or you enter the followng validation script in the dropdown:

this.getField("RATING SELECTION").value = event.value;

In this case the user will be able to change the text field value after it is set with the dropdown.  In both cases, make sure the "Commit selected value immediately" is checked in the options tab of the dropdown.

1 reply

PDF Automation Station
Community Expert
Community Expert
August 14, 2024

You can either enter the following custom calculation script in the text box:

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

In this case the user won't be able to change the value of the text box manually because it will always revert to the calculated value.  Or you enter the followng validation script in the dropdown:

this.getField("RATING SELECTION").value = event.value;

In this case the user will be able to change the text field value after it is set with the dropdown.  In both cases, make sure the "Commit selected value immediately" is checked in the options tab of the dropdown.

Known Participant
August 14, 2024

Thank you very much. These both worked out. 

PDF Automation Station
Community Expert
Community Expert
August 14, 2024