- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 07:56 AM
Hello Experts, I have a variable set type Add Row with a variable called "Service" which is a list collector.
what i need is that if a user selects "Other" from the list collector, a field that is not in the variable set called "Additional Comments" turns mandatory. I have done this with 2 regular fields using a UI policy but not for a variable set, can you guide me on how to proceed?
Thank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 11:31 AM
yes, you are right in that case please revert it back to the variable set. In the run script's Execute if true field use setMandatory syntax like this.
g_form.setMandatory('variables.additional_comments', true);
Execute if false field write below
g_form.setMandatory('variables.additional_comments', false);
Regards,
Muhammad
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 11:36 AM
One more thing to note UI string based conditions are case sensitive so please ensure to handle "Other" & "OTHER" separately in the UI policy conditions.
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 12:00 PM
Thank you for your help!