How can I add multiple validation type to a single question? | XM Community
Skip to main content
Solved

How can I add multiple validation type to a single question?

  • September 1, 2020
  • 2 replies
  • 593 views

Hello,
I am trying to add multiple validations to a single question. The question asks the user to input their login (free text) and I want to validate only if the answer is text-only, no spaces, and less than 10 length.
How can I achieve this?
Thank you,
Deahna

Best answer by rondev

Use "match regex" in custom validation and put this in validation text entry box:
^[A-Za-z]{1,9}$
The respondent will be only allowed to move to next question if he/ she enters at least one and at most 9 characers in text box and characters can only be small and capital letters.

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • September 2, 2020

Use "match regex" in custom validation and put this in validation text entry box:
^[A-Za-z]{1,9}$
The respondent will be only allowed to move to next question if he/ she enters at least one and at most 9 characers in text box and characters can only be small and capital letters.


  • Author
  • September 3, 2020

rondev this worked perfectly, thank you!! :)