Form actions: send form to different mail-adresses based on form input

By: Henri Zome | Asked: 12/08/2024
ForumsCategory: General questionsForm actions: send form to different mail-adresses based on form input
Henri Zome asked 1 month ago
Hi everybody, I am looking for some infomation on the form actions. I am managing a contact form in which a subject is chosen. I would like to have Formidable send the form to different contact points, based on the subject that was filled in in the form. Is this possible? I don't seem to be able to find it.
2 Answers
Rob LeVineRob LeVine answered 1 month ago
You can either use the form confirmation or the URL redirect hook.
Henri Zome replied 1 month ago

Thanks Rob; but that does not same to include email options? Only sending to differnt URL's based on the forms input?

Rob LeVineRob LeVine replied 1 month ago

Explain your entire goal.

Henri Zome replied 1 month ago

Ok; so website has a contactform. This form includes the obligatory option to choose a 'subject type'. Based on this subject type, I would like to have the form send to different emailadresses.

So for example: if subject is 'changes in adress or contactdetails', I would like to form to send to [email protected], if the subject is 'payments' I would like to form to send to [email protected].

Hopefully this explains my question

Rob LeVineRob LeVine replied 1 month ago

Two ways to do it:
1. Create multiple email actions and use the conditional logic section of the action and set your condition.
2. Set the value of the To: field to a custom shortcode and pass in the subject. The shortcode returns the list of email addresses separated by a comma

Jane OnoratiJane Onorati answered 1 month ago

Henri, I have a contact form that sends an email to the person you select instead of a category.  The names of the individuals are displayed as radio button options and the their email addresses are separate values saved for each name choice.  Then in the TO: line in my email action, I put the field ID or Key for the radio button field with 'show=value' in it so it grabs the email and not the name - like this: [6kbry show=value]. I'm not sure if this would work if someone wanted to select multiple categories at a time because I have not tested that, but for the use you describe, this is a simple and effective approach.  See this support article if you have not used separate values before: https://formidableforms.com/knowledgebase/separate-values/.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right