hi profs,
ich bin seit heut Morgen am Verzweifeln.
Soll ein Formular mit mailformplus erstellen und darin ein Textfeld mit maximal 2000 Zeichen.
Im Manual steht:
[TS]New since version 4.0.1:
- min ... check if an array has at least [min]items
- max ... check if an array hast at least [max]items
example:
checkboxArray {
errorCheck = required,min:2,max:4
}
You can specify multiple errorchecks by separating them by ","
example:
.errorCheck = required, email
[/TS]
In meinem Setup:
[TS]# errorChecks for the form fields
plugin.tx_thmailformplus_pi1.fieldConf {
name {
errorCheck = required
}
surname {
errorCheck = required
}
affiliation{
errorCheck = required
}
email {
errorCheck = required,email
}
text {
errorCheck = required,min:2,max:4
}
}[/TS]
Resultat: Es geht nicht auf diesen errorcheck ein - sprich es ist dem script egal ob ich 1 Zeichen oder 37.000 eingebe.
Was mich verwirrt ist, dass ich in keiner Datei der Extension irgendeinen Hinweis auf "min" oder "max" gefuden habe - das ist ein Wiederspruch zum Manual.
Hat irgendjemand eine Idee oder dieses Problem schon mal gehabt oder gar gelöst? #angry#
Gruß, Alex

