[TYPO3-english] Formhandler : notDefaultValue raises no error

bw at shs-it.de bw at shs-it.de
Thu Sep 30 19:41:34 CEST 2010


Hi,

I've just gave a form some default values:

     preProcessors {
       1.class = Tx_Formhandler_PreProcessor_LoadDefaultValues
       1.config {
         1 {
           preName.defaultValue = Vorname
           lastName.defaultValue = Nachname
         }
       }
     }

Both fields should be required and the default value should be invalid:

validators {
     1 {
       class = Tx_Formhandler_Validator_Default
       config {
         fieldConf {
           preName {
	    errorCheck.1 = required
             errorCheck.2 = notDefaultValue
             errorCheck.2.defaultValue = Vorname
           }
           lastName {
             errorCheck.1 = required
             errorCheck.2 = notDefaultValue
             errorCheck.2.defaultValue = Nachname
           }
         }
       }
     }
   }

The problem: when the default value is set when the form is submitted, 
the ###error_preName### marker is still empty (but the form isn't 
submitted, which is fine...)
Is it the wrong marker, or do I miss something else?


More information about the TYPO3-english mailing list