- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 10:43 PM
Hello,
I want to set limit of choices 5 on list collector.
How can we implement this any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:06 PM
Hello @priyanka1028
You need to write a onSubmit() Catalog Client Script
Applies to Catalog Item
Applies on Catalog Item view - True
UI Type = ALL
function onSubmit()
var values = g_form.getValue('variableName').toString().split(',');
if(values.length > 5){
alert('Please select only 5 choices');
return false;
}
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:16 PM
Yeah , I have tried this too what is happening after 5 choices when I enter 6th choice it giving alert msg but after that msg 6th choice will be adding. and I want a solution which not able to add 6th choice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:12 PM
Anyways Thanks for your time and solution it gave me some idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:26 PM
Hello @priyanka1028
Plz mark my response as Accept and thumbs up on it, if you got any idea or help to figure out. It will help future members to reach your post.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 12:13 AM