Reputation: 56
I'm looking for TypoScript configuration for powermail to change a validation mandatory message of one field - type: file upload. Unfortunately this one type don't have a option to specify custom validation...
Maybe there is an option to get the form and field by TypoScript like:
[globalString = GP:tx_powermail_pi1|field|form_title = formTitle] && [filed ID or marker]
plugin.tx_powermail {
_LOCAL_LANG.default {
validationerror_mandatory = validation message
}
}
[global]
Thanks for help.
Upvotes: 0
Views: 605
Reputation: 3207
You can do like this. For more Info click
plugin.tx_powermail_pi1 {
validate.uid41.auto = email
validate.uid41.errormsg = Please check your email, there is an error!
}
Upvotes: 0
Reputation: 1299
If you're using more then one upload fields within one form it's not possible to change the validation message just for one at the moment. But if you are just dealing with one file field, you could set an extension template to the page where the form is located.
Upvotes: 0