Hallo an die T3 Gemeinde.
Folgendes Problem:
Ich habe freeCap in ein MailformPlus Formular eingebunden. Soweit funzt auch alles. Bis auf die Validierung.
Solange in das Captcha Feld nichts eingetragen ist kommt die Fehlermeldung "Tragen Sie die Zeichen aus ... ein". Gibt der User jetzt etwas ein, verschwindet die Fehlermeldung, egal ob das, was er eingeben hat, richtig oder falsch war.
Wie kann ich die Fehlermeldung von der richtigen Captcha-Eingabe abhängig machen?
Hier mal mein Code für MailformPlus:
plugin.tx_thmailformplus_pi1.freecapFieldname = captchafield
### English ###
plugin.tx_thmailformplus_pi1.fieldConf {
firma.errorCheck = required
firma.errorText = Enter the company name
name.errorCheck = required
name.errorText = Enter your name
phone.errorCheck = required
phone.errorCheck.ereg = ^.{7,26}$
phone.errorText = Enter phonenumber [7 to 26]
email.errorCheck = email
email.errorText = Enter a valid E-Mail adress
message.errorCheck = required
message.errorText = Enter your message
captchafield.errorCheck = required
captchafield.errorText = Enter the correct text from the image below
}
### Deutsch ###
[globalVar = GP:L = 1]
plugin.tx_thmailformplus_pi1.fieldConf {
firma.errorCheck = required
firma.errorText = Geben Sie einen Firmennamen ein
name.errorCheck = required
name.errorText = Geben Sie Ihren Namen ein
phone.errorCheck = required
phone.errorCheck.ereg = ^.{7,26}$
phone.errorText = Geben Sie Ihre Telefonnummer ein [7 bis 26]
email.errorCheck = email
email.errorText = Geben Sie eine gültige E-Mail Adresse ein
message.errorCheck = required
message.errorText = Geben Sie Ihre Nachricht ein
captchafield.errorCheck = required
captchafield.errorText = Tragen Sie die Zeichen aus dem unteren Bild ein
}
[global]
und mein HTML Template (Ausschnitt):
<tr>
<td></td>
<td>
<!--###CAPTCHA_INSERT### this subpart is removed if CAPTCHA is not enabled! -->
<div class="tx-srfreecap-box">
<div class="tx-srfreecap-box-label"><label for="tx_thmailformplus_pi1_captcha_response">###SR_FREECAP_NOTICE###</label></div>
<input type="text" size="15" id="tx_thmailformplus_pi1_captcha_response" name="captchafield" title="###SR_FREECAP_NOTICE###" value="" />
<p class="mfp_field_error">###error_captchafield###</p>
<div>###SR_FREECAP_IMAGE###</div>
<div>###SR_FREECAP_CANT_READ###</div>
</div>
<!--###CAPTCHA_INSERT###-->
</td>
</tr>
Ich benutze TYPO3 4.2.3, MailformPlus 4.09 und freeCap 1.10.
Wäre toll, wenn mir jemand auf die Sprünge hilft.
Viele Grüße
Thomas