"Invisible" should imply "unrequired" and "empty".
Maybe "empty" should be optional, but i can't think of a use case for invisible but value.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | conditional_fields-2983381-2-Make-invisible-imply-unrequired-and-empty.patch | 1.7 KB | geek-merlin |
Comments
Comment #2
geek-merlinPatch flying in that implements this (maybe #2983376: Action "Empty" has no effect must be applied before).
Comment #4
geek-merlinTested and used in production, so committing.
If some use case arises, we can still make this configurable.
Comment #6
publishing future commentedIn fact "empty" should be optional! There are many use cases, where fields shall be hidden (e.g. in a certain workflow state) and shall be displayed later again (e.g. in another workflow state) with their previous values. Applying this patch needs caution, because it seems to wipe out all values in fields that are hidden, when a node is saved.
Comment #7
jasonluttrellThis seems related: https://www.drupal.org/project/conditional_fields/issues/2845855#comment...
Invisible elements are still required as of 8.x-1.0-alpha9.