Adding multiple "Custom Validation" to a single question | XM Community
Skip to main content
Solved

Adding multiple "Custom Validation" to a single question

  • October 31, 2018
  • 3 replies
  • 436 views

Forum|alt.badge.img+3
Hi all, in one question I need to show two kinds of customized Error Messages, based on two different condition: is it possible to add in a single question, two "Custom validation"? Regards

Best answer by Eesh

@Simone_Salvano_Kantar , Yes, this is possible. You can achieve this by using Javascript. There are some default custom validation like email validation, phone no validation or zipcode. Please refer the link for more details. Hope this helps.

3 replies

Eesh
QPN Level 2 ●●
Forum|alt.badge.img+3
  • QPN Level 2 ●●
  • Answer
  • November 1, 2018
@Simone_Salvano_Kantar , Yes, this is possible. You can achieve this by using Javascript. There are some default custom validation like email validation, phone no validation or zipcode. Please refer the link for more details. Hope this helps.

PeeyushBansal
Level 6 ●●●●●●
Forum|alt.badge.img+43
  • Level 6 ●●●●●●
  • November 2, 2018
Using custom validation , I think you can display only one error message based on one condition. If you want to add more error messages you can do same by creating condition in java script.

Forum|alt.badge.img+3
Thank you guys!!