Restrict Attachments in Catalog
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:16 AM - edited 02-10-2025 10:17 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 01:19 PM
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.