I have a use-case where I want to be able to disable the "You should select two different fields." validation check.

For example if there were two fields, field_allow_notes and field_notes, then field_notes would only appear if field_allow_notes is ticked, or if field_notes already has a value.

This also allows the use-case where a field can be hidden until it's been populated by through an external service.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MustangGB created an issue. See original summary.

MustangGB’s picture

Assigned: MustangGB » Unassigned
Issue summary: View changes
Status: Active » Needs review
FileSize
876 bytes

In this patch c_fields_allow_same_field defaults to FALSE to preserve the original/normal behaviour, but can obviously be set to TRUE if desired.