Is it possible to set a 'read only' currency field?

Michael Lovell
Tera Guru

I have a currency field called 'Total' that is read only.  The value of the field is the product of 2 other fields called 'Rate' and 'Hours'.  Total's value is updated by an onChange  client script, but the value is not saved because of the read only property.  Is it possible, perhaps by script include, to save the fields value when the form is saved or updated?

1 ACCEPTED SOLUTION

Michael Lovell
Tera Guru

I solved this problem by having a second currency field that was hidden from the form, but not read only.  Then I copied that value from the hidden field to the read only field with a business rule.  Thanks everyone for the help.

View solution in original post

3 REPLIES 3

kente
Tera Guru

That should be doable from a Business Rule.
Since currency can be tricky i suggest you check out the following to see what you have of options
https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/currency/concept/...

Sumanth16
Kilo Patron

Hi Michael ,

 

Please refer to below link:

  https://hi.service-now.com/kb_view.do?sysparm_article=KB0759078

https://community.servicenow.com/community?id=community_blog&sys_id=583eaa6ddbd0dbc01dcaf3231f9619fa

 

please mark it as helpful (or) correct if it fix your issue.

 

Thanks,

Sumanth

Michael Lovell
Tera Guru

I solved this problem by having a second currency field that was hidden from the form, but not read only.  Then I copied that value from the hidden field to the read only field with a business rule.  Thanks everyone for the help.