How to make ‘attach file’ as mandatory when claim damage request is selected as ‘Yes’.

Talari Balateja
Tera Expert

Hi,

 

In record producer, I want to make ‘attach file’ as mandatory when claim damage request is selected as ‘Yes’.

 

Regards,

Sanju

5 REPLIES 5

Satishkumar B
Giga Sage
Giga Sage

@Talari Balateja Create a catalog UI Policy to make attachment mandatory

……………………………………………………………………………………………………

Please Mark it helpful 👍and Accept Solution✔️!! If this helps you!!

Amit Verma
Kilo Patron
Kilo Patron

Hi @Talari Balateja 

 

Below link will be helpful to you :

https://www.servicenow.com/community/developer-blog/verify-mandatory-attachments-count-on-catalog-it...

 

Though, I will recommend you to use the attachment type variable for attaching the attachment and a UI policy to make it mandatory based on your required conditions as the above solution requires DOM Manipulation.

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Rohit99
Mega Sage

Hi @Talari Balateja,

I guess you are not creating variable of type attachment on form.
but I would suggest to use the attachment type variable for attaching the attachment and use UI policy to make it mandatory based on your required conditions.

It is recommended as a best practice.


Otherwise if you want to make changes on portal only then follow the following link :

https://www.servicenow.com/community/developer-articles/service-portal-make-attachments-mandatory-on...

 

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi

Ehab Pilloor
Mega Sage

Hi @Talari Balateja,

You can add attachment variable in your Record Producer and use it in UI Policy to be made as mandatory when claim damage request is selected as ‘Yes’.

 

If you found my response helpful, please mark it as Solution and Helpful.

 

Thanks and Regards,

Ehab