Selective distribution from a form

Issues related to forms.
Post Reply
Weewasta
 
 
Posts: 2
Joined: Tue Feb 20, 2024 4:01 pm

Selective distribution from a form

Post by Weewasta »

Hi
Hope you can help.
I have followed the help advice about 'Forms' and created, and successfully tested, a prototype form that allows for a single 'customer' to send an emailed notification (processed in PHP) containing a message, contact details and notification of the topic selected (from a radio button selection list), to a single recipient.
I would like to take this further, for example ......

A customer selects a topic (via a list of radio buttons), adds their contact details and message, BUT this time the message is sent to one of a number of recipients DEPENDING on which radio button was selected. I.e. .........
If Topic 1 is selected, the notification is sent to John Smith
If Topic 2 is selected, the notification is sent to Mary Jones
If Topic 3 is selected, the notification is sent to Adam Morris
If Topic 4 is selected, the notification is sent to Anne Clark
.......if this is possible, could you please point me to the help page / template / video / etc that will help me solve this challenge.

Many thanks for your assistance.

PS: additional notifications via cc: or bcc: are not required.
User avatar
Pablo
 
Posts: 23234
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Selective distribution from a form

Post by Pablo »

Maybe instead of using a radio button, you can use a combo-box/select?
In that case, you can specify a different email address for each choice.

See also the information about this in the help. Search for $MAILTO$
Weewasta
 
 
Posts: 2
Joined: Tue Feb 20, 2024 4:01 pm

Re: Selective distribution from a form

Post by Weewasta »

That's great - thank you for the quick responce. I'm on to it.
Post Reply