[TYPO3-english] Formhandler - predefined form with name other then "default" not working

Reinhard Führicht rf at typoheads.at
Tue Sep 28 10:17:00 CEST 2010


Am 2010-09-27 20:26, schrieb bw at shs-it.de:
> Hi there,
>
> I have configured an predefined form handler and it looks like this:
>
>
> plugin.Tx_Formhandler.settings.predef.kontaktform {
> name = Kontaktformular
> addErrorAnchors = 0
> langFile.1 = fileadmin/template/lang/blabla.xml
> # Validators configuration
> validators {
> 1 {
> class = Tx_Formhandler_Validator_Default
> config {
> fieldConf {
> preName {
> errorCheck.1 = required
> }
> }
> }
> }
> }
>
> # Finishers configuration
> finishers {
> 1.class = Tx_Formhandler_Finisher_Mail
> 1.config {
> admin {
> to_email = xxx
> }
> }
> }
> }
>
>
> Problem: It doesn't work (form isn't submitted and not validated)
> But when I change the name from "kontaktform" to "default", it works!
>
> Do I miss something?
> Thank you very much for your help!

Hi bw at shs-it.de :-)

you might have to define a "formValuesPrefix" in your TS which matches 
the one you use in your HTML template.

Example:

If you prefix you fields in HTML like this:

<input type="text" name="contact[email]" value="###value_email###" />

You have to define the prefix in TS:

plugin.Tx_Formhandler.settings.predef.kontaktform {
   ...
   formValuesPrefix = contact
   ...
}

Regards,
Reinhard


More information about the TYPO3-english mailing list