Hello all,
I am working on a mashup of WebLoginPE and eForm, which uses eForm as the contact form between users. The problem I am having is passing the username placeholder [+view.username+] to eform.
I would like eform to parse <form method="post" action="[~[*id*]~]?service=viewprofile&username=[+view.username+]"> but it just discards the placeholder. When I put in the username as a static value, it works fine.
I am sure that &eFormOnBeforeMailSent or something similar can be used, and I have been playing around with it a lot, but just can’t get it to work. What am I missing?
-
☆ A M B ☆
- 24,524 Posts
The placeholder is merged into WebLoginPE, but not into eForm. You’ll need to grab it with $modx->getPlaceholder(’name’).
-
☆ A M B ☆
- 24,524 Posts
Not really, I’m not sure at what point those placeholders are set.
I would also like to know if there is a way to populate the username and email address in the eform on my contact page.
When a visitor has registered (using WebSignup) and later logs in using WebLogin, I’d like their information to populate the eform to send me a note.
How would I do this?
Thank you!
www.terrybarthdesign.com
Was there any solution to this thred, how to pass vaiables from webloginPE to eform?
I would like to do something similar - I’d like for a form created in webloginPE to be emailed to the administrator when filled in, and I’d like it to be populated with the user’s details.
I agree this would be very beneficial.