memphis designer
New Coder
I will appreciate any help here. I am creating a simple Javascript code to populate two fields dependent on what the user selects from a pull-down menu. Both fields will be populated with the same value. The error message says, "SyntaxError: missing : after case label 4: at line 6."
Here is the code:
Here is the code:
Code:
var dropdownValue = this.getField("Dropdown1").value;
switch (dropdownValue) {
case “Ortho Spine Surgeon”:
this.getField("Textfield1").value = “$3,600”;
this.getField("Textfield2").value = “$3,600”;
break;
case “Neuro Surgeon”:
this.getField("Textfield1").value = “$3,600”;
this.getField("Textfield2").value = “$3,600";
break;
case “Pain Management”:
this.getField("Textfield1").value = “$3,600”;
this.getField("Textfield2").value = “$3,600";
break;
case “Anesthesiologist”:
this.getField("Textfield1").value = “$3,600”;
this.getField("Textfield2").value = “$3,600";
break;
case “PMR”:
this.getField("Textfield1").value = “$2,800”;
this.getField("Textfield2").value = “$2,800";
break;
default: this.getField("Textfield1").value = "";
this.getField("Textfield2").value = "";
break;