Modx: How to create a contact form with a dropdown of offices to cc the email to?
Posted
by code-zoop
on Stack Overflow
See other posts from Stack Overflow
or by code-zoop
Published on 2009-09-17T21:18:28Z
Indexed on
2010/05/27
21:11 UTC
Read the original article
Hit count: 211
modx
In the contact us template I want to have a dropdown with the list of offices (All offices articles are places under the same parent node, so getting the list should be fairly easy). I need a way to add the office email address (Template variable from the Office article) to the email generated by Modx's eForm. I don't want the email address to be visible in the contact us form, but a snippet fetching the article Template variable email address.
I also want a link from each offices article to the contact us form with the office preselected in the dropdown.
How should I implement this?
© Stack Overflow or respective owner