modxcms / docs

7 stars 9 forks source link

Formit email validation not working #226

Closed Erdem-Ozyalcin closed 6 years ago

Erdem-Ozyalcin commented 6 years ago
[[!FormIt? 
&hooks=`spam,redirect,email` 
&validate=`workemail:blank,company:required,name:required,email:email:required` 
&emailTpl=`contact-email-tpl` 
&emailSubject=`[[*pagetitle]] ` 
&emailTo=`[[++client-email-receiver]]` 
&emailFrom=`noreply@customer.com` 
&emailFromName=`customer.com` 
&redirectTo=`[[*id:FirstChildId]]`
&emailReplyTo=`[[+email]]`
]]
matdave commented 6 years ago

This belongs in https://github.com/sterc/formit/issues but also, the FormIt processor doesn't currently allow system settings in the emailTo field. You would need a hook that set's email to use a custom system setting.

Jako commented 6 years ago

Using a system setting in emailTo should work, but you are right, it is a FormIt issue and not a MODX Docs issue.