Automatically set "none of these" to true when the question is not displayed | XM Community
Skip to main content
Question

Automatically set "none of these" to true when the question is not displayed

  • October 5, 2023
  • 1 reply
  • 29 views

PhilipMoore
Level 2 ●●
Forum|alt.badge.img+11

I have a “how familiar are you question” followed by a “which of these” question. The “which of these” question is only displayed if familiar = true. When familiar = false, I want the value for “which of these” to automatically be set to “none of these”. I need the “none of these” value set right away so subsequent logic will function properly. Any guidance?

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • October 5, 2023

@PhilipMoore,

You can’t record an answer for a question that isn’t displayed.

A way around it is to use display logic on the choices other than ‘None of these’ in the second question to only display if familiar is true. Then use JS to auto-answer the second question if there is only one choice displayed. See JS here.