- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 01:04 AM
I have a List Collector Variable, In this I want to restrict the selection of number of choices to two only. So, that user can able to select two options only. How to Perform this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 01:23 AM
I can see OnChange
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 02:01 AM
It was Not working Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 02:04 AM
Hi @Aditya02
I have tested it on my PDI and it is working as expected. Can you please share your script and the name of the list collector variable to debug it further ?
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 02:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 02:28 AM
Hi @Aditya02
On which variable you have kept the On-Change catalog client script ? I just copied your script and it is working as expected on my end. It should be On-Change of list collector variable.
Also, if the state changes to new, which two options to you want to remove and from where in the list collector ( Available Values or Selected Values). As we are keeping restriction on the selected values in the list collector to 2, I assume that it will be on the selected values only. If yes, then we need to keep an On-Change Catalog Client Script on the State field so that it can control the list collector field.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.