Set maximum quantity limit based on cat item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 07:12 AM
I want to set the maximum quantity here:
..based on a custom field I've created on the Catalog Item:
Is there are way to do this? I thought an onLoad Catalog Client Script would allow me to set the options of the choice list, however I'm not sure how to manipulate the values on the table like this.
At the very least, can I prevent the form being submitted if the selected quantity is more than the value in my custom field?
Thanks all

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 07:20 AM
Hello
Try this below code which is used to restrict user from selecting more than 5 as quantity and tweak accordingly.?
Code:
Try adding a client script and script include
Regards,
Musab