javascript validation | XM Community
Skip to main content
Solved

javascript validation

  • September 9, 2021
  • 4 replies
  • 136 views

Forum|alt.badge.img+2

Is there a way to have a text entry validation implemented survey wide? We have a survey were all open ended questions or 'other specify' entries should have a limit of 25 characters. is there a way to apply this in the survey HTML, instead of setting a validation for each question?

Best answer by teamps

https://community.qualtrics.com/XMcommunity/discussion/comment/40375#Comment_40375thanks so much!!

4 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • September 9, 2021

You can add this code to the header HTML and it'll limit the entries to 25 chars.


Forum|alt.badge.img+2
  • Author
  • Answer
  • September 9, 2021

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • September 9, 2021

A static information is simple, use the code below. However, if you want something that pops up based on their inputs then it's a little complicated.




Forum|alt.badge.img+2
  • Author
  • September 10, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/40380#Comment_40380Thanks so much these are perfect! Great to have both. Appreciate the quick reply