[FLOW3-general] choose mandatory fields after submit
"Christian Müller (FLOW3 Team)"
christian.mueller at typo3.org
Sat Sep 22 11:32:55 CEST 2012
Hi John,
what you probably want to look into are object validators. With an
object validator you will get the full model with all values in the
validator and can then validate whatever you like, so you can check for
your select choice and then validate the necessary fields. That means
that you have one Validate annotation on the model class itself and not
on the individual properties (unless there are certain fields that have
the same validation regardless of the select choice). Look into the
GenericObjectValidator in the FLOW3 package.
Cheers,
Christian
On 22/09/12 02:10, John Small wrote:
> Hi all,
>
> I would like to change the Model settings for @FLOW3\Validate on every
> request depending on the users choice on one select field.
> Maybe in the controller-method initializeCreateAction() where I put
> the DateTime Converter as well ?
> I don't know what to search for.
> How can I access what, if possible ?
>
> 1st step is to access the value of a certain field,
> then change the validation settings according to that value.
>
>
> thx bye
>
More information about the FLOW3-general
mailing list