Attachment in a catalog item should be mandatory only when certain options are selected. help?

Vaishnavi35
Tera Guru

Hi,

In the catalog item , attachment should be mandatory only when 1 or 2nd choice is selected.

Vaishnavi35_0-1677779567254.png

If anyone can help me with that?

In Catalog item under "Portal settings" we do have an option of attachment mandatory but that for the whole form.

 

Thanks,

Vaishnavi

10 REPLIES 10

Hi Anoja,

 

Great idea. But it does upload as an attachment in the "Activity". But does not appear as an attachment. why?

If you can help?

Vaishnavi35_0-1678109034632.png

 

Vaishnavi35_0-1678108707717.png

 

Thanks,

Vaishnavi

Hi Vaishnavi,

 

Please refer the below link to write the business rule to appear the attachment in the record.

 

https://www.servicenow.com/community/now-platform-forum/disable-zz-yy-prefix-from-attachment-when-ad...

 

Thanks,

Anoja

Hi Anoja,

 

The code worked, I can see the attachment on the RITM Form. But I am able to upload only one document not multiple.

Vaishnavi35_0-1678185370951.png

If I am trying to upload the 2nd document, its replacing the 1st one.

HELP?

 

Thanks,

Vaishnavi

@Vaishnavi35 

attachment variable only supports 1 file at a time.

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

Hi Ankur,

Oh sad 😞

Will creating an attachment macro variable help? I have read this in another community question.

https://www.servicenow.com/community/now-platform-forum/how-to-upload-multiple-files-with-the-attach...

 

How can I make attachments option mandatory based only Multiple choice variable?

 

Thanks,

Vaishnavi