You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an editor adds conditions to a field, but omits to add any rules, we have inconsistent behaviour depending on whether the "Any" or "All" logic type is selected.
The current behaviour is:
Client-side, the field is shown as if no conditions are applied.
Server-side, if "all" is selected as the logic type, the data entered into the field is saved to the entry.
Server-side, if "any" is selected as the logic type, the data entered into the field is not saved to the entry.
Obviously an editor shouldn't really be enabling conditions on a form and then not defining any rules, but if they do, semantically it seems we should consider the condition as always not passing. I.e. neither "any" nor "all" of the rules are correct, so the condition should fail.
Hence we should change the behaviour such that:
Client-side, the field should be shown or hidden as if the condition has failed.
Server-side, whether "all" or "any" is selected as the logic type, the data entered into the field should not be saved to the entry.
Of course with the client-side change, the field won't be shown and as such we'll be unlikely to have a value provided.
The text was updated successfully, but these errors were encountered:
Created from this comment on a closed issue.
If an editor adds conditions to a field, but omits to add any rules, we have inconsistent behaviour depending on whether the "Any" or "All" logic type is selected.
The current behaviour is:
Obviously an editor shouldn't really be enabling conditions on a form and then not defining any rules, but if they do, semantically it seems we should consider the condition as always not passing. I.e. neither "any" nor "all" of the rules are correct, so the condition should fail.
Hence we should change the behaviour such that:
The text was updated successfully, but these errors were encountered: