Adobe Acrobat Pro Dc - JavaScript to show/hide Fields based on drop Down Choices
Hello,
I'm very new to Java Script and I'm trying to create a form that will only show certain fields dependant on what is selected in the drop down menu. Can you please help me figure out what is wrong with my code?
If they select "Special Merit Increase" from the drop down box then I want fields "GivenFor SpecialMeritIncrease", "AmountInfo", "Enter%Step" to appear.
if(this.getField("Award_Type").value==("Special Merit Increase"){
event.target.display=display.visable;}
this.getField("GivenForSpecialMeritIncrease").display = fieldHide;
this.getField("AmountInfo").display = fieldHide;
this.getField("Enter%Step").display = fieldHide;
else{
if(this.getField("Award_Type").value==("Premium Pay Award")}
event.target.display=display.visable;}
this.getField("GivenForPremiumPay").display = fieldHide;
this.getField("PremiumPayAmount").display = fieldHide;
this.getField("$TotalAmount").display = fieldHide;
this.getField("$WeeklyAmount").display = fieldHide;
Thank you advance!
