Auto-populate form fields when a check box is ticked
Hi,
I am creating a form to collect new account information. I have some fields that will be mandatory including 'contact name' and 'owner name'. What I want is for the text field of 'contact name' to auto-populate with the text from 'owner name' if the customer ticks a check box that says 'tick if same as above'.
I have done some digging online and the best script I found so far was;
if (getField("Check Box 21").value!="On")
this.getField(“Contact Name”).value = this.getField(“Owner Name“).value;
But I am getting this error;
SyntaxError: missing ) after argument list 2: at line 3
Any advice on how to fix this would be great.
Thanks!