How can I know if the form widget on service portal page is dirty(modified) in another widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 04:45 AM
I have an approver's page which has a custom approver widget allowing user to accept or reject. The same page also has a form widget showing the details.
I need to know when user selects accept or reject whether the form was modified so that I can use a modal to warn them of changes and give save or discard option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 05:03 AM
Hi,
You can refer to https://serviceportal.io/using-events-communicate-widgets/ to understand how we can communicate between different widgets on the same page.
Please mark the answer correct and helpful if it resolves the issue. Happy scripting 🙂
-Shantanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 05:04 AM
please share your relevant widget scripts
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader