• Resolved majancart

    (@majancart)


    I am having trouble with nested groups getting to appear correctly. The code I have is below. For some reason it is not reading the [/group] endings correctly. You’ll see I had to put 2 towards the end of the code just to get the last two field to show without ticking the 1st conditional field. This is obviously odd behavior. Am I missing something or am I trying to nest the fields the wrong way?

    <p>[text* your-name placeholder "Name*"] </p>
    
    <p>[email* your-email placeholder "Email*"] </p>
    
    <p>[tel tel-115 placeholder "Phone"] </p>
    
    <p class="label">Would you like to request a quote?</p>
    <p>[checkbox* checkbox-quote exclusive "No" "Yes"]</p>
    
    [group quote]
    
    <p class="label">What type of Transformer are you interested in?</p>
    <p>[checkbox checkbox-oildry exclusive "Dry Type Transformer" "Oil Filled Transformer"]</p>
    
    [group oil]
    
    <p class="label">Where are the primary and secondary bushings located?</p>
    [checkbox checkbox-oil1 exclusive "Both on the front side behind lockable doors (Pad mount style)" "HV & LV bushings on 180 degree opposite sides – one on left side and the other on right side (Unit substation style)" "Top HV & Top LV bushings or Top HV & Side LV (Station type style)"]</p>
    
    <p>[checkbox checkbox-oil2 exclusive "Regular Mineral Oil" "Envirotemp FR3 high flashpoint, biodegradable vegetable fluid?"]</p>
    
    <p class="label">What type of primary bushings?</p>
    <p>[checkbox checkbox-oil3 exclusive "Live Front" "Dead Front"]</p>
    
    <p>[checkbox checkbox-oil4 exclusive "Radial Feed (3 bushings)" "Loop Feed (6 bushings)"]</p>
    
    <p>[checkbox checkbox-oil5 exclusive "bayonet fuses " "two or four position load break switch" "lightning/surge arresters"]</p>
    
    [/group]
    
    [group dry]
    
    <p>[checkbox checkbox-dry1 exclusive "an enclosure" "core & coils to retrofit into an existing enclosure"]</p>
    
    [group retro]
    
    <p>If dry type retrofit – what are the existing enclosure dimensions? </p>
    <p>[text your-height placeholder "Height"]</p>
    <p>[text your-width placeholder "Width"]</p>
    <p>[text your-depth placeholder "Depth"]</p>
    
    [/group]
    
    <p>[checkbox checkbox-dry2 exclusive "fans (120V motor)" "fans (240V motors)" "fans (120V motor) with digital temperature controller" "fans (240V motors) with digital temperature controller" "digital temperature controller"</p>
    
    [/group]
    
    <p>[checkbox checkbox-376 exclusive "Copper windings" "Aluminum windings"]</p>
    
    <p>[checkbox checkbox-32 exclusive "New" "Reconditioned"]</p>
    
    <p class="label">How quickly would you want/need delivery?</p>
    <p>[checkbox checkbox-192 exclusive "1-2 days" "1-2 weeks" "2-4 months" "longer"]</p>
    
    <p class="label">Attach any drawings of existing unit to assist with correct dimensions.</p>
    <p>[file file-289 limit:10mb]</p>
    
    <p>[text your-citystate placeholder "Your Shipping City & State"]</p>
    
    [/group][/group]
    
    <p>[textarea your-message x4 placeholder "Message"] </p>
    
    <p>[submit "Send"]</p>

    Thanks,
    Mike

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

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

    (@jules-colle)

    you shouldn’t need the last [/group] as far as I can tell. I’ll reproduce your form and see what’s going on.

    Plugin Author Jules Colle

    (@jules-colle)

    Seems to work fine over here: http://bdwm.be/wpcf7cf/majancart/

    Can you share an export of your conditions so I can add those as well? (Use the import/export link under your conditions)

    Thread Starter majancart

    (@majancart)

    Sure. I just realized I also need a group for the end if the user answers “No”. But my problem is that there is a group after “Dry Type” that should also show for “Oil Filled” and does not. As far as I can tell it is outside the Dry Type group and should show up for both sets of questions. Thank you SO MUCH for your quick response!

    if [checkbox-dry1] equals "core & coils to retrofit into an existing enclosure" then show [retro]
    if [checkbox-oildry] equals "Dry Type Transformer" then show [dry]
    if [checkbox-oildry] equals "Oil Filled Transformer" then show [oil]
    if [checkbox-quote] equals "Yes" then show [quote]
    
    Plugin Author Jules Colle

    (@jules-colle)

    Hey, turns out you had an error in your form code.

    You didn’t close the [checkbox checkbox-dry2 tag.

    updated code here: http://bdwm.be/wpcf7cf/majancart/

    Thread Starter majancart

    (@majancart)

    Oh jeez! Thank you SO MUCH. Sorry to bomb you with my coding mistake! Things are looking great now 🙂

    Plugin Author Jules Colle

    (@jules-colle)

    No worries. Please leave a small review if you like the plugin.

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

The topic ‘Nested Groups Problem’ is closed to new replies.