• So I use multistep form and conditional field. There’s question whether user need more cargo or not, if yes then there would be additional cargo input. The problem is, when user choose “No” the data of the cargo and data of next-step-form can’t be displayed on mail and can’t be called.

    <div id="ck-button">
    [radio radio-1  "FCL" "LCL" "AIR" "Break Bulk" "RORO"]
    </div>
    
    <div class="jon">
    <div class="jon7">
    
    <b><strong>Cargo Details</strong></b>
    
    <hr />
    
    <div class="jon3">
      <div class="jon10">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest2">Weight (Per Piece) [text text-weight]</th>
    <th class="jontest2"><div id="ck-button">
    [radio radio-weight default:0 use_label_element "KG" "LB"]
    </div></th>
    </tr>
    
    </tbody>
    </table>
      </div>
      <div class="jon10" style="padding-right:10px;">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest6">Pieces[text text-price]</th>
    <th class="jontest7"><strong>X</strong></th>
    <th class="jontest6">Package Type[select menu-package include_blank "Pallet" "Loose Carton" "Other"]
    [group group-other][text text-other][/group]
    </th>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    
    <div class="jon11">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest4">Volume (m3)[text text-volume]</th>
    <th class="jontest5">Or</th>
    <th class="jontest4">Length (cm)[text text-length]</th>
    <th class="jontest5">X</th>
    <th class="jontest4">Width (cm)[text text-width]</th>
    <th class="jontest5">X</th>
    <th class="jontest4">Height (cm)[text text-height]</th>
    </tr>
    
    </tbody>
    </table>
    </div>
    </div>
    </div>
    
    [group group-if-have-fcl]
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest1">
    20Ft Container<hr style="visibility:hidden;margin:0px;">
    20'x8'x8'6''
    </th>
    <th class="jontest">[number* number-cargo1 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertype1 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    
    <tr class="jontest">
    
    <th class="jontest1">
    40Ft Container<hr style="visibility:hidden;margin:0px;">
    40'x8'x8'6''
    </th>
    <th class="jontest">[number* number-cargo2 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertype2 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    
    <tr class="jontest">
    
    <th class="jontest1">
    40Ft Container<hr style="visibility:hidden;margin:0px;">
    40'x8'x9'6''
    </th>
    <th class="jontest">[number* number-cargo3 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertype3 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    </tbody>
    </table>
    [/group]
    
    [group groupfcl-1]
    
    <div class="jon3">
    <div class="jon2">
    [checkbox checkbox-cargo use_label_element "Palletized" "Non-stackable" "Shipment contains dangerous goods" "Shipment contains exclusively documents" "Restricted commodities" "Temperature controlled containers"]
    </div>
    <div class="jon2">
    [group group-bb-show]<p>Optional Detail</p> [select menu-optionaldetail include_blank "On Deck" "Underdeck" "Bundle" "Loose"][/group]
    <p>If you have Packing list want to upload please do it in the last step.</p>
    <p>Description of goods</p>
     [textarea textarea-descg]
    
    </div>
    </div>
    [/group]
    <hr style="visibility:hidden; height:20px;margin:0px; width:100%">
    
    [group groupfcl-2]
    [textarea textarea-desc placeholder "Description for good"]
    [checkbox checkbox-containerdanger use_label_element "I have MSDS DOC"]
    [/group]
    
    [group groupfcl-3]
    <p>Medical commodities, bullion or any money of any description, livestock, precious stones/gems or metals, bottled spirits, cigarettes/cigar, fine art and antiques, human remains, weapons of any type, micro-chips, computer chips, etc. *click<a href="https://mpstaging.us/ifl/faq/"> here </a>for more details. </p>
    [/group]
    
    [group groupfcl-4]
    <p>Temperature Detail</p>
    [number number-tempofcargo min:0 max:100 placeholder "Celsius"]
    [/group]
    
    Do you require more than one cargo?[radio add-from-three use_label_element "Yes" "No"]
    
    [group duplicate-one-more-time]
    <div class="jon">
    <div class="jon7">
    
    <b><strong>Cargo Details</strong></b>
    
    <hr />
    
    <div class="jon3">
      <div class="jon10">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest2">Weight (Per Piece) [text text-weight1]</th>
    <th class="jontest2"><div id="ck-button">
    [radio radio-weight1 use_label_element "KG" "LB"]
    </div></th>
    </tr>
    
    </tbody>
    </table>
      </div>
      <div class="jon10" style="padding-right:10px;">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest6">Pieces[text text-price1]</th>
    <th class="jontest7"><strong>X</strong></th>
    <th class="jontest6">Package Type[select menu-package1 include_blank "Pallet" "Loose Carton" "Other"]
    [group group-othera][text text-other1][/group]
    </th>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    
    <div class="jon11">
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest4">Volume (m3)[text text-volume1]</th>
    <th class="jontest5">Or</th>
    <th class="jontest4">Length (cm)[text text-length1]</th>
    <th class="jontest5">X</th>
    <th class="jontest4">Width (cm)[text text-width1]</th>
    <th class="jontest5">X</th>
    <th class="jontest4">Height (cm)[text text-height1]</th>
    </tr>
    
    </tbody>
    </table>
    </div>
    </div>
    </div>
    
    [group group-if-have-fcla]
    <table class="jontest">
    <tbody>
    <tr class="jontest">
    
    <th class="jontest1">
    20Ft Container<hr style="visibility:hidden;margin:0px;">
    20'x8'x8'6''
    </th>
    <th class="jontest">[number* number-cargoa1 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertypea1 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    
    <tr class="jontest">
    
    <th class="jontest1">
    40Ft Container<hr style="visibility:hidden;margin:0px;">
    40'x8'x8'6''
    </th>
    <th class="jontest">[number* number-cargoa2 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertypea2 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    
    <tr class="jontest">
    
    <th class="jontest1">
    40Ft Container<hr style="visibility:hidden;margin:0px;">
    40'x8'x9'6''
    </th>
    <th class="jontest">[number* number-cargoa3 min:0 max:99 "0"]</th>
    <th class="jontest">[select containertypea3 "GENERAL PURPOSE" "REEFER CONTAINER" "OPEN TOP" "FLAT RACK"]</th>
    </tr>
    </tbody>
    </table>
    [/group]
    [group groupfcl-1a]
    
    <div class="jon3">
    <div class="jon2">
    [checkbox checkbox-cargo1 use_label_element "Palletized" "Non-stackable" "Shipment contains dangerous goods" "Shipment contains exclusively documents" "Restricted commodities" "Temperature controlled containers"]
    </div>
    <div class="jon2">
    [group group-bb-showa]<p>Optional Detail</p> [select menu-optionaldetail1 include_blank "On Deck" "Underdeck" "Bundle" "Loose"][/group]
    <p>If you have Packing list want to upload please do it in the last step.</p>
    <p>Description of goods</p>
     [textarea textarea-descg1]
    
    </div>
    </div>
    [/group]
    [group groupfcl-2a]
    [textarea textarea-desc1 placeholder "Description for good"]
    
    [/group]
    
    [group groupfcl-3a]
    <p>Medical commodities, bullion or any money of any description, livestock, precious stones/gems or metals, bottled spirits, cigarettes/cigar, fine art and antiques, human remains, weapons of any type, micro-chips, computer chips, etc. *click<a href="https://mpstaging.us/ifl/faq/"> here </a>for more details. </p>
    [/group]
    
    [group groupfcl-4a]
    <p>Temperature Detail</p>
    [text text-961]
    [/group]
    
    [/group]
    
    <hr style="visibility:hidden; height:10px;margin:0px">
    
    [group group-send]
    [previous "Back"] [submit "Next"]
    [multistep multistep-jstep2 "https://mpstaging.us/ifl/jstep3/"]
    [/group]

    and this is the conditional field code

    show [group-if-have-fcl] if [radio-1] equals "FCL"
    show [group-bb-show] if [radio-1] equals "Break Bulk"
    show [-1] if [radio-1] equals "FCL"
    show [-1] if [radio-1] equals "LCL"
    show [-1] if [radio-1] equals "AIR"
    show [-1] if [add-from-three] equals "Yes"
    show [group-if-have-fcla] if [radio-1] equals "FCL"
    show [groupfcl-1] if [radio-1] equals "FCL"
    show [groupfcl-1a] if [radio-1] equals "FCL"
    show [group-send] if [add-from-three] equals "Yes"
    show [group-send] if [add-from-three] equals "No"

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

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

    (@jules-colle)

    show [-1] if [radio-1] equals "FCL"
    show [-1] if [radio-1] equals "LCL"
    show [-1] if [radio-1] equals "AIR"
    show [-1] if [add-from-three] equals "Yes"

    These aren’t valid conditions. Maybe see if you can fix these first.

    Next, try to simplify your form to a minimal version to illustrate the problem clearly. Ideally it would be nice if you could create a very small form that illustrates the gist of your problem here: https://conditional-fields-cf7.bdwm.be/form-tester/

    Thread Starter dev2mpd

    (@dev2mpd)

    Test link

    So here’s the link for the test, already fill the missing conditional field. On personal test, it work fine but when I choose “No” then third form data can’t be generated

    • This reply was modified 3 years, 11 months ago by dev2mpd.
    Plugin Author Jules Colle

    (@jules-colle)

    Sorry I didn’t get back to you sooner. This is a large and complex form. Can you simplify it for me, so only I can understand what’s happening?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘data can’t be read when choose “No”’ is closed to new replies.