In content editing when a field collection field cardinality is set to a value different than unlimited then allow users to empty it.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | field_collection-clear_button-1413864-6.patch | 2.9 KB | joshahubbers |
In content editing when a field collection field cardinality is set to a value different than unlimited then allow users to empty it.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | field_collection-clear_button-1413864-6.patch | 2.9 KB | joshahubbers |
Comments
Comment #1
drikc commentedComment #2
drikc commentedClean the above patch; remove trailing white spaces.
Comment #3
tim.plunkettHow is this better than the 'delete' functionality that was added recently?
Comment #4
drikc commentedThe 'delete' functionality is only available when cardinality is set to unlimited.
An 'empty' button can empty embedded fields set as required of a host field-collection field set as unrequired (which cardinality is different than unlimited). In that context it mean that a user which fill those embedded required fields is steel able to empty the host field-collection which should be possible as it is set to unrequired.
Comment #5
torotil commentedI think this problem has been solved more generally with the "hide empty items" option in the field configuration.
Comment #6
joshahubbers commentedI reopen this issue. Problem is that when you do not have "unlimited" selected, the option "hide empty items" does not do anything.
Added a new patch because the existing patch did not work properly in my installation.