Close Modal should be hidden
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
In our techspot portal, when we fill in some values in any catalog form and try to go back to previous page, this modal shows up. Here, my story's requirement is to make the 'close modal' removed. Is it a inbuilt thing by servicenow ? How can we remove/hide it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI @ShriramS
I believe the modal you see in the ServiceNow portal when you try to go back from a catalog form is an out-of-the-box feature designed to prevent data loss. To achieve your requirement, you will need to modify the underlying widget that controls the catalog form's behavior which is not best practise.
To remove the "Close modal" functionality, you will need to customize the Service Portal widget (sp_widget.do?sys_id=3c29786e87133200e0ef0cf888cb0bdf). This is not a simple configuration setting.
It's recommended that you have a strong understanding of ServiceNow Service Portal architecture, including widgets, pages, and the spModal API, before attempting to implement this change.
Note: Modifying the default widget directly is not recommended as it can cause issues during future upgrades. Always clone and customize.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
that's the OOTB browser behavior.
if you make some changes and are closing the browser tab then it will ask you confirmation and show that message.
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