Email Form and drop down list |
Post Reply |
Author | |
MJS613
Newbie Joined: Mar 27 2020 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: Mar 28 2020 at 5:12pm |
Hi All,
I am new to openElement but am really liking it so far. I am having a problem with the email form and contact us page. I am hoping someone here can shed some light on what I am missing. Scinario: Contact us page has a drop down list. 1. Support Request & 2. Website issue. So the user can select one or the other depending on what they are reporting. I have created 2 email forms one for support and one for website issues. They have 2 different emails one goes to support the other goes to webmaster. Each form has it's own successful send message. So what i want it to do is when you select the support option it uses the support email form and send to support, and if you select website issue it uses the webmaster email form and sends an email to the webmaster. Here is my issue, it doesn't matter what option you pick it always uses the success message from the webmaster email form and then sends an email to both address. Now the info in the email is from whatever option they chose. So i am looking to find out how to separate them and only send to whatever email is selected. I am on openELement 1.57 R9 Thanks in advanced
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
Hi,
You can't do it directly without writing your own send mail script but there is a way around. Make sure that you have two buttons on your form. Add b1 as custom class to button one. Make sure that you have two Email form element on your page. Assign all required fields plus their respective button to these elements. Drop down list. Create a new Source code block, Type: javascript, Position: Endbody Add the following code to it
Uppon selection of a value, only the proper button will be visible |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |