Regarding decimal field values population

Sirisha24
Tera Expert

Hi , 

I would like to know when i give decimal values in one field and there is another dependency field which populated based on first field.
For example, if i give 12 as value in first field then second value field should be * 1000 like 12000.
But when i give 1.2 it should be 1200 right but getting as 12000 

can anyone please help me how we can achieve this .

Thanks, 
Sirisha 

18 REPLIES 18

@Sirisha24 

please share your script which you are using

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

Hi, 
Sirisha24_0-1745999916287.png

This is the client script where 1000 value is getting from system property .

Ankur Bawiskar
Tera Patron
Tera Patron

@Sirisha24 

so that field can accept integer also and decimal also?

If yes then why not make it string and then get the number from it and multiply with the 2nd value?

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

Hi Ankur, 
Thanks !! 
Could you please let me know what exactly i need to do I didn't get what you have said sorry 

@Sirisha24 

what's your requirement here?

As per my suggestion I informed to use string field so that user can enter either integer or decimal

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