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

Dropdowns and Buttons

New Here ,
Jul 23, 2024 Jul 23, 2024
  1. how do you populate a text field based on dropdownlist selection with a button pdf adobe
TOPICS
Windows
227
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
New Here ,
Jul 23, 2024 Jul 23, 2024

The button will be used to populate the text field from the selected dropdown list.

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 ,
Jul 23, 2024 Jul 23, 2024
LATEST

You can use something like this as the Mouse Up code for the button:

 

if (this.getField("Dropdown1").valueAsString=="Option 1") this.getField("Text1").value = "Fail";

else if (this.getField("Dropdown1").valueAsString=="Option 2") this.getField("Text1").value = "Pass";

else if (this.getField("Dropdown1").valueAsString=="Option 3") this.getField("Text1").value = "Excellent";

 

Adjust the field-names and values as needed, of course.

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