- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 10:10 PM
Hi all,
Would like to know how we can detect if there is any field change on the form, when a UI action button is clicked.
I tried to use current.changes(); but this is not supported in UI Action, the same with GlideScriptRecordUtil which is not supported for scoped application.
Regards,
Ram
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:14 AM
You can use this logic for scoped application
It worked well for me earlier
How to get Changed or Modified Fields in ServiceNow Scoped Apps?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:14 AM
You can use this logic for scoped application
It worked well for me earlier
How to get Changed or Modified Fields in ServiceNow Scoped Apps?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:41 AM
The link was very helpful, it helps to detect the field changes.
Now there is one more issue, we cannot use confrim() in UI Action server side, is there a way out, to throw pop window to save or discard the changes from UI Action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:49 AM
Hi,
Glad that the link helped.
You cannot show the confirm box in server side and I don't think any other way to handle this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:50 AM
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 10:32 PM
This link might help you.
https://servicenowguru.com/scripting/business-rules-scripting/checking-modified-fields-script/
Thank you,
Ali