User Registration Documentation
Now, you can apply conditional logic to fields and conditionally hide or show them in the frontend. Conditional Logic allows you to show or hide certain fields based upon other field’s value. You will get conditional settings on every field excluding user password, user email, and username.For example, I have set up conditional logic on the Last Name field in the screenshot below.
Fig. Condition to Last Name Field. Last Name field will only show to the users if user inserts “ted” in the First Name field.
Conditional Groups: By default there is one group and it is mandatory to be there. You must have at least one group and at least one condition inside a group, same as that you can see in the screenshot shown above.
You can have multiple conditions inside a group and each Group does have its own logical operator i.e AND and OR.-If you select AND inside a group then it will make sure that all the conditions defined inside the group must be true.-If you select OR inside a group then it will make sure that any one of the conditions defined inside the group must be true.
You can also add multiple groups and define more conditions inside those groups.-To add a new group, click on New Group and a group will be added below.-To add multiple conditions inside a group, click on the “+” sign that appears when you hover upon an existing condition.-To delete a condition, click on the “x” sign that appears when you hover upon an existing condition.See an example screenshot below:
Fig: Last name will only show if either the conditions of the first group are met or the conditions of the second group are met.
Note: You can see that neither AND nor OR is selected in the second group. If you leave it as it is then it will do OR-ing by default
Powered by BetterDocs