Close button on Change Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 10:53 PM
Hi All,
While the change request form is loading and when i click on the Close button.
Close code, close notes are not mandatory and the change request is getting closed.
Suggestions please!!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 11:18 PM
Hi,
You can put confirmation message in your UI action client side script.
On every click it will ask user to confirm action and will proceed if user confirm closure.
Also you can use UI Action script to perform form validation and make fields mandatory when user click on it. You can check Some OOB UI Actions like Resolve/close on incident.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:18 AM
Hi,
this is known thing.
Usually users should perform action once form is loaded so that relevant validations run.
For your issue you can freeze the form till the time form load completes so that user cannot take any action
this link has the solution which uses UI macro and formatter
Solving the Client Script ‘Before and After’ Problem
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader