• Resolved masugata

    (@masugata)


    Clear On Hide with Checkboxes works in front end, but result is blank in email.
    But it only happens when you re-selct clear_on_hide group for second time like below.

    – Select “Show Group 1” and pick any choice.
    – Then select “Show Group 2” and pick any choice. (“Show Group 1” cleared)
    – Select “Show Group 1” AGAIN and pick any choice and Submit.
    – No result in email 🙁

    [select] in “clear_on_hide” group doesn’t have this issue but when you use [checkbox] or [radio], blank result in email.

    Here is simple form to test, any fix? Thank you!

    <<< Example form >>>

    [checkbox show-group exclusive “Show Group 1” “Show Group 2”]
    [group group-1 clear_on_hide]
    [checkbox choice-1 “option 1A” “option 1B”]
    [/group]
    [group group-2 clear_on_hide]
    [checkbox choice-2 “option 2A” “option 2B”]
    [/group]
    [email* email]
    [submit “Send”]

    <<< Example Mail >>>

    show-group : [show-group]
    [group-1]
    choice-1 : [choice-1]
    [/group-1]
    [group-2]
    choice-2 : [choice-2]
    [/group-2]

    <<< Example Conditional fields >>>

    show [group-1] if [show-group] equals “Show Group 1”
    show [group-2] if [show-group] equals “Show Group 2”

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

    (@jules-colle)

    Thanks for reporting. I will follow this up on github: https://github.com/pwkip/contact-form-7-conditional-fields/issues/27

    In case this helps anyone else – In my instance, removing the :hidden from .not(':button, :submit, :reset, :hidden') (line 218 of scripts.js) resolves this issue.

    Hi guys, for me this not resolve the problem, please help me 🙁
    Checkboxes checked for the second time in a previous hidden group are not sent by mail, this is part of my code:

    [group Residence clear_on_hide]
        <div class="col-sm-3">
            <label>TrattamentoResidence* [select* TrattamentoResidence id:TrattamentoResidence include_blank "Solo Alloggio" "Bed & Breakfast" "Mezza Pensione" "Pensione Completa"]</label>
        </div>
        <div class="row">
            <div>
                <h4>OSPITI</h4>
            </div>
            <div>
                <label>Numero Adulti (o bambini oltre 10 anni)[number* residence-ospiti-adulti min:0 max:4 id:residence-ospiti-adulti]</label>
            </div>
            <div>
                <label>Numero bambini fino a 3 anni[number residence-ospiti-bambini-3anni min:0 max:3 id:residence-ospiti-bambini-3anni placeholder "0"]</label>
            </div>
            <div>
                <label>Numero bambini da 3 a 10 anni[number residence-ospiti-bambini-3a10anni min:0 max:4 id:residence-ospiti-bambini-3a10anni placeholder "0"]</label>
            </div>
        </div>
        <div>
            <h4>SERVIZI OPZIONALI RESIDENCE</h4>
        </div>
        <div>
            [checkbox ServiziOpzionaliResidenceExclusive "Noleggio culla (20€ / settimana)" "Noleggio seggiolone in appartamento (15€ / settimana)" "Pulizia infrasettimanale (escluso angolo cottura) (15€)" "Cambio infrasettimanale biancheria da letto (8€ / persona)" "Cambio infrasettimanale biancheria da bagno (8€ / persona"]
            [checkbox Superior "Appartamento con 2 bagni (Superior) +10%|Superior"]
        </div>
        [/group]
        [group Hotel clear_on_hide]
        <div class="col-sm-3">
            <label>TrattamentoHotel* [select* TrattamentoHotel id:TrattamentoHotel include_blank "Bed & Breakfast" "Mezza Pensione" "Pensione Completa"]</label>
        </div>
        <div class="row">
            <h4>OSPITI</h4>
            <div class="col-sm-6">
                <label>Numero Adulti (o bambini oltre 12 anni)[number* hotel-ospiti-adulti min:0 max:4 id:hotel-ospiti-adulti]</label>
            </div>
            <div class="col-sm-6">
                <label>Numero bambini fino a 2 anni[number hotel-ospiti-bambini-2anni min:0 max:4 id:hotel-ospiti-bambini-2anni placeholder "0"]</label>
            </div>
            <div class="col-sm-6">
                <label>Numero bambini 2 a 6 anni[number hotel-ospiti-bambini-2a6anni min:0 max:4 id:hotel-ospiti-bambini-2a6anni placeholder "0"]</label>
            </div>
            <div class="col-sm-6">
                <label>Numero bambini 6 a 12 anni[number hotel-ospiti-bambini-6a12anni min:0 max:4 id:hotel-ospiti-bambini-6a12anni placeholder "0"]</label>
            </div>
        </div>
        <div>
            <h4>SERVIZI OPZIONALI HOTEL</h4>
        </div>
        <div>
            [checkbox ServiziOpzionaliHotelExclusive "Mini frigo (3€ / giorno)"]
        </div>
        [group ServiziOpzionaliComfort]
        <div>
            <h4>SERVIZI OPZIONALI HOTEL CAMERA COMFORT</h4>
        </div>
        <div>
            [checkbox ServiziOpzionaliComfortExclusive exclusive "Camera fronte mare (10€ / giorno)" "Camera vista mare (6€ / giorno)"]
        </div>
        [/group]
        [/group]

    and this my email:

    <strong>RICHIESTA PREVENTIVO:</strong><br>
    Periodo: <span class="arrivo">[_format_arrival "d-m-Y"]</span> - <span class="partenza">[_format_departure "d-m-Y"]</span><br>
    Nome: <span class="nome">[Nome]</span><br>
    Cognome: <span class="cognome">[Cognome]</span><br>
    email: <span class="email">[email]</span><br>
    Telefono : <span class="telefono">[telefono]</span><br>
    _______________________________________________________________________<br>
    <strong>DETTAGLI DELLA PRENOTAZIONE</strong><br>
    Tipologia Alloggio: <span class="tiporis">[Alloggio] [Superior]</span><br>
    Trattamento: <span class="trattamento">[TrattamentoResidence]</span><br>
    Trattamento: <span class="trattamento">[TrattamentoHotel]</span><br><br>
    <strong>COMPOSIZIONE OSPITI:</strong><br>
    Adulti: <span class="numadu">[residence-ospiti-adulti]</span><br>
    Adulti: <span class="numadu">[hotel-ospiti-adulti]</span><br>
    Bambini fino a 2 anni : <span class="nbam0-2">[hotel-ospiti-bambini-2anni]</span><br>
    Bambini da 2 a 6 anni : <span class="nbam2-6">[hotel-ospiti-bambini-2a6anni]</span><br>
    Bambini da 6 a 12 anni: <span class="nbam6-12">[hotel-ospiti-bambini-6a12anni]</span><br>
    Bambini fino a 3 anni: <span class="nbam0-3">[residence-ospiti-bambini-3anni]</span><br>
    Bambini da 3 a 10 anni: <span class="nbam3-10">[residence-ospiti-bambini-3a10anni]</span><br>
    Totale bambini: <span class="nbam">[sum]</span><br>
    _______________________________________________________________________<br>
    <strong>SERVIZI OPZIONALI:</strong><br>
    Servizi opzionali: <span class="suppl">[ServiziOpzionaliComuni]</span><br>
    Servizi opzionali: <span class="suppl">[ServiziOpzionaliHotelExclusive]</span><br>
    Servizi opzionali: <span class="suppl">[ServiziOpzionaliComfortExclusive]</span><br>
    Servizi opzionali: <span class="suppl">[ServiziOpzionaliResidenceExclusive]</span><br>
    <strong>SISTEMAZIONE AUTO:</strong><br>
    <span class="suppl">[sistemazione-auto]</span><br>
    
    <strong>NOTE:</strong><br>
    <span class="note">[note]</span><br>

    When i check Superior, and change a valor to hid Residence group and after i revalorize to see Residence group and i re-check Superior, in email this dont appear… But, if i check this just one time (without hide and re-see) all work fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clear On Hide, Checkbox Results Blank in Email’ is closed to new replies.