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.
Hi,
I am looking for a way to make a checkbox selectable only once within a "field collection" field.
Example:I think of the field collection handling the address-fields of a specific content type.
I am thinking of a checkbox field within this collection called "default address"? And no matter how many instances of the field-collection a user creates, i want him to only once have the possibility to select "true/yes".
Anyone an idea how to accomplish this?
BR,Sandro
Comments
Comment #1
johnhanley CreditAttribution: johnhanley commentedI know this is an old post and I assume the OP found an answer by now.
For those looking to achieve the entitled behavior, the redhen_fields module (part of the Redhen CRM suite) includes a jQuery file (redhen_fields.js) that does this exact thing.