How to raise user error on click of a boolean field

How to raise user error on click of a boolean field which is dependent on another field. Record should be saved only if the dependent field is filled. How to apply condition on a boolean field to get True only if the dependent field is filled up.

Any help will be grateful.

You should set a required states on the dependant field with a PYSON condition that evaluates to True when the boolean field is set.

The client will evaluate the condition and raise the proper message.

1 Like