How to trigger the 'Leave Page' 'Changes will be lost' message on new Widget
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:00 AM
Hello,
I have a tricky question - I have a requirement to show the "Leave Page" message, when the user tries to click from updated custom widget without saving, via breadcrumbs or the back button.

<now-message key="Changes you made will be lost." value="${Changes you made will be lost.}" />
<now-message key="Leave page?" value="${Leave page?}" />
I'd assume it was something in Client Script, but I'm really not sure what to look for. Any hints on what could be the trigger, so we can recreate it?
We know it's possible because it works on the standard Cat Item widget, but there is only the following mention of the "Leave page" message - no mention of how is it triggered.
<now-message key="Changes you made will be lost." value="${Changes you made will be lost.}" />
<now-message key="Leave page?" value="${Leave page?}" />
I'd assume it was something in Client Script, but I'm really not sure what to look for. Any hints on what could be the trigger, so we can recreate it?
Thanks
Labels:
- Labels:
-
Service Catalog
0 REPLIES 0