• Resolved borkk85

    (@borkk85)


    Hi,

    I am a bit new to contact form 7 and I wanted to achieve a dropdown menu with several options and when certain option would be chosen it should appear in the front end and be sent in a mail.
    I used conditional-fields-for-contact-form-7-tutorial, however I guess I am doing something wrong because the sent mail returns empty… Some help would be greatly appreciated.

    Here is the form:

    
    [select* Dropdown "Please tell us the reason for your inquiry" "Where to buy" "Product use" "Ingredients"]
    [group where-to-buy]
    [text* Product-Name placeholder "Product name"]
    
    [text* Name placeholder "Name"]
    [email* Email placeholder "Email"]
    [text* Details placeholder "Details"]
    [textarea* Comments  placeholder "Comments"]
    [/group]
    
    [group product-use]
    [text* Product-Name placeholder "Product name"]
    [text* Product-barcode placeholder "Product barcode"]
    
    [text* Name placeholder "Name"]
    [email* Email placeholder "Email"]
    [text* Details placeholder "Details"]
    [textarea* Comments  placeholder "Comments"]
    [/group]
    [group ingredients]
    [text* Product-Name placeholder "Product name"]
    
    [text* Name placeholder "Name"]
    [email* Email placeholder "Email"]
    [text* Details placeholder "Details"]
    [textarea* Comments placeholder "Comments"]
    [/group]
    
    [checkbox* checkbox-34 use_label_element  "By entering your information you agree to us retaining your details to send you information on our services/products. We will not share your details with third parties. You can request your details to be removed at any time"]
    [checkbox* checkbox-35 use_label_element  "I consent for my information to be used by Star Brands Ltd for direct marketing purposes."]
    [checkbox* checkbox-36 use_label_element  "I understand I can read further about how my details are used on this website by visiting this websites privacy page."]
    
    [submit "Submit"]

    and the mail:

    
    Dropdown : [Dropdown]
    [where-to-buy]
      Product-Name : [Product-Name]
      Name : [Name]
      Email : [Email]
      Details : [Details]
      Comments : [Comments]
    [/where-to-buy]
    [product-use]
      Product-Name : [Product-Name]
      Product-barcode : [Product-barcode]
      Name : [Name]
      Email : [Email]
      Details : [Details]
      Comments : [Comments]
    [/product-use]
    [ingredients]
      Product-Name : [Product-Name]
      Name : [Name]
      Email : [Email]
      Details : [Details]
      Comments : [Comments]
    [/ingredients]
    
    • This topic was modified 2 years, 2 months ago by borkk85. Reason: wrongly positioned backticks

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    You have multiple fields with the same name. Please check All field names should be unique

    Thread Starter borkk85

    (@borkk85)

    Hi,

    Thanks for the answer, I tried doing it like this, however now the mails aren’t being submitted/sent…

    Form:

    [group where-to-buy]
    <label>Product details: [text* Product1 placeholder "Product name"]</label>
    [text* Name1  placeholder "Name"]
    [email* Email1  placeholder "Email"]
    [text* Details1  placeholder "Details"]
    [textarea* Comments1   placeholder "Comments"]
    [/group][group product-use]
    <label>Product details:  [text* Product2 placeholder "Product name"]</label> <label>[text* Product-barcode placeholder "Product barcode"]</label>
    [text* Name2 placeholder "Name"]
    [email* Email2 placeholder "Email"]
    [text* Details2 placeholder "Details"]
    [textarea* Comments2 placeholder "Comments"]
    [/group][group ingredients]
    <label>Product details:  [text* Product3 placeholder "Product name"] </label>
    [text* Name3 placeholder "Name"]
    [email* Email3 placeholder "Email"]
    [text* Details3 placeholder "Details"]
    [textarea* Comments3 placeholder "Comments"]
    [/group]

    Mail:

    Inquiry : [Dropdown]
    
    [where-to-buy]
      Product1 : [Product1]
      Name1 : [Name1]
      Email1 : [Email1]
      Details1 : [Details1]
      Comments1 : [Comments1]
    [/where-to-buy]
    [product-use]
      Product2 : [Product2]
      Product-barcode : [Product-barcode]
      Name2 : [Name2]
      Email2 : [Email2]
      Details2 : [Details2]
      Comments2 : [Comments2]
    [/product-use]
    [ingredients]
      Product3 : [Product3]
      Name3 : [Name3]
      Email3 : [Email3]
      Details3 : [Details3]
      Comments3 : [Comments3]
    [/ingredients]
    Plugin Author Jules Colle

    (@jules-colle)

    Could you set up the form in the form-tester and send me the link here? https://conditional-fields-cf7.bdwm.be/form-tester/

    Thread Starter borkk85

    (@borkk85)

    Hi,

    Sorry for the late answer, here is the form-tester form

    Plugin Author Jules Colle

    (@jules-colle)

    Everything seems to work fine in the form tester. Does it work as expected for you in the form tester as well?

    Thread Starter borkk85

    (@borkk85)

    Hi,

    Yes it did, I managed to solve this, so thanks for the assistance…

    Plugin Author Jules Colle

    (@jules-colle)

    glad to hear it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Email sent is empty’ is closed to new replies.