Oops I dont know how that ended up being different when I put it on here but they are the same in my form (like how you put it with the item(i) instead of the brackets)
And the weird thing is, I do not get any errors at all when previewing the form, or checking script syntax. I notice that I do get this error using the java console in the preview:
ReferenceError: This is not defined
Not sure what it means though, any ideas?
Sorry guys, havent been able to upload the form until now because of some computer issues. Got them squared away now.
Here is the form:
Not 100% how my form is because I took out some of our companies information and whatnot, but the fields/scripts in question are all there.
Thanks agian for your help
Here is your form back to you: https://acrobat.com/#d=IA67zcTBrWlnpcYS234*XQ.
The issue wasn't the script. If you select the dropdown and go to the Object > Binding palette, you will see you had ticked "Specify values" and these were set to 1, 2 and 3.
This meant that if the user selected LABOR, the value of the dropdown was "1" and NOT "LABOR". This was throwing the if statement.
I deselected the specify values and it worked as expected.
Hope that helps,