• Resolved krismurphy

    (@krismurphy)


    I’m using Conditional Fields, but i’m trying to combine it with different emails (pipes). The thing is what I have to put into the TO: field to send the form to the selected option?

    Example:

    Select province: Province 1
    Province 2

    Province 2 selected > Then shows (With conditional fields):

    Province 2 menu: Town 1|[email protected]
    Town 2|[email protected]
    Town 3|[email protected]

    So at sending – The field “To:” must pic the correct town mail.

    Any clue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    in the Form Tag, to create the select field with the option, the code is:

    [select* province include_blank “Town 1|[email protected]” “Town 2|[email protected]” “Town 3|[email protected]”]

    Then, in the Mail Tag, in the “TO” field you have to put in bracket the select field name, so:
    TO: [province]

    Thread Starter krismurphy

    (@krismurphy)

    Thanks for the answer!! The thing is that there are more than one choice:

    Select province: Province 1
    Province 2
    Province 3

    Province 1 selected > Then shows (With conditional fields):

    [showed]Province 1 towns menu: Town 1|[email protected]
    Town 2|[email protected]
    Town 3|[email protected]

    [hided]Province 2 towns menu: Town 1|[email protected]
    Town 2|[email protected]
    Town 3|[email protected]

    [hided]Province 3 towns menu: Town 1|[email protected]
    Town 2|[email protected]
    Town 3|[email protected]

    So at the end, I need de correct mail with the double choosen option, i don’t know if Im explaining it very well…

    Thanks for teh answer anyway

    Plugin Author Jules Colle

    (@jules-colle)

    @krismurphy looks like what you need are email conditions. This is supported since version 0.2

    So please update the plugin and have a look here to get you on your way: https://bdwm.be/wpcf7cf/how-to-set-up-conditional-fields-for-contact-form-7/#mail

    I have an issue with Contact Form7 with Pipe and with multiple Conditions. My code is pasted below :

    ****************************************************************
    <label> The fields marked with * in this form are mandatory </label>
    <label > </label>
    Your Name (your login user name will be displayed here): [text* your-name readonly default:user_display_name]
    <label> I want to talk to : *</label>
    [select* menu-13 first_as_label “Select a Department from the list” “HR” “IT”]

    [group HR]
    <label> Choose a Category *</label>
    [select* your-recipient first_as_label “Select a catagory the list”
    “Suggestion | [email protected]
    “Feedback | [email protected]
    “Query | [email protected]”]
    [/group]
    </br>
    [group IT]
    <label> Choose a Category *</label>
    [select* your-recipient first_as_label “Select a catagory the list”
    “Suggestion | [email protected]
    “Feedback | [email protected]
    “Query | [email protected]”]
    [/group]

    <label > </label>
    <label> I want to talk about *</label>
    [text text-248 placeholder akismet:author "Subject - a short description of your topic"]

    <label> Let’s talk *</label>

    [textarea* textarea-169 placeholder “Detailed description of your idea / suggestion / feed back”]

    <label> If you like us to contact you back, provide your details:</label>
    Your contact number [text text-769 placeholder "Your contact number"]
    Your email ID (as per your login user details)
    [email* your-email readonly default:user_email]

    [submit “Send your form”]

    **************************************************************************

    The form is working when we select IT ie [group IT] [/group] and I am getting proper mail, but for [group HR] [/group] the your-receipiet field is coming as blank, thus mail is not going. I have defined the conditions IF IT then IT & IF HR then HR in the conditional fields and form is properly displaying based on conditions. I am wondering why my first group condition is working while the second one not. Please help me ..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional Fields and contact Form 7 pipes?’ is closed to new replies.