ich belege via TS die input-felder meines formulars mit default-werten - die felder sollen dann vor dem versenden auf diese standartwerte überprüft werden. im falle des falles sollte eine fehlermeldung angezeigt werden...
...hab die eigenschaft "notDefaultValue" im manual entdeckt - leider bekomm ich es nicht zum laufen.
das wär ein auszug aus meinem TS-template:
### errorChecks for the form fields
plugin.tx_thmailformplus_pi1.fieldConf {
name {
errorCheck = required,notDefaultValue
}
email {
errorCheck = required,email
}
}
### default values
plugin.tx_thmailformplus_pi1.fieldConf.name.defaultValue = Name
plugin.tx_thmailformplus_pi1.fieldConf.strasse.defaultValue = Strasse
plugin.tx_thmailformplus_pi1.fieldConf.plz_ort.defaultValue = PLZ / Ort
plugin.tx_thmailformplus_pi1.fieldConf.email.defaultValue = eMail-Adresse
plugin.tx_thmailformplus_pi1.fieldConf.telefon.defaultValue = Telefon
plugin.tx_thmailformplus_pi1.fieldConf.anreise.defaultValue = Anreise
plugin.tx_thmailformplus_pi1.fieldConf.abreise.defaultValue = Abreise
plugin.tx_thmailformplus_pi1.fieldConf.anzahl_erwachsene.defaultValue = Anzahl Erwachsene
plugin.tx_thmailformplus_pi1.fieldConf.anzahl_kinder.defaultValue = Anzahl Kinder
plugin.tx_thmailformplus_pi1.fieldConf.alter_kinder.defaultValue = Alter der Kinder
plugin.tx_thmailformplus_pi1.fieldConf.nachricht.defaultValue = Nachricht
...leider wird nur eine nicht korrekte email-adresse reklamiert wenn ich das formular absende ohne zuvor irgendwelche feld-inhalte zu verändern.
hab ich etwas falsch gemacht?