eForm data passing in modx
I've spent a lot of time on this issue...
Let's say you have a restricted area on your modx site and an eForm inside there.
And that efrom has only one field that will be emailed to the admin. But in the email you want to display the username.
Seems like this would be simple but simply referencing [+name+] is looking for a field whose name is name. I couldn't have used a hidden input field, because it wasn't parsing [+name+].
So after spending a lot of time of wrestle my variable in there, I've realized what the simplest way to do it is.
The trick is to create a chunk that has the value inside it, that way it is parsed inside the chunk, and doesn't interfere with eForm template.
it's a lot simpler than dealing with eFormOnBeforeFormParse
0 Comments
Posted on 2010 Feb 27 by
Daniel