How to avoid reload site popup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
we are using scoped applications and a workspace, when we click on UI action, sometimes it gives reload site popup, what could be the possible reason or how to avoid that popup when clicking on UI action, there is no certain reproduceable steps, it is an unusual behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi Ankur,
here is the UI action Server script, facing issue in workspace-
function onClick(g_form) {
var reason = g_form.getValue('request_completion_reason');
// Validate only when empty
if (!reason) {
g_form.setSectionDisplay('request_completion', true);
g_form.setMandatory('request_completion_reason', true);
g_form.showFieldMsg('request_completion_reason', 'Select an option', 'error', true);
g_form.addErrorMessage('Mandatory Field need to be Filled in "Request Completion" Section');
return false; // stop submit and DO NOT run server script
}
g_form.submit('oncompletion');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
is that message coming in native or workspace?
what debugging did you do from your side?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Neha_01 ,
This is coming from your browser when there are some changes that are not saved,
Did you give Action Name to your UI Action? If not please try to give and check
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak
