• Resolved leonkings

    (@leonkings)


    Hi everyone,

    I’m having a problem on conditional fields, multiple condition is not working.

    For example. If chose product (like milk) , a specific list will show like grams, and brand.

    1 is 1 condition is working but multiple is not.

    please help.

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

    (@jules-colle)

    Thread Starter leonkings

    (@leonkings)

    Hi Jules,

    Good Day! I read that article however it’s not the solution i’m looking for.

    The problem is I have 1 drop-down menu and 1 value is equal to 3 dependencies(3 dropdown menu) that will show at the same time it’s working yes but not showing on the review page also not registering on the database properly.

    Here’s the code.

    <div class=”et_pb_row et_pb_row_cstm et_pb_row_title”>

    <div class=”et_pb_column”>

    <h3>Product details</h3>

    </div>

    </div>

    <div class=”et_pb_row et_pb_row_cstm”>

    <div class=”et_pb_column et_pb_column_1_2″>

    <label>Product</label>
    [select* product id:product
    “– Please select –”
    “SMP LH”
    “SMP MH”
    “SMP HH”
    “WMP Regular”
    “WMP Instant”
    “Cheddar”
    “Mozzarella Block”
    “Butter Unsalted”
    “Butter Salted”
    “Butter Lactic Unsalted”
    “Lactose 80-100 Mesh”
    “Lactose 200 Mest”
    “Sweet Whey Powder”
    “D40 Whey Powder”
    ]

    <label>Other</label>
    [text other id:other]

    <label>Specification</label>

    [group no-product]
    [text no-specs id:no-specification readonly "---"]
    [/group]

    [group product-1]
    [select* spec-1 id:spec-1 “– Please select –” “Hilmar” “Lakeland” “MG” “GDT Spec”]
    [/group]

    [group product-2]
    [select* spec-2 id:spec-2 “– Please select –” “Grand Meadow” “DFA” “GDT” “Saputo Argentina”]
    [/group]

    [group product-3]
    [select* spec-3 id:spec-3 “– Please select –” “OCD Ched P” “GDT” “Hilmar” “IDB”]
    [/group]

    [group product-4]
    [select* spec-4 id:spec-4 “– Please select –” “Leprino (BLock)”]
    [/group]

    [group product-5]
    [select* spec-5 id:spec-5 “– Please select –” “Tatura” “GDT” “California Dairies” “IDB”]
    [/group]

    <label>Packaging</label>

    [group no-package]
    [text no-packaging id:no-packaging readonly "---"]
    [/group]

    [group package-1]
    [select* packaging-1 id:packaging-1 “– Please select –” “25KG Bag”]
    [/group]

    [group package-2]
    [select* packaging-2 id:packaging-2 “– Please select –” “20KG Carton”]
    [/group]

    [group package-3]
    [select* packaging-3 id:packaging-3 “– Please select –” “25KG Carton”]
    [/group]

    <label>Shipping temperature</label>
    [select* shipping-temperature id:shipping-temperature “– Please select –” “Frozen” “Chilled” “Ambient”]

    <label>Origin</label>
    [checkbox* origin id:origin “Any” “Australia” “New Zealand” “United Stated of America” “European Union” “Eastern Europe” “South America (Chile, Uruguay, Argentina)”]

    </div>

    <div class=”et_pb_column et_pb_column_1_2″>

    <label>Quantity in Metric Tonnes</label>
    [group no-metric]
    [text no-metric id:no-metric readonly "---"]
    [/group]

    [group metric-1]
    [select* metric-tones-1 id:metric-tones-1
    “– Please select –”
    “17”
    “34”
    “51”
    “68”
    “85”
    “102”
    “119”
    “136”
    “153”
    “170”
    “187”
    “204”
    ]
    [/group]

    [group metric-2]
    [select* metric-tones-2 id:metric-tones-2
    “– Please select –”
    “16”
    “32”
    “48”
    “64”
    “80”
    “96”
    “112”
    “128”
    “144”
    “160”
    “176”
    “192”
    ]
    [/group]

    [group metric-3]
    [select* metric-tones-3 id:metric-tones-3
    “– Please select –”
    “20”
    “40”
    “60”
    “80”
    “100”
    “120”
    “140”
    “160”
    “180”
    “200”
    “220”
    “240”
    ]
    [/group]

    <label>Container type</label>
    [select* container-type id:container-type “– Please select –” “20′ FQ” “20′ Reefer” “40′ FQ” “40′ Reefer”]

    <div class=”et_pb_row et_pb_row_cstm”>

    <div class=”et_pb_column et_pb_column_1_2″>

    <label>Shipment period arrival (start)</label>
    [date* arrival-start id:arrival-start]

    </div>

    <div class=”et_pb_column et_pb_column_1_2″>
    <label>Shipment period arrival (end)</label>
    [date* arrival-end id:arrival-end]
    </div>

    </div>

    <label>Custom shipment spread details</label>
    [textarea spread-details id:spread-details]

    <label>Incoterm</label>
    [select* incoterm id:incoterm “–Please select–” “CIF” “FOB” “DDP” “EXW” “FAS” “CFR” “DAP”]

    <label>Minimum free demurrage (port storage days)</label>
    [text port-storage id:port-storage]

    <label>Minimum free detention (container rent days)</label>
    [text container-rent id:container-rent]

    </div>

    </div>

    <div class=”et_pb_row et_pb_row_cstm”>

    <div class=”et_pb_column et_pb_column_1_2″>[previous “Back”]</div>

    <div class=”et_pb_column et_pb_column_1_2″>

    [submit id:step-2-submit “Next”]

    </div>

    </div>

    /*************************** Heres the Condional field inputs ****************/

    show [no-product] if [product] equals “– Please select –”
    show [product-1] if [product] equals “SMP LH”
    show [product-1] if [product] equals “SMP MH”
    show [product-1] if [product] equals “SMP HH”
    show [product-2] if [product] equals “WMP Regular”
    show [product-2] if [product] equals “WMP Instant”
    show [product-3] if [product] equals “Cheddar”
    show [product-4] if [product] equals “Mozzarella Block”
    show [product-5] if [product] equals “Butter Unsalted”
    show [product-5] if [product] equals “Butter Salted”
    show [product-5] if [product] equals “Butter Lactic Unsalted”
    show [no-product] if [product] equals “Lactose 80-100 Mesh”
    show [no-product] if [product] equals “Lactose 200 Mest”
    show [no-product] if [product] equals “Sweet Whey Powder”
    show [no-product] if [product] equals “D40 Whey Powder”
    show [no-package] if [product] equals “– Please select –”
    show [package-1] if [product] equals “SMP LH”
    show [package-1] if [product] equals “SMP MH”
    show [package-1] if [product] equals “SMP HH”
    show [package-1] if [product] equals “WMP Regular”
    show [package-1] if [product] equals “WMP Instant”
    show [package-2] if [product] equals “Cheddar”
    show [package-2] if [product] equals “Mozzarella Block”
    show [package-3] if [product] equals “Butter Unsalted”
    show [package-3] if [product] equals “Butter Salted”
    show [package-3] if [product] equals “Butter Lactic Unsalted”
    show [no-package] if [product] equals “Lactose 80-100 Mesh”
    show [no-package] if [product] equals “Lactose 200 Mest”
    show [no-package] if [product] equals “Sweet Whey Powder”
    show [no-package] if [product] equals “D40 Whey Powder”
    show [no-metric] if [product] equals “– Please select –”
    show [metric-1] if [product] equals “SMP LH”
    show [metric-1] if [product] equals “SMP MH”
    show [metric-1] if [product] equals “SMP HH”
    show [metric-2] if [product] equals “WMP Regular”
    show [metric-2] if [product] equals “WMP Instant”
    show [metric-3] if [product] equals “Cheddar”
    show [no-metric] if [product] equals “Mozzarella Block”
    show [no-metric] if [product] equals “Butter Unsalted”
    show [no-metric] if [product] equals “Butter Salted”
    show [no-metric] if [product] equals “Butter Lactic Unsalted”
    show [no-metric] if [product] equals “Lactose 80-100 Mesh”
    show [no-metric] if [product] equals “Lactose 200 Mest”
    show [no-metric] if [product] equals “Sweet Whey Powder”
    show [no-metric] if [product] equals “D40 Whey Powder”

    Plugin Author Jules Colle

    (@jules-colle)

    looks fine on first sight. But I’m still not clear what the problem is. Could you share a link to the live form? Or create a simplified version of the form to clearly explain the problem?

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

The topic ‘Multiple Condition Not Working’ is closed to new replies.