How to apply condition on list collector variable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 10:56 PM
Hi all,
I created a list collector-type variable on the sys_user table. I want to apply a condition on this variable so that it has to take only 1 value instead of multiple values
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 07:25 AM
Better to change the variable type to reference rather than trying to make a dog act like a cat, but if you must you can write a simple Catalog Client Script:
function onSubmit()
var values = g_form.getValue('variableName').toString().split(',');
if (values.length > 1) {
alert('Please select only 1 choice');
return false;
}
}