Checkbox field needs to be checked/unchecked based on selcted fields?

saint
Tera Expert

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.)

2 REPLIES 2

Community Alums
Not applicable

Hi @saint ,

You can use OnChange client script.

Is it a record producer or custom form ?

Community Alums
Not applicable

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);