The CreatorCon Call for Content is officially open! Get started here.

Some other client script is getting executed ...

servicenow_baby
Giga Contributor

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!

3 REPLIES 3

Sharanya Hegde2
Giga Expert

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

Thank you Sharanya for taking a stab. Unfortunately, it didn't work. Any other thoughts!!!

James Chun
Kilo Patron

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