I am trying to get an application to pull a price based on the particular product they select. The code I have written is
var v1 = Combo Box1;
var f2 = getField("Rating");
if (v1 = "Safety/Supervisor Freediver") f2.value = "267.50";
if (v1 = "Asst Freediver Instructor") f2.value="370.50";
if (v1 = "Basic Freediver Instructor") f2.value = "679.50";
if (v1 = "Intermediate Freediver Instructor") f2.value = "782.50";
if (v1 = "Advanced Freediver Istructor")
f2.value = "885.50"
if (v1 = "Instructor Trainer")
f2.value = "885.50"
if(v1 = "Instrutor Trainer Trainer")
f2.value = "885.50"
I am brand new to writing Java Script and the following error comes up when I try to save:
missing; before statement
1: at line 2
Any help would be greatly appreciated.
You should look at the various tutorials and eSeminars on demand to learn how write Acrobat JavaScript.
George Kaiser