Need to know how following alert (Do you want to save your changes before leaving this page?) is calling from out of box "form" widget.

HR Rajashekar
Mega Expert

Hi All,

I would like to know , how will below mentioned alert will trigger when page is not saved and moving on to another page

This alert is coming from "Form" widget( out of box ).

find_real_file.png

Could any one help me out on this.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rajashekar,

I think this message comes in form as well whenever you change something and are about to leave the page

so it must be coming from platform level and as a developer you may not have access to it

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rajashekar,

I think this message comes in form as well whenever you change something and are about to leave the page

so it must be coming from platform level and as a developer you may not have access to it

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi Ankur,

 

Thank you for your response.

 It will happen in service portal as well, ie Form and catalog widgets.

I would like to know , how it calls from "form" widget.

as shown in the screen shot.

 

 

As Ankur has said, this can't be configured / customised.

It is very much in line with standard web browser form behavior.

The browser checks if there is any data in a form and throws a warning if you try to navigate away without submitting.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Hi Paul,

 

Thank you for your suggestion .

Still I am looking out for answer like how those java scripts call happen from "form" widget.