Make work notes mandatory whenever attachment is added

Rachael12
Tera Contributor

I have to make the work notes mandatory a new attachment is added on the incident form in the instance. As of now, the attachment gets automatically save on to the save just by clicking on the paperclip icon and adding the attachment through it. We don't need to click save/update while doing so.

In this scenario, now I need to make work notes mandatory whenever an attachment is added. How do I track it?

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Rachael12 

where do you want this?

native or portal?

If portal then which page?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

It needs to be done on native, incident/case form.

Shubham_Jain
Mega Sage

@Rachael12 

 

If it is on Native View: 

 

1. Use Client Script (onSubmit): This ensures that users cannot save/update the record unless Work Notes are filled when attachments exist. 

 

If it is Service Portal view: 

 

1. Customize the form Widgets or Use spAttachment events

 

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


Yes I tried client script but was unable to do it. Can you please help with script.