New to Adobe Forms
I am working on creating a digital form that can be used for inpections at my workplace. I am using Adobe Acrobat Pro and Preparing the form from a pdf.
My question is this,
I have several text fields that are dependent on the choice of a dropdown at the top of the form. For example, if the user chooses "Bunker" from the "Substation" dropdown, only certain text fields will be applicable due to that selection. If the User chooses a differnt choice other fields will be applicable. They could be the same field or different fields based on the selection. I want to be able to tell the user what fields they will need to enter due to that selection.
How can I populate a field based on the selection. I want to be able to go into each field and write a script that will populate some value based on the dropdown selection. This is what I have tried.
if (this.getField("Substation")=="Bunker"){event.value = "N/A";}
else if (this.getField("Substation")=="Avery"){event.value = "Required"}
else if (this.getField("Substation")=="Fords P"){event.value = "N/A"}
else {event.value = "";}
ect.....
There are 27 possibilities for the dropdown field and 67 different fields that need to be populated.
This dosen't seem to be working. Any thoughts?