javascript validation | Experience Community
Skip to main content
Solved

javascript validation

  • Sep 9, 2021 7:58 PM UTC
  • 4 replies
  • 184 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!!

View original

4 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Sep 9, 2021 9:54 PM UTC

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
  • Sep 9, 2021 10:00 PM UTC

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Sep 9, 2021 10:04 PM UTC

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
  • Sep 10, 2021 12:39 PM UTC

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