• Hello, many thanks for this great CF7 extension.

    The form is working great but in the answer mail the fields are empty :\

    i try everythink and im not solving the problem.. can u help me pls ?

    form

    Convidados Adultos [select pick-fields "Um" "Dois" "Três" "Quatro" "Cinco"] 
    
    [group group-1] 
    <fieldset>
    <legend>Um</legend>
    <div class="col-md-6"><label> 
        [text namee placeholder "Nome"] </label>
    </div>
    
    <div class="col-md-6"><label>
        [email email placeholder "Email"] </label>
    </div>
    
    </fieldset>
    
    [/group]
    
    [group group-2] 
    <fieldset>
    <legend>Dois</legend>
    <div class="col-md-6"><label> 
        [text namee placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name2 placeholder "Nome"] </label>
    </div>
    
    <div class="col-md-6"><label>
        [email email placeholder "Email"] </label>
    </div>
    
    </fieldset>
    
    [/group]
    
    [group group-3] 
    <fieldset>
    <legend>Três</legend>
    <div class="col-md-6"><label> 
        [text namee placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name2 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name3 placeholder "Nome"] </label>
    </div>
    
    <div class="col-md-6"><label>
        [email email placeholder "Email"] </label>
    </div>
    
    </fieldset>
    
    [/group]
    
    [group group-4] 
    <fieldset>
    <legend>Quatro</legend>
    <div class="col-md-6"><label> 
        [text namee placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name2 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name3 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name4 placeholder "Nome"] </label>
    </div>
    
    <div class="col-md-6"><label>
        [email email placeholder "Email"] </label>
    </div>
    
    </fieldset>
    
    [/group]
    
    [group group-5] 
    <fieldset>
    <legend>Cinco</legend>
    <div class="col-md-6"><label> 
        [text namee placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name2 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name3 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name4 placeholder "Nome"] </label>
    </div>
    <div class="col-md-6"><label> 
        [text name5 placeholder "Nome"] </label>
    </div>
    
    <div class="col-md-6"><label>
        [email email placeholder "Email"] </label>
    </div>
    
    </fieldset>
    
    [/group]
    
    Crianças [select pick-fields2 "Zero" "Uma" "Duas" "Três" "Quatro" "Cinco"] 
    
    [group group-c1]
    <fieldset>
    <legend>Uma</legend> 
    <div class="col-md-6"><label> 
        [text nome placeholder "Nome"] </label>
    <label> [text idd placeholder "Idade"] </label>
    </div>
    </fieldset>
    [/group]
    
    [group group-c2]
    <fieldset>
    <legend>Duas</legend> 
    <div class="col-md-6">
    <label> 
        [text nome placeholder "Nome"] </label>
    <label> [text* idd  placeholder "Idade"] </label>
    <label> 
        [text nome2 placeholder "Nome"] </label>
    <label> [text idd2 placeholder "Idade"] </label>
    </div>
    </fieldset>
    [/group]
    
    [group group-c3]
    <fieldset>
    <legend>Três</legend> 
    <div class="col-md-6">
    <label> 
        [text nome placeholder "Nome"] </label>
    <label> [text idd  placeholder "Idade"] </label>
    <label> 
        [text nome2 placeholder "Nome"] </label>
    <label> [text idd2 placeholder "Idade"] </label>
    <label> 
        [text nome3 placeholder "Nome"] </label>
    <label> [text idd3 placeholder "Idade"] </label>
    </div>
    </fieldset>
    [/group]
    
    [group group-c4]
    <fieldset>
    <legend>Quatro</legend> 
    <div class="col-md-6">
    <label> 
        [text nome placeholder "Nome"] </label>
    <label> [text idd placeholder "Idade"] </label>
    <label> 
        [text nome2 placeholder "Nome"] </label>
    <label> [text idd2 placeholder "Idade"] </label>
    <label> 
        [text nome3 placeholder "Nome"] </label>
    <label> [text idd3 placeholder "Idade"] </label>
    <label> 
        [text nome4 placeholder "Nome"] </label>
    <label> [text idd4 placeholder "Idade"] </label>
    </div>
    </fieldset>
    [/group]
    
    [group group-c5]
    <fieldset>
    <legend>Cinco</legend> 
    <div class="col-md-6">
    <label> 
        [text nomee placeholder "Nome"] </label>
    <label> [text idd placeholder "Idade"] </label>
    <label> 
        [text nome2 placeholder "Nome"] </label>
    <label> [text idd2 placeholder "Idade"] </label>
    <label> 
        [text nome3 placeholder "Nome"] </label>
    <label> [text idd3 placeholder "Idade"] </label>
    <label> 
        [text nome4 placeholder "Nome"] </label>
    <label> [text idd4 placeholder "Idade"] </label>
    <label>
        [text nome5 placeholder "Nome"] </label>
    <label> [text idd5 placeholder "Idade"] </label>
    </div>
    </fieldset>
    [/group]
    
    <div class="col-md-12"><label> 
        [textarea your-message placeholder "Mensagem"] </label>
    </div>
    
    </div>
    <div class="col-md-12">[submit "Enviar"]
    </div>

    mail

    ADULTOS [pick-fields] 
    
    Contacto [email] 
    Convidados :  [namee] ; [name2] ; [name3] ; [name4] ; [name5] 
    [/pick-fields]
    CRIANÇAS [pick-fields2] 
    Convidados : [nomee] - [idd] ; [nome2] - [idd2] ;  [nome3] - [idd3] ; [nome4] - [idd4] ; [nome5] - [idd5]
    [/pick-fields2] 
    
    Mensagem : [your-message]
    

    mail example :
    ADULTOS Um

    Contacto
    Convidados : ; ; ; ;
    [/pick-fields]
    CRIANÇAS Uma
    Convidados : – ; – ; – ; – ; –
    [/pick-fields2]

    Mensagem : 23fdsfsd

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

    (@jules-colle)

    Hey,

    the problem is that you have multiple fields with the same name in your form. You need to make sure are field names are unique.

    —–

    Quote from the FAQ:

    All field names should be unique

    Even though your fields might never show up at the same time, it is still important to realize that WPCF7CF will not remove the fields, it merely hides them. So all fields will be submitted when the form is sent. Because of this no two fields can have the same name.

    Incorrect form (2 input elements having the same name “a”):

    [group group-1][select a "1" "2" "3"][/group]
    [group group-2][select a "1" "2" "3"][/group]

    Correct form (all groups and fields have unique names):

    [group group-1][select a "1" "2" "3"][/group]
    [group group-2][select b "1" "2" "3"][/group]
Viewing 1 replies (of 1 total)

The topic ‘mail not working’ is closed to new replies.