Set Value of a field with data type "price"

thisisauniqueus
Giga Expert

Hi

i have a field with data type price

find_real_file.png

how can i set the value and currency code of this field. i have tried

current.test = "GBP;100";

but it seems to work for the currecy data type but for price data type its not working pl help

Regards

1 ACCEPTED SOLUTION

Is it possible to change form using a price field to a currency field?


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

I presume you've already looked here for information...



Scripting Currency and Price Fields - ServiceNow Wiki


Thanks Chuck for you time. Yup i have read the wiki but it works for the currency fields for the field which has data type price it does not work



Regards


Is it possible to change form using a price field to a currency field?


yup i guess i will introduce a new field and hide the old one