Javascript to Autocode Hidden variable and to autocode Ranking question | XM Community
Question

Javascript to Autocode Hidden variable and to autocode Ranking question

  • 27 August 2019
  • 0 replies
  • 12 views

Dear Community,

I just started to learn qualtric and need this urgently for one of my test project.
I would like to ask if someone here can share with me the javascript to autocode a Multiple answer question from a rating grid question?
Here is the example:
Q1 - Grid rating question with a scale 1-5 and 5 options
hQ2 -a hidden Multiple answer question with the Q1 5 options
Q3 - Ranking question with the same 5 options.

The logic/ code that I would like to write is
1. If there is rating 5 in Q1 then store all rated 5 options into hQ2
2. if there is no rating 5 then store all rated 4 options into hQ2
3. Q3 filter selected autocode option in hQ2
4. if only 1 answer in hQ2 then auto ranking Q3 for the only option to rank 1

Kindly advise. Have a nice day all!

Best Regards,
Jonny

0 replies

Be the first to reply!

Leave a Reply