Attachment - make attachment mandatory based on variable value

kali
Tera Contributor

Hi All,

I have a catalog item on the portal . There is a reference variable and based on the reference variable the attachment should be mandatory. I am making the attachment mandatory as by using the portal setting . Please help me on this.

 

Thanks in advance

5 REPLIES 5

Hi @kali,

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