[TYPO3-mvc] Complex validation scenario

François Suter fsu-lists at cobweb.ch
Wed Jun 22 09:00:56 CEST 2011


Hi all,

I'm facing the following scenario: I have a pretty complicated input 
form, some parts of which are shown/hidden depending on values of other 
fields. This - of course - has an impact on validation: some values must 
be validated depending on other values.

Now - as far as I could see - a validator receives only the value it is 
supposed to validate and thus can't refer to the other submitted values. 
So 2 questions:

- is there any way to refer to others submitted values from within a 
validator?
- if not, how can errors be added to the list of errors from some other 
validation process started by the controller?

Extra question: or is there actually a better way to do this? ;-)

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-project-typo3v4mvc mailing list