Skip to main content
logistics277258970
Participant
November 21, 2018
Answered

How to change the text the user puts in, if the text is 'incorrect'?

  • November 21, 2018
  • 1 reply
  • 453 views

Good evening

I am wondering if there is a way to change text that the user puts in into "ERROR" if that said text is wrong.

For more clarification, I am trying to make a script where, if the user puts in the code "Z85" in a field where it shouldn't be there, it'll change the "Z85" into "ERROR."

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer try67

As the custom validation script of that field enter this code:

if (event.value=="Z85") event.value = "ERROR";

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 21, 2018

As the custom validation script of that field enter this code:

if (event.value=="Z85") event.value = "ERROR";