• Problem:

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

    Upon page load and the conditional field, the group is launched, the drop-down menu fields inside the field group appear cramped with the arrow overlapping the first selection. This renders the drop-down unclickable and only upon reload does the field take its 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 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cgeers22

    (@cgeers22)

    I have already done the styling of the contact form using the following code snippet:

    .MAIL-TAG-2 { display: inline-block;
    width:150px;
    }

    I had the idea of setting a width so that it would stay consistent and try to alleviate the problem, however that did not work.

    Looking at the code on the link that @buzztone provided, it appears that ID or class styles get applied to the shortcode via a separate “id” or “class” label — note the usage at the end of the shortcode below.

    [text text-123 id:very-special-field]

    … I’m wondering, did you add your class to the shortcode? I’m guessing it would be something like…

    Qty: [select MAIL-TAG-2 first_as_label “—” “10-19” “20-49” “50-99” “100-499” “500+” class:MAIL-TAG-2]

    Just a guess.

    Good luck!

    Thread Starter cgeers22

    (@cgeers22)

    I actually did try that, the only thing I could get to work in that case was using every single shortcode that was generated. So it ended up being: .MAIL-TAG-2,.MAIL-TAG-3, .MAIL-TAG-4 etc….. and then the styling of the code.
    The issue I posted about began happening when I switched from having to change the input from text fields to the drop-down menus. It doesn’t do this on the drop down menus outside of the conditional form group either, they stay consistently working.

    • This reply was modified 6 years, 11 months ago by cgeers22.
Viewing 4 replies - 1 through 4 (of 4 total)

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