- 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 10:02 AM
Hi
You have to create Catalog UI Policy or Catalog Client script on Catalog item.
Use the variable (variable set) in Condition builder and make the required field mandatory using UI Policy action.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 10:41 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 10:52 AM
Hey, as Sagar mentioned, please change the Applies to field value from variable set to catalog item. Then create UI policy actions to make other fields mandatory.
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 10:59 AM

- 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