Checkbox field needs to be checked/unchecked based on selcted fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 11:17 PM
Hi Experts,
I have 3 choice fields which are currently non-mandatory, and a checkbox field. I want to set the checkbox field to checked ( true ) when user selects choices other than none in all three drop downs, and if they update any of the field to none, I want to uncheck the field. Which fucntionality can be used for this? ( I created a before BR when all the fields are not none it updates the check but when a field value is changed to none, the checkbox should be cleared as well, that's not happening.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 11:23 PM - edited 06-18-2023 11:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 02:52 AM
You can use UI Policy to achieve this with the condition as:
- Choice 1 is not --None-- AND Choice 2 is not --None-- AND Choice 3 is not --None--
- Revert if false is selected, On load is selected
- In the Script section:
- Execute if true: g_form.setValue('CHECKBOX', true);
- Execute if false: g_form.setValue('CHECKBOX', false);