How can i limit the number of attachments in a catalog item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 03:06 AM
Hello,
We have a catalog item in which we are using the OOTB attachment and we need lo limit that the user can only attach one field but the client don´t allow us to use DOM methods.
So we need to create a Catalog Client Script or something like this to limit the number of attachments.
Anyone have do this?
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 03:12 AM
Hello Alberto,
can you elaborate on the reason you have currently to allow only one attachment? Are you doing any kind of validation with the attachments?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 04:29 AM
Hello Filipe
We need to use only one attachment because we use this attachment in a data source with a transform map, so we need to pass only one attachment to the data source.
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 03:18 AM
check this link
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 03:39 AM
Hello Ankur,
Alberto mentioned that his client does not want to use DOM methods.
If I'm not wrong, the article that you mention contains DOM manipulation, right?
Best Regards,
Filipe