Copy link to clipboard
Copied
I am trying to create a field that is only enabled when the checkbox next to it is checked. I managed to write the value to a field so I know it is On vs Off.
Error says: "SyntaxError: missing ; before statement
1: at line 2
Here is my code:
If (this.getField("Knowledge arcana").value == "On") {event.value = ( this.getField("INT Modifier").value + this.getField("Ranks16").value ) + this.getField("Misc Mod16").value} else {event.value = ""};
Any help is greatly appreciated.
Use if not If. Javascript is case sensitive.
Use if, not If
Copy link to clipboard
Copied
Use if not If. Javascript is case sensitive.
Copy link to clipboard
Copied
Wow, I had no idea! That fixed my issue. Thank you so so much!
Copy link to clipboard
Copied
Use if, not If