• Resolved sixfootjames

    (@sixfootjames)


    Hi,

    I’ve read about using the pipe option which allows one to select to different people, but I need to be able to do this based on the checkbox selection someone makes which will then send to either one or two parties.

    For instance, if someone chooses that they are interested in any of the below options

    1. Kitchens
    2. Dining Room
    3. Lounge

    it would send to the Kitchen and Dining Room departments if the person selected the Kitchens and Dining Rooms checkboxes. If they select only Lounge, it would send only to the Lounge department.

    Hope this makes sense?

    Thank you!

    https://www.ads-software.com/extend/plugins/contact-form-7/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    The pipe is available for checkboxes as well as drop-down menu.

    Thread Starter sixfootjames

    (@sixfootjames)

    Thanks Takayuki, I will have a look at it again in the morning.
    Very quick response, thanks.

    Thread Starter sixfootjames

    (@sixfootjames)

    Hi Takayuki

    I’ve tried it with a SELECT which worked well but as soon as I use the CHECKBOX option as below…

    [checkbox i_am_interested_in class:i_am_interested_in use_label_element email-recipient “General|james…[email protected]” “Undergraduate admission|james@va…co.za”]

    (removed domain names in emails)

    I get an error message…

    “Failed to send your message. Please try later or contact the administrator by another method.”

    I’m following examples from this guy’s site too but nothing I am doing has worked: https://brandoncoppernoll.com/how-to-use-pipes-in-contact-form-7/

    Is there something specific that needs to happen with checkboxes?

    Thanks

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What did you put in the To field in the Mail section?

    Thread Starter sixfootjames

    (@sixfootjames)

    In the To field I have [email-recipient] Takayuki.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See docs first.

    You are using wrong tag.

    Thread Starter sixfootjames

    (@sixfootjames)

    Hi Takayuki,

    Thank you but believe me when I say I have read through all of your documentation and applied several options and tested again and again.

    I am now following this tutorial of yours:

    https://contactform7.com/selectable-recipient-with-pipes/

    Here is my sample again:

    [checkbox i-am-interested-in class:i_am_interested_in use_label_element your-recipient “Undergraduate studies|[email protected]” “Postgraduate studies|[email protected]” “Careers|[email protected]” “Research|[email protected]” “General|[email protected]”]

    And this is in my TO: field

    [your-recipient]

    I do appreciate your help.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    [checkbox i-am-interested-in class:i_am_interested_in use_label_element your-recipient “Undergraduate studies|[email protected]” “Postgraduate studies|[email protected]” “Careers|[email protected]” “Research|[email protected]” “General|[email protected]”]

    When you use this form-tag in a form, the corresponding mail-tag is [i-am-interested-in]. Not [your-recipient].

    Getting Started with Contact Form 7

    Thread Starter sixfootjames

    (@sixfootjames)

    Thanks Takayuki.

    I misinterpreted the instructions it seems but upon copying example exactly, I came right in the end which is as you explain it above.

    I thought that your-recipient was THE tag that MUST be used to pull all the emails through.

    I am having a slightly different problem now but I will first do some research again and then ask the question.

    Thanks again for you time!

    Thread Starter sixfootjames

    (@sixfootjames)

    Sorted! Thanks again Takayuki! Great plugin.

    I was having a similar problem suddenly this morning on a client’s site. I don’t know why it suddenly started, but in my case, it had to do with spaces before and/or after the pipes in the recipient selections. Once I removed those it worked again.

    My guess is that perhaps an update made the plugin more picky for syntax on the selections?

    How it looked before:
    [select choose-recipient "General Contact | [email protected]" "Some Department Name | [email protected]" "Another Person | Joe Citizen <[email protected]>" "Asst. to Joe | Joe Citizen Jr <[email protected]>"]

    What fixed it:
    [select choose-recipient "General Contact|[email protected]" "Some Department Name|[email protected]" "Another Person|Joe Citizen<[email protected]>" "Asst. to Joe|Joe Citizen Jr<[email protected]>"]

    Thank you graphicpilot! That solved my problem. I’ve been trying to find the solution for hours.

    I am having the same problem, but can’t figure out what I have wrong.

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Your Email (required)
    [email* your-email] </p>

    <p> Send to: [select choose-recipient “Membership|[email protected]” “Waitlist|[email protected]”]</p>

    <p>Subject
    [text your-subject] </p>

    <p>Your Message
    [textarea your-message] </p>

    <p>[submit “Send”]</p>

    Having the same problem here even after removing spaces on each side of the pipes.

    Hopefully the developer will jump in this topic soon.

    Bonjour

    Même souci, cela fait des heures ( et encore je suis modeste)
    que je tourne en rond pour trouver la solution
    Impossible d’envoyer à un destinataire sélectionné dans le menu déroulant
    la syntaxe que j’utilise est par exemple
    [select votre-destinataire “support | [email protected]” “vente | vente@[email protected]”]
    Dans le champ A des emails j’indique [votre-destinaire]
    j’ai retourné le problème dans tous les sens
    supprimé les espaces
    Ca ne fonctionne pas
    Est ce que cela peut provenir d’une fonction php a activer
    D’avance merci pour votre aide
    @+

    As I am French, yes nobody is perfect
    I put the translation of my post provided by Google ??

    Hello

    Same problem, it’s been hours (and still I am modest)
    I turn around to find the solution
    Unable to send a selected destination from the drop down menu
    the syntax I use is for example
    [select your-recipient “support | [email protected]” “sale | sale @ [email protected]”]
    In the To field of the emails I indicate [your-recipient]
    I returned the problem in all directions
    removing leading spaces
    It does not work

    Does it can come from a php function enable

    Thank you in advance for your help
    @ +

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Sending to different addresses based on checkbox selected’ is closed to new replies.