Title: Confirmation Email issue
Last modified: May 12, 2017

---

# Confirmation Email issue

 *  Resolved [petitmateo](https://wordpress.org/support/users/petitmateo/)
 * (@petitmateo)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/)
 * Hello, many thanks for this great CF7 extension…
 * I don’t understand what to do.
    In my form, one user have to choose a present
   depending on the contract he subscribes to.
 * Stage 1: a radio box is displayed to choose between 3 different types of contract.
   
   Contract A – Contract B – Contract C (option input type)
 * Stage 2 : if user chooses Contract A, then he has to choose one present
    Present
   A1 – Present A2 – Present A3 (option input type) If user chooses Contract B, 
   then he has to choose among another list of present Present B1 – Present B2 –
   Present B3 (option input type) And so on for Contract C…
 * Stage 3 : user has to click on one option (for instance B1) to display present’s
   details (image, value, description)
 * Everything works perfectly with your Conditionnal fields extension in the form.
 * Issue: suppose the form user clicks on Contract A1, then Present A1 – Present
   A2 – Present A3 conditional fields groups is shown. He clicks on Present A1 option:
   its radio button is selected.
    Then he wants to compare kinds of contracts/presents
   before sending the form… He know clicks on Present B : A1, A2, A3 groups is hidden.
   B1, B2, B3 radio button group is shown. He clicks on B2. He wants it, he validates
   the form and sent it.
 * My problem: in the confirmation email sent, I want to show name and description
   of the last present he has selected.
    –> Whatever I do, the email displays A1
   + B2 options details. I only need last choice, B2 witch is the last choice displayed
   on the form…
 * Here is the structure of my form:
 *     ```
       [radio contract-A contract-B contract-C]
       [group present-A]
       [radio A1 A2 A3]
         [group detail A1]
           image of present A1, description, value
         [/group]
         [group detail A2]
           image of present A2, description, value
         [/group]
         [group detail A3]
           image of present A3, description, value
         [/group]
       [/group]
       [group present-B]
       [radio B1 B2 B3]
         [group detail B1]
           image of present A1, description, value
         [/group]
         [group detail B2]
           image of present B2, description, value
         [/group]
         [group detail B3]
           image of present B3, description, value
         [/group]
       [/group]
       ```
   
 * Rules :
    if radio contract == contract then show group present-A if radio A1 
   A2 A3 = A1 then show groups detail A1 etc.
 * What should I do in the email message? Impossible to display only last choice
   displayed in the form.
    Many thanks for your help, Mathieu

Viewing 5 replies - 1 through 5 (of 5 total)

 *  anonymized-13755187
 * (@anonymized-13755187)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9124486)
 * Hello,
 * According to the documentation you should use the group name only in the email.
 *     ```
       [group-1]
         [group-inside-1]
           ...
         [/group-inside-1]
       [/group-1]
       ```
   
 * Do you have a example of your email code?
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9124948)
 * imblue’s comment is correct.
 * also make sure that group names are one word, or seperate the words with dash(-)
   or underscore (_).
 * so don’t name your group
 * `[group detail B3]`
 * but
 * `[group detail-B3]`
 * instead.
 * Also don’t forget to update your conditions after you changed this.
 *  Thread Starter [petitmateo](https://wordpress.org/support/users/petitmateo/)
 * (@petitmateo)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9125561)
 * Many thanks for your replies.
    Here is my code: Form:
 *     ```
       [radio menu-choice-offer use_label_element "Silver" "Gold" "Platinium"]
   
       [group group-offer-silver-detail]
       	HTMLcontent...
           [radio radio-silver use_label_element "Present n°1" "Present n°2" "Present n°3"]
   
           [group present-silver-1]
               HTMLcontent...
           [/group]
           [group present-silver-2]
               HTMLcontent...
           [/group]
           [group present-silver-3]
               HTMLcontent...
           [/group]
       [/group]
   
       [group group-offer-gold-detail]
       	HTMLcontent...
           [radio radio-gold use_label_element "Present n°4" "Present n°5" "Present n°6"]
   
           [group present-gold-1]
               HTMLcontent...
           [/group]
           [group present-gold-2]
               HTMLcontent...
           [/group]
           [group present-gold-3]
               HTMLcontent...
           [/group]
       [/group]
   
       [group group-offer-platinium-detail]
       	HTMLcontent...
           [radio radio-platinium use_label_element "Present n°7" "Present n°8" "Present n°9"]
   
           [group present-platinium-1]
               HTMLcontent...
           [/group]
           [group present-platinium-2]
               HTMLcontent...
           [/group]
           [group present-platinium-3]
               HTMLcontent...
           [/group]
       [/group]
       ```
   
 * Mail:
 *     ```
       Dear customer,
       Here is the contract you've choosen : [menu-choice-offer]
   
       Your present details :
       [radio-silver][radio-gold][radio-platinium]
   
       [present-silver-1] HTML content... [/present-silver-1]
       [present-silver-2] HTML content... [/present-silver-2]
       [present-silver-3] HTML content... [/present-silver-3]
   
       [present-gold-1] HTML content... [/present-gold-1]
       [present-gold-2] HTML content... [/present-gold-2]
       [present-gold-3] HTML content... [/present-gold-3]
   
       [present-platinium-1] HTML content... [/present-platinium-1]
       [present-platinium-2] HTML content... [/present-platinium-2]
       [present-platinium-3] HTML content... [/present-platinium-3]
       ```
   
 * Normally, only one present details should be displayed. I get more if user had
   previously selected one.
 *  Thread Starter [petitmateo](https://wordpress.org/support/users/petitmateo/)
 * (@petitmateo)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9125863)
 * Feel so sorry for disturbing… I must be tired… Everything works fine now…
    The
   email code simply should be :
 *     ```
       [group group-offer-silver-detail]
         [present-silver-1] HTML content... [/present-silver-1]
         [present-silver-2] HTML content... [/present-silver-2]
         [present-silver-3] HTML content... [/present-silver-3]
       [/group group-offer-silver-detail]
       etc.
       ```
   
 * Many thanks again,
    Mathieu
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9127177)
 * you’re welcome! feel free to leave a small review if you like the plugin 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Confirmation Email issue’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/confirmation-email-issue-2/#post-9127177)
 * Status: resolved