WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Configuring Pipes with Checkboxes (4 posts)

  1. tgmonline
    Member
    Posted 1 year ago #

    On my Contact 7 form, I have the following checkbox field:

    [checkbox reasons "ReasonA|alice@gmail.com" "ReasonB|patrick@gmail.com" "ReasonC|lucy@gmail.com"]

    Note the checkbox field allows you to select more than one option.

    I have [reasons] in the Mail To: field.

    In the Message Body I have [reasons:before] (I installed a plugin that allows the email body to display only the text before the pipe)

    This is my dilemma: when people select more than one reason on my form, Alice gets ReasonB & ReasonC as well as ReasonA in her email body - even though she is assigned only to ReasonA. Also Patrick gets ReasonA & ReasonC as well as his assigned ReasonB in his email body.

    How do I set things up so that when Alice's option (ReasonA) is selected, she sees only ReasonA written in her email? When Alice reads her email, I don't want her to know that Patrick's option (ReasonB) or Lucy's option (ReasonC) were selected when the form was submitted.

    Thank you for your help!

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    What happens if you deactivate the additional plugin (what plugin do you use)?

    Without add-ons, you can use [_raw_reasons] for getting the value before pipe in the message body if you are using the latest version of Contact Form 7.

    Selectable Recipient with Pipes

  3. tgmonline
    Member
    Posted 1 year ago #

    Hey Takayuki,

    when I disable the add-on and use [_raw_reasons], that DOES get the value before the pipe, thanks!

    BUT my main issue hasnt been addressed. Let me explain it to you again:

    (1) My checkbox question has three responses; you can select more than one response
    [checkbox reason "Reason A|alice@gmail.com" "Reason B|patrick@gmail.com" "Reason C|lucy@gmail.com]

    (2) When form is submitted, Alice, Patrick & Lucy get an email that shows ALL reasons (A, B &C) selected by the person who submitted the form.

    (3) I want things so that, if Reasons A and B are selected, Alice will get an email showing ONLY Reason A in the message body, and Patrick will get an email showing ONLY Reason B.

    Please let me know if you need me to explain more. Thanks.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    (3) I want things so that, if Reasons A and B are selected, Alice will get an email showing ONLY Reason A in the message body, and Patrick will get an email showing ONLY Reason B.

    It is impossible. You need to send two different mail.

    You'll need some complex customization to achieve that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic