[TYPO3-english] Formhandler : notDefaultValue raises no error

Reinhard Führicht rf at typoheads.at
Fri Oct 1 09:55:44 CEST 2010


Hi Benjamin,

did you define an error message in the translation file?

E.g.:

<label index="error_preName_notDefaultValue">Bitte geben Sie Ihren 
Vornamen ein.</label>

Regards,
Reinhard

Am 2010-09-30 19:41, schrieb bw at shs-it.de:
> 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