Force/Required Response Based on Embedded Data | XM Community
Skip to main content
Question

Force/Required Response Based on Embedded Data

  • February 10, 2022
  • 2 replies
  • 73 views

Forum|alt.badge.img+6

I'm not quite knowledgeable when it comes to Javascript. We have some Star Rating questions in which a respondent may or may not answer. The problem is that we want to make it required for some countries (set in Embedded data). Is it possible in Javascript? How?

2 replies

wpm24
Level 2 ●●
Forum|alt.badge.img+8
  • Level 2 ●●
  • February 10, 2022

Using branching logic, in the survey flow you can branch people that indicate they are from X country from a drop down list to a version of the question that requires a response whereas all other participants will be branched to a version of the same question that does require it. This will create two different data points for the same question (e.g., question 1 for participants from X country AND question 1 for participants NOT from X country), but can easily be merged into one in whatever statistical package you use afterwards.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • February 10, 2022

https://community.qualtrics.com/XMcommunity/discussion/19602/force-required-response-based-on-embedded-dataYou can't make a question required with JS. The best you can do with JS is disable the Next button on that page until the question is answered.