contact form - choose send to
Permalink 2 users found helpful
Is it possible in the contact form to choose between multiple recipients? I'd like to have a drop down where the user can choose which department to send an email.
Well..
You could first create a page with simple links to each page.
Contact
- Sales
- Tech
- Billing
And create the individual form underneath?
So no programming skill required.
And each department may want to add their own field.
Problem solved, and adding more flexibility to each department people.
And for the users, they either choose a link or choose a pull-down menu. No additional step at all... I think..
You could first create a page with simple links to each page.
Contact
- Sales
- Tech
- Billing
And create the individual form underneath?
So no programming skill required.
And each department may want to add their own field.
Problem solved, and adding more flexibility to each department people.
And for the users, they either choose a link or choose a pull-down menu. No additional step at all... I think..
I just did this today with an external form. Simple php script. if you need the code e-mail me and I'll send it to you.
I just did something like this, but with all the different forms on one page, and using a select list and jquery to switch between them. What's nice about the multiple forms approach is that it keeps form submissions in the dashboard very organized.
Here's my version:
http://www.riversideartmuseum.org/about/contact/...
Here's my version:
http://www.riversideartmuseum.org/about/contact/...
I extended the form block a week or so ago to do this. It adds a "Contact List" question type that can be added to a form. In the settings for the "Contact List" you can select a user group to use to populate the list and a user attribute to use as the values (it defaults to user name). For example, you can choose "Administrators" as the group and "Full Name" as the (custom) user attribute.
Let me know if you are interested and I'll post the files.
Let me know if you are interested and I'll post the files.
I know I already have mine done but I'd like to take a look at that extension to see what it does. Could you please post?
I'm interested. Would you send me please?
Thanks.
Thanks.
Okay. Here's a zip file with the updated block. Just unzip it into your <concrete-home>/blocks directory. Note that it will override the existing form block, which you will need to refresh/update; it adds two new columns to the existing btForm table.
A template for this would be great! If there is anyway to have a "Add recipient" in the options. That would be ideal. Then it would create a new field for the new e-mail address that will be displayed.
We get asked to do drop downs to multiple recipients a lot in forms.
We get asked to do drop downs to multiple recipients a lot in forms.
Just a sidenote was discussing view templates on the form block with someone on IRC yesterday. Unfortunately, the form block won't really support customizations via it's view. I tried to talk someone into changing it so that it could (off set html output to view), but that was a no go. Maybe if someone has time they could contribute that?
Is it possible to have this form where I can manualy input a list of mail recipients?
Or, How can I re-order the list of recipients?
Or, How can I re-order the list of recipients?
Thanks for your work! For some reason, the block won't add questions. Anyone know why?
Thanks, thanks!
Thanks, thanks!
Hi tbcrowe,
I've just added your form block extension in the latest concrete version (5.4.0.5). I now get error message:
(mysql): SELECT DISTINCT u.uID, u.uName FROM Users u left join UserGroups ug_4 on ug_4.uID = u.uID left join UserSearchIndexAttributes on (UserSearchIndexAttributes.uID = u.uID) where 1=1 and ug_4.gID=4 and u.uIsActive = '1' and u.uIsValidated != '0' limit 0,100
Probably you don't give support for this however could you please help me out a little. I really need this feature....
kind regards, Ronnie
I've just added your form block extension in the latest concrete version (5.4.0.5). I now get error message:
(mysql): SELECT DISTINCT u.uID, u.uName FROM Users u left join UserGroups ug_4 on ug_4.uID = u.uID left join UserSearchIndexAttributes on (UserSearchIndexAttributes.uID = u.uID) where 1=1 and ug_4.gID=4 and u.uIsActive = '1' and u.uIsValidated != '0' limit 0,100
Probably you don't give support for this however could you please help me out a little. I really need this feature....
kind regards, Ronnie
Please note that I do not provide support for the extended form block. Now... having said that here is an updated version of the block that fixes problems with the earlier version. I wrote this updated version back in May for someone who offered to pay for the update and then flaked after I sent it. I have not tested it again recently, but I believe it should be fully functional.
Thanks Todd. I've renamed the folder to 'form' and copied it over the existing block. Unfortunately the page that my form was on is now displaying this message:
Fatal error: Class 'FormBlockController' not found in /var/www/html/concrete/models/block.php on line 122
Am I supposed to be using this with the Extended Form add on that is available in the Market Place rather than the regular Form block?
Fatal error: Class 'FormBlockController' not found in /var/www/html/concrete/models/block.php on line 122
Am I supposed to be using this with the Extended Form add on that is available in the Market Place rather than the regular Form block?
I'd be interested in hearing from anyone who has this extended form block working, I'm a (very) new Concrete5 user.
Having installed the extended block, none the form fields were present in the sent email.
To fix this I've edited the controller.php file by adding
changing
to
and
to
It now seems to work satisfactorily. What I'd like to know is why it didn't work in the first place and are there any potential problems with my 'fix'?
Having installed the extended block, none the form fields were present in the sent email.
To fix this I've edited the controller.php file by adding
$formFormSenderName = $_POST['Question8']; $formFormSenderEmail = $_POST['Question9']; $formFormSenderBody = $_POST['Question11'];
changing
$mh->from($adminEmail);
to
$mh->from($formFormSenderEmail);
and
//echo $mh->body.'<br>';
to
$mh->setBody('Message from '.$formFormSenderName."\n".$formFormSenderBody);
It now seems to work satisfactorily. What I'd like to know is why it didn't work in the first place and are there any potential problems with my 'fix'?
Has anyone had any luck with this? I'm using C5 version 5.6.3.3 and can't seem to get it working? Know of a good add-on that supplies this function?
I got it working with C5 v 5.6.3.3
HOWEVER, the emails that are sent are BLANK!
Can anyone offer suggested fix?
HOWEVER, the emails that are sent are BLANK!
Can anyone offer suggested fix?
If you get really stuck, drop me a line and I'll see if I can help out...