How can I know if the form widget on service portal page is dirty(modified) in another widget.

hamzaathar
Tera Expert

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.

2 REPLIES 2

shantanu_patel8
Mega Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

@hamzaathar 

please share your relevant widget scripts

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader