For one of my online campaigns, I am capturing the program name from a parameter in a URL and storing it in an embedded data field. Based on the data that is captured a single choice question in the survey has to be coded automatically.
E.g. The embedded data field 'ProgramName' has the data 'Program1'. Based on this the option Program1 in a single-choice question (as shown below) should be auto-coded.
What is the name of your program?
- Program1
- Program2
- Program3
I assume JavaScript code would be required. Any suggestions or ideas to achieve this will be really helpful.