Restrict Attachments in Catalog

harshi_ramesh
Tera Expert

Hi All

Had a query regarding 'Add Attachment'. We need to restrict user from submitting form if more than 3 attachments are submitted. 

My queries:

  • Can we use the OOB Add Attachment for this case? How?
  • Tried enabling 'Hide Attachment' checkbox and created a variable of type 'Attachment'. Wrote a Catalog Client Script to check length and throw error message. But in form itself after uploading one attachment, second attachment cannot be added. 'Updating the attachment will delete the previous attachment permanently. Do you want to continue?' getting this error.

Please help with some solution.

Thanks!!

#catalog

1 REPLY 1

MAYANK9
Tera Expert

Attachment variable is like a bucket once it filled you can't fill more, you need to create another bucket. For you request you can use MRVS or maybe 3 different variables to achieve the same.