OnSubmit client script for catalog task to display confirm popup when user click on save or update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
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
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti