• Hi,
    I write this post helping this plugin will help me to solve a big problem in our website.

    I try to explain everything:
    in our website we set a map with a list of mechanics (each with an id value); customers set own address and the list dinamically order the list by distance; then customer click on a button and goes to page with the form.
    Here, he fills fields with his personal info and could send the request to the choosen mechanic.

    We create a unique contact form and installed plugins Conditional Fields for Contact Form 7 and Contact Form 7 – Dynamic Text Extension to show the mechanic’s info above the form.

    Form’s code is like this:

    <!– CONDITIONAL –>
    <div style=”background-color:#e40421; color:#ffffff;margin-bottom: 30px;”>
    [dynamichidden you-codcli “CF7_GET key=’store_id’”]
    <p style=”font-size:2em;font-weight:bold;”>YOU HAVE CHOOSEN THIS MECHANIC:</p>
    [group mechanic01]
    <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 01</p>
    address address address
    Tel.: 999 999 999
    [hidden emailofficina “[email protected]”]
    [/group]
    [group mechanic02]
    <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 02</p>
    address address address
    Tel.: 999 999 999
    [hidden emailofficina “[email protected]”]
    [/group]
    [group mechanic03]
    <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 03</p>
    address address address
    Tel.: 999 999 999
    [hidden emailofficina “[email protected]”]
    [/group]
    </div>
    <!– EN CONDITIONAL –>
    <!– FORM –>
    <div>
    <p>Honda SH Model</p>
    <p>[select* your-model include_blank “SH 125/150 (2005 > 2009)” “SH 125/150 – Doppio Disco (2010 > 2013)” “SH 125/150 – ABS (2013 > 2016)” “SH 300 (2007 > 2015)”]
    </p>
    <p>Enrolment Year</p>
    <p>[select* your-anno include_blank “2017” “2016” “2015” “2014” “2013” “2012” “2011” “2010” “2009” “2008” “2007” “2006” “2005”]
    </p>
    <p>Name</p>
    <p>[text* your-name placeholder “es. Mario Rossi”]</p>
    <p>Phone</p>
    <p>[text* your-phone placeholder “es. 060606 oppure 333444555”]</p>
    <p>Email</p>
    <p>[text* your-email placeholder “es. [email protected]“]</p>
    <p>[submit “SEND”]</p>
    </div>
    <!– END FORM –>

    After this, we set the conditions like this:
    * if youcodcli equals 11111 then show mechanic01
    * if youcodcli equals 22222 then show mechanic02
    * if youcodcli equals 33333 then show mechanic03

    Until this, everything works.
    But problems start in mail settings: we tried to put [emailofficina] into the TO recipient, but every mail arrives to [email protected].
    “Conditional Fields for Contact Form 7” support said us that we can’t use [emailofficina] for every one, so we tried to use [emailofficina01],[emailofficina02] and [emailofficina03]…but when we put into TO recipient these 3 mail is sent (obviously) to them, not only to choosen mechanic.

    How can we use your plugin to solve this problem?
    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author John Huebner

    (@hube2)

    Yes, this plugin can do this

    You create a filter to determine the email address to send to, see the instructions
    1) you create a hidden field in your form that has the field name “dynamic-mail-to-filter” and the value of the name of your hook, see the instructions
    2) create another hidden field with the name “dynamic-mail-to-fields”, the value of this field is the name(s) of the field that you want passed to your filter, (i.e the field that holds the ID value in question (see instructions)
    3) Create your filter that determines the email address to use based on the value of the hidden field that holds the ID in question, see instruction.

Viewing 1 replies (of 1 total)
  • The topic ‘Could this plugin help me?’ is closed to new replies.