Custom Requirement to show a numeric question along with mutually exclusive option | XM Community
Skip to main content
Solved

Custom Requirement to show a numeric question along with mutually exclusive option

  • July 23, 2021
  • 2 replies
  • 43 views

Forum|alt.badge.img+2

I have a numeric question with 2 options + "Don't Know" option.
Respondent can either provide response in two numeric options or can select "Don't Know". Please refer snapshot for your better understanding of requirement and share your inputs on how to achieve it.
Q19.png

Best answer by grahulp5

You will have to create 2 questions; one with the 2 text boxes and another a multi-punch.
Then add a code on keypress function (google it) if the checkbox is clicked then empty the text box and then onChange if the textbox.length>=1 then remove the check from checkbox.

2 replies

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • Answer
  • July 26, 2021

You will have to create 2 questions; one with the 2 text boxes and another a multi-punch.
Then add a code on keypress function (google it) if the checkbox is clicked then empty the text box and then onChange if the textbox.length>=1 then remove the check from checkbox.


Forum|alt.badge.img+2
  • Author
  • July 27, 2021

Thanks grahulp5 :)