Javascript formula Not Working
Total nubie here with no knowledge of javascript yet. I have one last item I need to complete a form I am working on. I need to take the amounts of two fields and check it against a drop down menu of Yes or No to determine if the items should be taxed 6%. The formula someone provided to me didn't work. It was:
var a = this.getField("Item3_Amt").value; var b = this.getField("Item4Amt").value; var c = this.getField("Dropdown").value; if(c == "No"){event.value = "$0.00"; }else event.value = (a+b)*0.6;
Unfortunately it doesn't work. Can anyone tell me what the problem might be?
Also, after looking at the form a bit more I think it would work better to replace the dropdown with a check box. So what would a working formula look like with a checkbox instead of the dropdown.
For you guys with the knowledge, your awesome! Thanks
