Non-numeric error message | XM Community
Question

Non-numeric error message

  • 20 September 2021
  • 1 reply
  • 2 views

Badge

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

Userlevel 4
Badge +5

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