• Resolved tgmonline

    (@tgmonline)


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

    [checkbox reasons “ReasonA|[email protected]” “ReasonB|[email protected]” “ReasonC|[email protected]”]

    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!

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

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

    (@takayukister)

    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

    Thread Starter tgmonline

    (@tgmonline)

    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|[email protected]” “Reason B|[email protected]” “Reason C|[email protected]]

    (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.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    (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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Configuring Pipes with Checkboxes’ is closed to new replies.