[FLOW3-general] Validation on 2 or more fields
"Christian Müller (Kitsunet)"
christian.mueller at typo3.org
Fri Feb 10 18:45:25 CET 2012
True that would be a problem, but you must send the two fields to the
recaptcha to verify anyway, right?
Maybe I would go for a practical solution and don't validate as usual
but do that in your controller, you can then still add an validation
error to the stack by hand and call errorAction or redirect to your form
action directly.
Cheers,
Christian
On 10/02/12 16:53, Thomas Plessis wrote:
> Ok, but i can't change the HTML code from the captcha. So how can i have a property mapping for this captcha object model?
>
> Thomas Plessis
> Développeur multimédia
> --
> TOTEMnumerique
> 9, Place St Étienne
> 31000 Toulouse
> T. 05 61 14 64 54
> F. 05 61 14 64 55
>
> Le 10 févr. 2012 à 16:11, Christian Müller (Kitsunet) a écrit :
>
>> Hi,
>>
>> maybe a bit complicated but you can define an object validator, this validator can use the whole object, so you could create a captcha model (which should not be an entity) with the two fields as properties and define a validator for this model.
>>
>> Cheers,
>> Christian
>>
>> On 10/02/12 15:44, Thomas Plessis wrote:
>>> Hi guys,
>>>
>>> Is there a way to validate 2 or more fields at the same time? For example, to use recaptcha (http://code.google.com/intl/fr/apis/recaptcha/), it generate 2 fields that i can't changed. So, how to validate both?
>>>
>>> regards,
>>>
>>> Thomas Plessis
>>> Développeur multimédia
>>> --
>>> TOTEMnumerique
>>> 9, Place St Étienne
>>> 31000 Toulouse
>>> T. 05 61 14 64 54
>>> F. 05 61 14 64 55
>>>
>>
>>
>>
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
More information about the FLOW3-general
mailing list