multiple contacts in contact_form

Talk about new features for CMSMS and modules.
Locked
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

multiple contacts in contact_form

Post 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
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
SimonSchaufi

Re: multiple contacts in contact_form

Post 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)

...
...
Last edited by SimonSchaufi on Tue Oct 16, 2007 8:16 am, edited 1 time in total.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: multiple contacts in contact_form

Post 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!
Last edited by kermit on Mon Oct 15, 2007 11:56 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: multiple contacts in contact_form

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: multiple contacts in contact_form

Post 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.
Last edited by kermit on Thu Oct 18, 2007 11:53 am, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Locked

Return to “Feature ideas”