How to determine the recode value of a displayed choice | XM Community
Skip to main content

I have a hidden field that has one displayed choice. How can I figure our the recode value ofthat displayed choice and store it on another hidden field?
For context, I have a hidden multiple choice field (Q1) that randomly displays 1 choice out of a max of 20 choices. I want to store that displayed choice on another variable (Q2) OR auto-select that choice within Q1. At the end of it, I just want that choice saved in the survey data.

In the JS of Q1, just add the below line and at Q2 pipe the selectedrecode or selected choice as per your requirement.
jQuery('input[type="checkbox"]').prop('checked',true)


Leave a Reply