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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | conditional_fields-2817295-2.patch | 876 bytes | MustangGB |
|
Comments
Comment #2
MustangGB CreditAttribution: MustangGB commentedIn 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.