Validate a BackOffice Field Using Regex

Snow Tomcal
Tera Expert

Hi All,

I have a back office field that I want to validate using regex.

Is there a way to do this without an onChange script?

 

Thanks In Advance 🙂

 

3 REPLIES 3

Niklas Peterson
Mega Sage
Mega Sage

Hi,

onChange script is usually where I do it but of course it can be done in other ways as well. It all comes down to why you want to validate and what you want to do with the result of the validation. If you want to make the user notices directly then onChange is good. On the other hand, having many validations may affect performance and then perhaps it is better to wait and use an onSubmit instead.

 

Regards,
Niklas

I have multiple field to validate so I dont want to use so many scripts.

 

OK, then I would recommend validating all fields at the same time in the end with an onSubmit instead.

 

Regards,
Niklas