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

Show/hide fields via Dropdown based on values

Explorer ,
Mar 30, 2023 Mar 30, 2023

I need your help, I want show and hide fields via dropdown menu based on values, I tried alot different methods but didn't achieve perfect results.   Thank you in advance for your time and consideration.

Code I used here............

if(event.target.value <30){
this.getField("TT534").display = display.hidden;
this.getField("TT5checkeuoruk3").display = display.hidden;
this.getField("TT542").display = display.hidden;
this.getField("TT543").display = display.hidden;

}
else{
this.getField("TT534").display = display.visible;
this.getField("TT5checkeuoruk3").display = display.visible;
this.getField("TT542").display = display.visible;
this.getField("TT543").display = display.visible;

}

 

 

TOPICS
Acrobat SDK and JavaScript , Windows
479
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 ,
Mar 30, 2023 Mar 30, 2023

File is empty.

What exactly doesn't work for you?

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
Explorer ,
Mar 31, 2023 Mar 31, 2023
LATEST

Hi Nesa,

I want to show and hide fields via dropdown based on values, if values less <30 fields hide else show.

mistakenly I uploaded empty file, I apologies for any inconvience regarding this, File is attached here,  this code is working but too much slow, when I click twice then it show or hide. Thank you for your time and consideration.

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