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

johnhanley’s picture

Issue summary: View changes

I 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.