Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dropdown selection to text box

Participant ,
Aug 13, 2024 Aug 13, 2024

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. 

TOPICS
Create PDFs , PDF , PDF forms
677
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Aug 13, 2024 Aug 13, 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.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2024 Aug 13, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 14, 2024 Aug 14, 2024

Thank you very much. These both worked out. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2024 Aug 14, 2024
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines