Hiding Form Fields Depending On Selection
Hello all,
I'm currently in the process of creating a form with multiple different form fields and I only want certain fields to populate, based on what action the user selects from the primary field. I have been using the following script:
if (this.getField("Status Change").value == "Enter Value"){
event.target.display = display.visible;
}
else if (this.getField("Status Change").value == "Enter Value") {
event.target.display = display.visible;
}
else{
event.target.display = display.hidden;
}
This script does exactly what I need it to do, but since there are a bunch of different form fields in this document, I have to manually add this script to each form field under Calculate > Custom calculation script. I am looking for an easier way to do this if possible.
Thanks!
