[TYPO3-mvc] TCA - Radio buttons on multiple fields

Peter R peter at webschuppen.com
Mon Jun 23 17:17:26 CEST 2014


Hello,

is it possible to create radio button behavior on multiple fields?
If I click field1, field2 should be unchecked and backwards.

'field1' => array(
        'exclude' => 1,
        'label' => 'Field 1',
        'config' => array(
                'type' => 'radio',
                'items' => array(
                        array(
                                'Active',1
                        ),
                )
        )
),
'field2' => array(
        'exclude' => 1,
        'label' => 'Field 2',
        'config' => array(
                'type' => 'radio',
                'items' => array(
                        array(
                                'Active',1
                        ),
                )
        )
),

I don't want to create a select or something else.
If isn't possible I would use checkbox.

Thank you for any help.


More information about the TYPO3-project-typo3v4mvc mailing list