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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zhangtaihao’s picture

Status: Active » Needs review
FileSize
1.23 KB

Assuming _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).

kupide’s picture

Status: Needs review » Needs work

The patch don't work when the collection field is multiple, I click on "add another item" and the red asterisk disappear...

kupide’s picture

up

kupide’s picture

Issue summary: View changes

Updated to "embedded form".

kevineinarsson’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.