[TYPO3-english] Mailformplus - validate
Kristian Wind
kw at hovsa.dk
Mon Apr 19 10:47:37 CEST 2010
Thanks!
This worked:
plugin.tx_thmailformplus_pi1 {
fieldConf {
yourname {
errorCheck = required,notDefaultValue
errorText = TEXT
errorText.value = <li>Your name</li>
defaultValue.value = Your name
}
company {
errorCheck = required,notDefaultValue
errorText = TEXT
errorText.value = <li>Company</li>
defaultValue.value = Company
}
}
}
Have a nice day!
Best regards,
Kristian Wind
kw at hovsa.dk
Tel: +45 89 93 77 30
Mob: +45 40 33 06 85
Lille Elstedvej 13B
DK-8520 Lystrup
Danmark
Den 19/04/2010 kl. 02.13 skrev Andreas Kießling:
> Hi,
>
>>
>> My question: is there any way to validate using something like "if the field is empty or still Name, then..."? Or perhaps something else?
>>
>
> just look at the manual:
> http://typo3.org/documentation/document-library/extension-manuals/th_mailformplus/4.0.15/view/1/3/#id2341064
>
>
> plugin.tx_thmailformplus_pi1.fieldConf.[name of inputfield].errorCheck
>
> - notDefaultValue ... Checks if the given value is not equal the value defined via TS-setting defaultValue.value
>
> combine that with:
> You can specify multiple errorchecks by separating them by ","
> - required ... must be filled out
>
>
> HTH,
> Andreas
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list