multiple contacts in contact_form
Posted: Mon Apr 17, 2006 10:55 am
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
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