How to validate the field to allow only numbers,(comma).(dot) Please suggest if script is needed

Archana23
Tera Contributor

How to validate the field to allow only numbers,(comma).(dot)

Please suggest if script is needed

10 REPLIES 10

Ravi Chandra_K
Kilo Patron
Kilo Patron

Yes, a script is needed. (On change client script)

You have to define a regular expression and then

you can check with variable.match(regex)

Please refer the below thread 

https://www.servicenow.com/community/developer-forum/field-should-only-have-at-least-1-letter-and-1-...

 

Please mark the answer as helpful and correct if helped. 

Kind Regards,

Ravi Chandra