How to prevent form submission (add new or edit)?

To prevent premature submission I can set entry fields to “required”. That’s great!

But what if not a single field should be filled in, but either field A or (!) field B? I cannot set both to “required”. Rather I need to check the condition manually and prevent submission as long as none of the fields are filled in.

How to do that? Maybe I can set up a calculated field checking the condition. But how to disable the submission buttons as long as this “is valid” field is false?

Set both to Required. Then set a visibility condition on Field A to only show if Field B is empty and vice versa. Once you start to fill one, it will hide the other. The Required flag is irrelevant when a component is hidden.

2 Likes

Thanks! That’s working nicely! :partying_face:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.