Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

OnSubmit client script for catalog task to display confirm popup when user click on save or update

Mohankumari
Tera Contributor

Hello,

I have created new catalog item, when I submit the form in TASK, I want to add confirm popup or alert on the catalog task(sc_task) when user make any changes to the field and  click on save or update without adding the Message to User comments.

 

I tried OnSubmit client script , but however the validation failing and update happening without confirm popup when no comments added also.

 

Thanks in advance.

2 REPLIES 2

Shaik Dimple
Tera Guru

Hi @Mohankumari,

 

An onSubmit Client Script with "confirm()" should work on catalog task (sc_task). Could you share the script you have implemented?

Also, are you checking the Additional comments (comments) field or a different field? Seeing the script will help identify why the form is still updating without showing the confirmation.

 

Thanks.

Tanushree Maiti
Tera Patron

Hi @Mohankumari 

 

Share your onsubmit code. 

Are you using native ui or SOW?

 

If you are using g_form.getControl() method, check this KB: 

KB0547171 The g_form.getControl method does not work after ordering 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti