Ankur Bawiskar
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.

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

shubhamseth
Giga 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

 

 

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

Above it mentions widget and you said client script...

  • Client script > backend
  • Widget is for portal > frontend
    • Catalog client script > frontend..
  • For the Portal there is a variable type "attachment", so for that particular record producer or catalog item you can hide the "standard attachment icon" and set the catalog client script if the variable type of attachment is populated (file is added) then make some field visible and mandatory.

Let's define what part of ServiceNow are we talking about and then we can think of the design and solution.