I have a form set up with a radio button group for selecting from a list of job functions (Administration, Instruction, Technical / IT).
Upon form submission a post is created.
In the post body field I have a javascript with a variable (var JobFunction = {Which of the following best describes your job function?:4};).
The merge tag is being passed like this:
var JobFunction = Technical / IT;
rather than
var JobFunction = "Technical / IT";
Is there some way I can pass the merge tag as a string?
In the script I'm trying to test the variable and use the value to set some other variables like follows:
if (JobFunction=="Technical / IT"){ do something }
The problem is that my if statement doesn't work because it doesn't seem to see the variable as a string.