Decimal field says it is not a number unless its an integer

bigbacon
Giga Guru

I have a form field that is of type decimal and for some reason if you put in a decimal number it comes back and says it is not a number. If you put in an integer, no problem. 

 

I have 3 other fields that are also decimal and are used in t he same way and they do not have this issue.

 

The validation is internal to ServiceNow and not based on a UI policy so somewhere in SN it thinks this field should be something that it is not.

1 ACCEPTED SOLUTION

@bigbacon 

Open that variable configuration and seems some variable validation Regex is applied which shows that message only for that variable and not for other 2.

Definitely it's coming from there

AnkurBawiskar_0-1737478869614.png

 

AnkurBawiskar_1-1737478916822.png

 

The Regex checks the value is Number or not and shows that message

AnkurBawiskar_2-1737478949333.png

 

If you wish to remove that validation then clear that "Validation Regex" field from that variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

it is not part of a variable set.

@bigbacon 

Open that variable configuration and seems some variable validation Regex is applied which shows that message only for that variable and not for other 2.

Definitely it's coming from there

AnkurBawiskar_0-1737478869614.png

 

AnkurBawiskar_1-1737478916822.png

 

The Regex checks the value is Number or not and shows that message

AnkurBawiskar_2-1737478949333.png

 

If you wish to remove that validation then clear that "Validation Regex" field from that variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

EDIT:

I see what you are pointing to now....that was it.

@bigbacon 

Glad to know.

Please mark my response as correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader