Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A required field in a field collection is displayed required in the embedded form. For a table, a column for that field should also be marked with the red asterisk.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1676178-01-mark-required-column.patch | 1.23 KB | zhangtaihao |
Comments
Comment #1
zhangtaihao CreditAttribution: zhangtaihao commentedAssuming
_field_collection_table_get_title()
will only ever be used for field labels (in header cells), here is a patch that provides the #required indicator whenever a title is built (i.e. both single- and multiple-value field collections).Comment #2
kupide CreditAttribution: kupide commentedThe patch don't work when the collection field is multiple, I click on "add another item" and the red asterisk disappear...
Comment #3
kupide CreditAttribution: kupide commentedup
Comment #3.0
kupide CreditAttribution: kupide commentedUpdated to "embedded form".
Comment #5
kevineinarsson CreditAttribution: kevineinarsson at Websystem for ComplianceOnline Ltd commented