how to add a validation customized to a multiple choice response option | XM Community
Skip to main content
Solved

how to add a validation customized to a multiple choice response option

  • January 12, 2024
  • 2 replies
  • 164 views

Forum|alt.badge.img+3
  • Level 3 ●●●
  • 14 replies

Hi, Is there a way to add a validation customized to a multiple choice response option (either select all that apply or multiple choice) with an added WITH a text box entry added to the response option? 

How do you enter in a validation check that only numeric is entered or character is entered?

 

For example. 

Other, specify: [enter in free text]  

 

Best answer by TomG

@four77,

You can do validation on multiple choice text entry without custom validation:

 

2 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • January 12, 2024

Assuming you want only numbers, letters and spaces can be entered in the text box, the custom validation will be as below:

Other → is not selected

OR

Other text entry → matches regex → ^[0-9a-zA-Z\s]*$

 


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • January 12, 2024

@four77,

You can do validation on multiple choice text entry without custom validation: