Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Decimal type fields after saving the form, the point gets removed

Ap_1
Tera Contributor

I have noticed that all the Decimal type field on my instance is not working properly.

Example, if I set the field value as 3.99, after saving the form the value automatically changes to 399.

 

Can someone please help what can go wrong.

5 REPLIES 5

AnirudhKumar
Mega Sage

Go to the Dictionary and add an attribute called scale.

Set Scale = 2 and update the Max length to something other than 20

 

Edit : Check this link: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696658

@AnirudhKumar Scale and max length is already added.

Screenshot pls.

And have you checked there is nothing else that's getting in the way? like a BR / Client script...

Please find the below screen shot, also if I try to update the field using SN Util and save the form, it is giving error "Invalid decimal number".

 

Ap_1_0-1721664627223.png

Ap_1_1-1721664659260.png