Some other client script is getting executed ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:35 AM
Hello experts, I am just getting started in SN. I created an "On cell edit" client script. This is the script.
var uinput =confirm("Do you really want to submit?");
if(uinput = true)
{
saveAndClose=true;
}
else
{
saveAndClose=false;
}
When I go to test this in incident.list and edits one of the short descriptions, while updating I do get the question of confirmation "Do you really want to submit?" but then I get this message "Cannot end before today.". My updates are not saved.
Looks like there is another client script, most probably Onsubmit one. I did go through but cannot find it. Any pointers!!! Thank you so much for your help!
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 04:04 AM
Hi @servicenow_baby,
It might be in one of these 4 tables:
Client script - sys_script_client
UI policies - sys_ui_policy
UI actions - sys_ui_action
UI script - sys_ui_script
Please go to these respective tables and apply a filter - Script contains "Cannot end before today."
You will be able to find the alert.
Please upvote the response if it helps 🙂
Thanks!
Sharanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 10:14 AM
Thank you Sharanya for taking a stab. Unfortunately, it didn't work. Any other thoughts!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 01:20 PM
Hey @servicenow_baby,
Have you checked the Business Rule on the Incident table?
I am not sure what you are experiencing is OOTB but sounds like a BR is preventing you to save.
Cheers