简体   繁体   中英

TYPO3 powermail - change transalation of one field in form

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.

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.

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!
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM