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 b...@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?
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english