Non-numeric error message | XM Community
Skip to main content
Question

Non-numeric error message

  • September 20, 2021
  • 1 reply
  • 5 views

Forum|alt.badge.img

l've validated some parts of my survey to numeric inputs only ....my problem is when a person enters a non-numeric input they are receiving an error message when they finally press the next button.....how can l edit this such that they receive the error message as soon as they leave the text entry area where they put their non-numeric response (is the solution on addOnUnload(function))

1 reply

Subu
Level 2 ●●
Forum|alt.badge.img+5
  • Level 2 ●●
  • 53 replies
  • September 22, 2021

If you are comfortable with basic JavaScript or jQuery then you can add dynamic validation.
For this requirement you can use .focusout() function in jQuery. You can refer this link for example.
.focusout() | jQuery API Documentation
Add code inside addOnReady() function.


Leave a Reply