As you know MODx play evil joke with some of us when do not allow use @, & and other chars in params in snippets calls. And that happened to me today and I want to ask you about your solutions in same situation.
What we have. FormIt call:
[[!FormIt?
...
&hooks=`email,FormItSaveForm,redirect`
&emailTo=`[email protected]`
...
]]
and html form. Which disappear if MODx get '@' at emailTo param. After several hours of trying to get point of that I found only one solution. Obey.
My "obey" solution:
And this is new FormIt call (
IMPORTANT! formItHook4Email before email):
[[!FormIt?
...
&hooks=`formItHook4Email,email,FormItSaveForm,redirect`
&emailTo=`[[+destination]]`
...
]]
and one new row for your form's html:
<input type="hidden" name="destination" value="this value will be replaced with snippet formItHook4Email" />
and new snippet with name formItHook4Email:
That's works for me. Hope save many hours for you! =)