How to determine the recode value of a displayed choice | XM Community
Solved

How to determine the recode value of a displayed choice

  • 26 June 2020
  • 1 reply
  • 8 views

Userlevel 2
Badge +6

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.

icon

Best answer by SurajK 26 June 2020, 18:16

View original

1 reply

Userlevel 5
Badge +4

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