Can I use java script for dispay logic? | XM Community
Skip to main content
Solved

Can I use java script for dispay logic?

  • November 21, 2018
  • 2 replies
  • 46 views

Forum|alt.badge.img
I have 100 question pairs--each pair in its own block. The second question in each pair should be presented only if the first question is answered before the timing question times it out. Unfortunately there are 12 response options in the first question, so recreating the display logic by indicating 'not selected' for each response option (x100) is not very efficient. Is there are more efficient way to do this?

Best answer by MohammedAli_Rajapkar

You can use embedded data Add an embedded data in survey flow Then through JavaScript, based on the condition you can assign a value to the embedded data Then based on the embedded data you can apply the display logic.

2 replies

MohammedAli_Rajapkar
QPN Level 5 ●●●●●
Forum|alt.badge.img+20
You can use embedded data Add an embedded data in survey flow Then through JavaScript, based on the condition you can assign a value to the embedded data Then based on the embedded data you can apply the display logic.

Forum|alt.badge.img
  • Author
  • November 22, 2018
Thank you, that makes perfect sense. Much appreciated!