0

We have a contact us page, and we have the fields: Name, Email, Telephone, Reason, and Message.

We have different people who deal with different things, so we were thinking the reason could be the variable which decides which email the contact form should be sent to.

Can anybody push me in the correct direction for this?

Thank you!

1

Atif is partially correct here - Magento does not come with this by default, however you can purchase an extension like WebForms by MageMe and do a little extra footwork to make this happen.

Using this extension and some smart coding, you have the ability to "nest" forms within each other. I would start with one top level form that has a dropdown to select which department the email should go to, then from there set up HTML blocks for each one of these departments. Using the Logic function provided in Webforms, set each block to only be visible when that specific item in the dropdown is selected, and by default hide all of them. This will require the customer to make a selection before being able to submit any information.

Your next steps would be to create a form for each of these departments and when finished, use the widget short-code provided to reference each of these forms in their top level html block.

The main issue i can see with this is that WebForms will automatically add the submit button to the form, instead of asking you where to place it. You might be able to change a template for base layout to use on the top level form since technically it will not have it's own submission.

I hope that helps to put you in the right direction of a way you might be able to make this happen!

1

there is no such thing that you want. the only single solution is to use multiple email adders. suppose you have 2 field "Sales" and "Support". use 2 email where email will be send sale@your-site.com and support@your-site.com. those email provide will check the email reason and reply to the particular email

enter image description here

3
  • This field won't allow to add multiple address
    – MageLerner
    Aug 27 '19 at 10:14
  • which magento version you are using?
    – Atif Aqeel
    Aug 28 '19 at 12:53
  • 2.3.1 Magento CE
    – MageLerner
    Aug 28 '19 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.