
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 12:38 AM
HI Team,
We have a custom application and form. We have written a onChange client script to populate the currency type based on other currency field. Its working fine in native UI on change as well as onsaving the record. While when we open the same record in service portal the same onChange client script also works.Its when we save the changes in Portal the currency type changes does not reflect.
Below is the script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 02:58 AM
Hello @Community Alums ,
Yes, read-only fields will not be updated by Client Scripts in Service Portal. That is true for all field types, not just Currency fields. I think it is the intended behavior because it's known for many years, and it makes sense.
Here is a potential workaround.
Regards,
Robert

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 12:45 AM
Hi Team,
I have noticed that the 2 fields which I am setting via g_form are readonly fields. When I make them editable then it works fine via service portal. Is there any issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 02:25 AM
Hi @Community Alums
Check below link
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0760420
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 02:58 AM
Hello @Community Alums ,
Yes, read-only fields will not be updated by Client Scripts in Service Portal. That is true for all field types, not just Currency fields. I think it is the intended behavior because it's known for many years, and it makes sense.
Here is a potential workaround.
Regards,
Robert