I want to know if there are any modules that would allow me to set up predefined Subjects for our customers. I want to have 5 subjects in the drop down box and depending on the choice it would send the e-mail to a specific e-mail address.
An example would be if it was regarding an order that was placed on line it would go to [email protected]
I could create this externally and just use a wrapper in Joomla to display it, but whats the point?
Thanks, -Holsum
Re: Contact form multiple subjects
Posted: Sun Feb 26, 2006 10:10 am
by leolam
you can make that if I understand you right. is this what you look for? please check and if yes i will write down how to do it
Leo
Re: Contact form multiple subjects
Posted: Sun Feb 26, 2006 6:00 pm
by holsum
Yes, something like that would be perfect. -holsum
Re: Contact form multiple subjects
Posted: Sun Feb 26, 2006 6:42 pm
by scubaguy
I just did this for a client yesterday. All you have to do is change a bit of code starting at line 670 of /components/com_contact/contact.html.php Basically you will be replacing the form textbox input element for the Subject with a dropdown select. I've included the code around the change to make it easier to find. Fill in your own values and labels for the select options. Copy and paste an "
Re: Contact form multiple subjects
Posted: Mon Feb 27, 2006 1:15 am
by leolam
scubaguy wrote:I just did this for a client yesterday. All you have to do is change a bit of code starting at line 670 of /components/com_contact/contact.html.php Basically you will be replacing the form textbox input element for the Subject with a dropdown select.
scuba, thanks for that one. I know that variable of course because that's how it should work. The reason why we did not implement it that way is simply to keep standard code without changes which of course did not happen in our form also becasue we created a redirect to a thank-you page: we described how to do that here
how we did it is basically "faking" the requested solution as requested here by uitilizing the options in the comp_contact: in the params we set to start with drop-down = yes /created only one category and than at the contact detailes we dd: Name : JooMaDesk Contact's Position : General Inquiries on Services Email: [email protected]
and than set the remaining params. We than created a menu-link to the very first entry (the one you see here described > menu > contact link and that's it basically and that gives the drop down as described....