Close button on Change Request

dharanikumar
Giga Guru

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!!

2 REPLIES 2

Anil Lande
Kilo Patron

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

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader