Page 1 of 1

multiple contacts in contact_form

Posted: Mon Apr 17, 2006 10:55 am
by kermit
simple addition to the contact_us tag to support multiple contacts without resorting to an extra module or two....

example:

{contact_form 'Sales:sales@domain.com;Support:support1@domain.com,support2@domain.com'}

adds a dropdown in the contact from with "Sales" and "Support" as the options, and the form getting
sent to the chosen contact(s).

":" separates the 'displayed name' for the 'contact' from the email addresses assigned to it,
"," separates each email address in a contact (like it does now), and
";" separates the 'contacts'.

you could add a default='sales' option or something to specify if a specific drop down item should be pre-selected, and if not specified, it displays 'select a recipient' as the top (and unselectable) option instead.

if there's only one 'contact' specified in the parameters, then the drop down menu isn't displayed in the form.

ref: http://dev.cmsmadesimple.org/tracker/?f ... 6&atid=104

Re: multiple contacts in contact_form

Posted: Thu Jul 26, 2007 3:39 pm
by SimonSchaufi
I made a solution: (red is what i changed):

Call it with: {contact_form email="Name:yourname@yourdomain.com;Other Name:othermail@domain.com"}

Email addresses will be not be visible.

(I wanted to make it as Code, but then colors will not be shown like i want)

...
...

Re: multiple contacts in contact_form

Posted: Mon Oct 15, 2007 11:51 pm
by kermit
SimonSchaufi wrote: I made a solution: (red is what i changed):
Thanks for this!

This is a very nice modification to the stock contact form; ANYONE wanting or needing multiple choices for targets (of the form) needs this.


and this should be in the core!

Re: multiple contacts in contact_form

Posted: Wed Oct 17, 2007 6:32 pm
by calguy1000
This plugin will most likely not be included in the 2.0 release (or any subsequent 1.x releases).  The recommended method is to use the FormBuilder module.

Re: multiple contacts in contact_form

Posted: Thu Oct 18, 2007 11:49 am
by kermit
calguy1000 wrote: This plugin will most likely not be included in the 2.0 release (or any subsequent 1.x releases).  The recommended method is to use the FormBuilder module.
NO contact/email form in the core of a CMS?  did I miss the part where CMSMS merged with WordPress?  :o

I will spare everyone the rant that's brewing right now.. but please let me know when you're soliciting opinions, requests and other thoughts from end-users, site administrators, site developers and hosts (we are 'all the above') about what features should be bundled in the CORE of CMSMS 2.


oh, and I don't even think FormBuilder can DO what this modification can.. at least without some custom coding. "Email results based on pulldown" does NOT allow for multiple email addresses per destination choice.