[TYPO3-project-formidable] Problems with userobj validator

Manuel Rego Casasnovas mrego at igalia.com
Thu Jun 21 13:26:33 CEST 2007


Hello.

I've trying to use a function for a userobj validator, my XML config is:
        <renderlet:TEXTAREA name="presentation">
            <validators>
                <validator:STANDARD>
                    <userobj message="Presentation is required" >
                        <extension>this</extension>
                        <method>_presentationRequired</method>
                    </userobj>
                </validator:STANDARD>
            </validators>
        </renderlet:TEXTAREA>

But in my function I don't get the value for this renderlet:
function _presentationRequired($value, $oForm) {
        var_dump($value);
        var_dump($oForm->oDataHandler->_getThisFormData('presentation'));

        ...
}

The two sentences print: string(0) ""

I don't kwow if the problem is that in this form I use the STANDARD
datahandler.
<datahandler:STANDARD />

Somebody knows if this is the problem? Any solution?

Thank you very much,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list