• Resolved cgeers22

    (@cgeers22)


    Problem:

    Having some issues with drop down menu fields inside a Contact Form 7 Conditional Field group.

    Upon page load and the conditional field group is launched, the drop down menu fields inside the field group appears cramped with the arrow overlapping the first selection. This renders the drop down unclickable and only upon reload does the field take it’s full width and act as it should.

    Seeing as visitors would likely be hesitant to refresh the page after filling in other fields, we would like to find a way to make sure it loads properly every time.

    Here is the code we use on the form:

    <p>[checkbox MAIL-TAG-1 “Product Name”] [icon name=”external-link” class=”” unprefixed_class=””]    Qty: [select MAIL-TAG-2 first_as_label “—” “10-19” “20-49” “50-99” “100-499” “500+”]</p>

    And here is a screenshot of what they look like on the page:

    2019-07-01_1522

    For the record, this is a bulk order form for customers to choose the items they’re interested (radio button) and assign a quantity for us to discount (drop down menu)

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

    (@jules-colle)

    This sounds like a pure HTML/CSS problem. Could you clarify why you think that the conditional fields plugin is responsible for this layout?

    Thread Starter cgeers22

    (@cgeers22)

    I was thinking it could be the plugin because this problem isn’t happening to the drop-down menus outside of the group, or the drop-down menu that triggers the group to show.

    Plugin Author Jules Colle

    (@jules-colle)

    As far as the HTML code goes, Conditional fields will replace
    [group groupname][/group]
    with
    <div data-id="groupname" data-class="wpcf7cf_group" class="wpcf7cf-hidden"></div>
    or (if you selected inline) with
    <span ...></span>

    Keep this in mind while styling your page.

    • This reply was modified 6 years, 11 months ago by Jules Colle.
    Thread Starter cgeers22

    (@cgeers22)

    All the styling I have done to the drop-down boxes in the group is making them in-line and setting a width of the drop down box to 150px. I am not sure why either of those things would render the boxes unusable until the user refreshes the page, more so since when I had text-input boxes where the drop-down menus are, this wasn’t a problem at all.

    Thread Starter cgeers22

    (@cgeers22)

    This is the exact CSS code (with changed names for privacy reasons and some notes so you know what is what) that I have applied to the form with the groups.

    span.wpcf7-list-item { display: inline-block; }

    .MAIL-TAG-2 .MAIL-TAG-3 ..MAIL-TAG-4 (etc….) {
    display: inline-block;
    width:150px;
    }

    .Product-Group{
    background:#fafafa;
    padding:15px 12px 15px 12px;
    } (<—- Div for styling purposes)

    .Product-Group p {
    background:#fafafa;
    margin-bottom:10px;
    }

    .Product-Group hr{
    margin-top:0px;
    margin-bottom:15px;
    }

    Plugin Author Jules Colle

    (@jules-colle)

    It would really help if I could just see the page and work it out with the browser dev tools.

    Thread Starter cgeers22

    (@cgeers22)

    Is there an email I can use to send you the URL and the guest login so you can view it?

    Plugin Author Jules Colle

    (@jules-colle)

    no sorry, this is a community forum. Please reproduce the problem on a public page. I don’t need a login at this point. Just seeing the page is enough.

    If you really want to give me your login, consider getting Conditional Fields PRO, it gives you access to a ticket system where I take login information.

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

The topic ‘Drop-down menu resizing when page is opened inside group’ is closed to new replies.