Skip to main content
Inspiring
March 30, 2023
Question

Show/hide fields via Dropdown based on values

  • March 30, 2023
  • 1 reply
  • 592 views

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;

}

 

 

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
March 31, 2023

File is empty.

What exactly doesn't work for you?

Inspiring
March 31, 2023

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.