Custom validation message based on character count | XM Community
Solved

Custom validation message based on character count

  • 28 June 2018
  • 1 reply
  • 87 views

Userlevel 4
Badge +2
Hey all - Hoping to get some help here. I want to be able to put a custom validation message in for text entry questions that don't hit a certain character count. I know through the UI you can either use the UI for character count OR custom message, but not a character count validation WITH a custom message. Any thoughts on how to do this?

Thanks!
icon

Best answer by TomG 29 June 2018, 01:54

View original

1 reply

Userlevel 7
Badge +27
The page reloads when there is a validation error. So, if you do the validation through the UI you could have an addOnload JavaScript look for the system generated validation message and change it to your desired message. The script will change it before the respondent has a chance to read the original system generated message.

Leave a Reply