Can i make Add attachment mandatory based on variable question

shaik_irfan
Tera Guru

Hi,

I am working on a Record producer and i need to make it mandatory when i have a question as Mandatory Can we do that?

find_real_file.png

I tried using Variable type attachment but unfortunately it is not working as per use case and ended up having multiple issues like we cannot add mulitple attachments.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@shaik.irfan 

So you want to make attachment mandatory on record producer during submission based on some other variable value?

OR

there is an attachment type variable and you want to make it mandatory?

If it's the first case then check my blog on mandatory attachments; enhance it for your requirement

If my blog helps please mark it helpful

Verify Mandatory Attachments Count on Catalog Item

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Hi Allen,

 

My requirement is there is a check box variable and attachment is mandatory only if the check box is checked(else error will pop up to add attachment) or else it should not ask for attachment.

this is not mandatory for the entire form .

can you help me how it can be done . if onsubmit can you help me with the script.

Ankur Bawiskar
Tera Patron
Tera Patron

@shaik.irfan 

So you want to make attachment mandatory on record producer during submission based on some other variable value?

OR

there is an attachment type variable and you want to make it mandatory?

If it's the first case then check my blog on mandatory attachments; enhance it for your requirement

If my blog helps please mark it helpful

Verify Mandatory Attachments Count on Catalog Item

Regards
Ankur

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

@Ankur Bawiskar 

 

I tried with Variable type but it did not worked since it is allowing only one attachment, which wont work for us.

 

So i am trying to make the OOTB Add attachment clip mandatory during submission on Service Portal

Arun Kumar D
Tera Contributor

Hi Shaik,

 

Did you get this worked? I've similar requirement. I've to additionally make red * as well near by Add attachment.

Can you suggest on this.

 

Regards,

Arun