New to everything - need help with javascript code in acrobat


Hi everyone, I am new to creating pdf forms and I need help with a javascript code I am trying to run. I want to my submit button to email various people based off my location drop down. I got that figured out but now I can’t get it to display the form name and subject name that I want. I copied a code from another form but I keep getting a syntax error. Please help!!

var email = this.getField(“Location”).value;
this.mailForm(false, email);
cTO: email address;
cSubject: “Ward Tire Order”;