[Typo3-dev] Flexforms and Radio-Buttons

Peter Huppertz peter at futurmat.com
Thu Feb 24 08:52:29 CET 2005


Hi List,

I'm trying to use a radio-button in the backend to extend the ms_survey 
Ext. It is configurable using a flexform. This is the way I tried it:
[...]
<answerSaveMode>
    <TCEforms>
        <label>LLL:EXT:ms_survey/locallang.php:ff_answer_save_mode</label>
        <config>
            <type>radio</type>
            <items type="array">
                <numIndex index="0" type="array">
                    <numIndex 
index="0">LLL:EXT:ms_survey/locallang.php:ff_answer_save_mode_text</numIndex>
                    <numIndex index="1">0</numIndex>
                </numIndex>
                <numIndex index="1" type="array">
                    <numIndex 
index="0">LLL:EXT:ms_survey/locallang.php:ff_answer_save_mode_number</numIndex>
                    <numIndex index="1">1</numIndex>
                </numIndex>
            </items>
        </config>
    </TCEforms>
</answerSaveMode>
[...]

And this is the way I try to retrieve the valus in PHP:
$this->pi_getFFvalue($this->cObj->data['pi_flexform'],'answerSafeMode', 
'sDEF');

But this doesn't return the value of "answerSafeMode" ...

By the way, would be nice to have an example for it in the Typo3 Core 
API Documentation?!

Greetings

Peter Huppertz




More information about the TYPO3-dev mailing list