Diable save/submit button on incident form and Alert if it is clicked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 01:22 PM
I have a requirement that Save and Submit button will be disable untill a checkbox is checked and if Save/Submit are clicked while disabled then a alert should be shown stating "Please check the checkbox".
How can I implement this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:39 PM
Why not make that checkbox as mandatory on form?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 12:27 AM
It is client requirement. We suggested but they are migrating from some JS application so want this functionality only.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 12:48 AM
You could create an onsubmit Client script, which checks if the checkbox is checked. If not, return false, which stops submission of the form.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.