PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Keep "Question" and "Answers/Options" on the same line initially

  1. HI there, Great plugin.

    I would like to know how to get my Question and Options to be on the same line for the first option or drop down menu. For example, I want it to be like this:

    Size: (Dropdown Menu Here)
    instead of
    Size:
    (Dropdown Menu Here)

    for Radio Options, I want it to be:
    Size: -Small
    -Medium
    -Large
    instead of:
    Size:
    -Small
    -Medium
    -Large

    Could you please help? I have also shown the way I want it on this link: http://doamore.wpengine.com/shop/adar-copy/ (the top two product options are woo commerce formatted drop downs (the way I want the look), and the bottom two product options are gravity forms.

    On the above link example, I want the drop down for size to be next to the word size like the woo commerce option above, and I want the the first engraving radio buttons to start on the same line as as the word engraving (without the massive indentations between the button and the option please).

    Thanks so much for your help. This is great support and I appreciate it.

    Posted 7 years ago on Thursday August 2, 2012 | Permalink
  2. This should work for you. Drop this into your theme's stylesheet:

    [css]
    li#field_2_1 .gfield_label {
    float: left;
    margin-right: 5px;
    }
    Posted 7 years ago on Thursday August 2, 2012 | Permalink
  3. Thank you, this worked for the drop down menu! How did you code that? I need to know in case I make other forms (that way I can apply the same code but change it).

    It worked for the drop down menu, but not for the radio buttons. You can see this link: http://doamore.wpengine.com/shop/adar-copy/

    Is there a way I could do this for the radio buttons so that the first option is on the same line as the product option name (and doesn't have huge tabs in between)?

    For example:

    for Radio Options, I want it to be:

    Size: -Small
    -Medium
    -Large

    instead of:

    Size:
    -Small
    -Medium
    -Large

    Lastly, on some computers the "size" options has a huge font. Is there a code to change the "font size" of the size drop down options? The word size is fine, but the actual options are really big.

    Thank you so much. Great support. Would love to give feedback or rate you 5 star.

    Posted 7 years ago on Friday August 3, 2012 | Permalink
  4. I answered your other post for the huge tabs in between the radio options:
    http://www.gravityhelp.com/forums/topic/cant-justify-forum-to-left-with-css-off-or-on#post-69126

    What you are looking to do with the radio placement isn't possible with the HTML structure that is in place. Why don't you just make that a drop down too since it's single selection like the size?

    What browser(s) are you seeing the "size" label in a huge font?

    Posted 7 years ago on Friday August 3, 2012 | Permalink
  5. Thank you. But How did you code that? I need to know in case I make other forms (that way I can apply the same code but change it).
    This was the code you showed. I need to know how to apply it to all dropdowns on all my gravity forms.

    li#field_2_1 .gfield_label {
    float: left;
    margin-right: 5px;
    }
    Posted 7 years ago on Friday August 3, 2012 | Permalink
  6. In google chrome, right click on the element in question and choose "Inspect this element". This will bring up the developer tools that will show you the ID for that field, in which you can write a selector based on that single field.

    If you want a more globaly option, you can always apply a class to the field(s) and write/create your selector based on that class name or just write a more general selector. How versed are you in CSS?

    You may want to take a read through this:
    http://www.gravityhelp.com/documentation/page/Design_and_Layout

    As well as we have other CSS resources here:
    http://www.gravityhelp.com/other-resources/

    Posted 7 years ago on Friday August 3, 2012 | Permalink
  7. Thanks for your help Rob. I am not versed in CSS but will try my best to learn it. I understand I think and will try to get there!

    One question that may help me save a lot of time and avoid a lot of the customizations I'm having to do:

    Is there a way I can put a "Single Line Text" form in that has conditional logic based on a woo commerce drop down? If some how I can use woo commerce drop downs for everything, and then when someone selects "Custom Engraving" off of the woo commerce menu, if I can get a Gravity Forms "Single Line Text" box to appear, it will be the end of customization for me.

    Is there a way to do this? This would be so helpful and I can't wait to see your reply.

    Thanks so much.

    Posted 7 years ago on Sunday August 5, 2012 | Permalink
  8. There must be a way using the dynamic populating or css or something, I just want to make sure it is possible (and not extremely complicated) before I start learning all of the css. Thank you so much Rob.

    Posted 7 years ago on Monday August 6, 2012 | Permalink
  9. I'm sure Rob will check in on you Monday. Hang in there. Thank you.

    Posted 7 years ago on Monday August 6, 2012 | Permalink
  10. thanks! i will -- was just posting a second time because of some thoughts that came to me later

    Posted 7 years ago on Monday August 6, 2012 | Permalink
  11. I'm not even sure that's possible to do. Conditional logic options pull in from your current form fields. Since this is outside of the form, I don't think this is something that would be easy to pull off. I'm not expert on the woocommerce add-on, but I thought that using Gravity Forms with woocommerce was meant to replace the form that is there altogether. Is that not the case?

    Posted 7 years ago on Monday August 6, 2012 | Permalink
  12. Thanks Rob. I see, I am having problems with the woocommerce add-on integrating with my shop's prices. For example it is not outputting properly to my shops page. There is another solution which will make everything better (you have already helped me with some of it).

    I need to just make the gravity forms formatting look the exact same as woocommerce. Please use this page link for the 3 questions below: http://doamore.wpengine.com/shop/adar-copy/ and remember that the first option is a woocommerce option ( I will have to keep this one option since it affects pricing and my gravity forms pricing isn't interacting with woocommerce properly), and the options below that one are all gravity forms options.

    1) Is there a way to vertically space out the two gravity forms dropdowns more (you can see I took your advice and made engraving's a dropdown menu)? I don't want to put in a "</br>" because that is too much space - but I need a few more pixels of padding in between the two gravity forms questions.
    2) How do I make the dropdown menus start at the same horizontal pixel (like the way the woocommerce options are above)? I know I can play around with the horizontal pixels (which I may do since you have given me the code for each field id), but is there a way to just set it so that the dropdowns are always justified to the same horizontal starting point? Does this question make sense?
    3) The dropdown menu for the woocommerce option is different than the dropdown menu for the gravity forms menus. How can I make it look the same (style wise, and length wise (even when I do "large" field size, it does not become as big as the woocomerce ones, font wise).

    I really think if formatting wise I can make it look consistent with the woocommerce option, then everything will be 100% okay.

    Thank you so much Rob. Your support is unbelievable.

    Posted 7 years ago on Monday August 6, 2012 | Permalink
  13. For #1:

    [css]
    .gform_wrapper ul li.gfield {
    margin-bottom: 10px;
    }

    For #2 update what you have for this selector:

    [css]
    li#field_2_1 .gfield_label {
    float: left;
    margin-right: 19px;
    width: 57px;
    }

    Screenshot

    For item 3 - Woo Commerce may be using some sort of JavaScript override on their drop down elements that is causing the different look. Generally, select elements are not easily customizable cross-browser via CSS and sometimes people resort to using JavaScript to change the markup to allow for changing the appearance.

    BTW - I responded to your email but never heard anything back...

    Posted 7 years ago on Wednesday August 8, 2012 | Permalink
  14. Thanks a lot Rob. 1 and 2 helped out a bunch!

    On 3, I kept playing around with the woocommerce dropdowns and gravity forms dropdowns. I was able to figure this out; when I applied this custom code which targets the woocommerce dropdowns, it actually did change .variations_form table.variations tr select {padding: 0; -webkit-appearance: none;}

    That -webkit-appearance:none actually changed the woocommerce dropdown (it didn't change it to match the gravity forms dropdown, but it did change it). I got the info from here: http://css-infos.net/property/-webkit-appearance

    Maybe if you could help me figure out what gravityforms is supposed to be using from that webkit-appearance sheet, then I can have woocommerce's dropdowns match it using the code? I know this may be the javascript thing you were talking about, but I thought this might help get me in the right direction.

    Thanks for responding. I will get with my team this weekend to discuss further. I appreciate it man

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  15. Try this out (replace what you have with this for the select):

    [css]
    .gform_wrapper select {
    color: #343434;
    font-family: 'Calibri', 'Droid Sans', Verdana, Arial, sans-serif;
    font-size: 1em !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #CCC;
    padding: 6px;
    margin: 0;
    outline: 0;
    background: white none;
    line-height: 1em;
    }
    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  16. Awesome! I changed the "padding" to 0 and it looks really close and good. Thanks Rob.

    The only part that remains now is the last part of question 3:
    3) The dropdown menu for the woocommerce option is different than the dropdown menu for the gravity forms menus. How can I make it look the same (style wise, and length wise (even when I do "large" field size, it does not become as big as the woocomerce ones, font wise).

    That last part that I am referring to is the length -- do you have any suggestions? When I choose the "length" as long, it is not that long. Is there a way to make your gravity forms dropdown a certain length (so that it matches my woocommerce dropdowns length)?

    Thank you Rob-you've been a great help thus far

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  17. Lastly, when you choose "custom size" or "custom engraving", I want to apply the same code you made so that the text entry (and font) isn't so huge like it is now (http://doamore.wpengine.com/shop/adar-copy/)

    I tried finding what element to apply the code to but I can't get it. Could you please tell me what I need to do? I tried applying it to: 'ginput_container' but it didn't work (I might just be doing it incorrectly).

    Thank you

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  18. In the above CSS snippet you can easily change the font-size to be whatever size you'd like (pixels or em) and you can add a width declaration as well, such as width: 200px !important or a percentage, etc.

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  19. Rob, I can't get it to work. I tried placing it in the previous code, and in a few other places, but it is not changing anything. Could I give you my credentials and have you try, or is that outside of gravity policy?

    I tried putting it in the snippit above for .gform_wrapper select {} but I can't get it to change. THank you

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  20. This worked for me: Screenshot

    [css]
    .gform_wrapper select {
    width: 300px !important! color: #343434;
    font-family: 'Calibri', 'Droid Sans', Verdana, Arial, sans-serif;
    font-size: 12px !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #CCC;
    padding: 0px;
    margin: 0;
    outline: 0;
    background: white none;
    line-height: 1em;
    width: 200px;
    color: #343434;
    }
    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  21. The Awesome Part:
    Thank you! The code worked. I figured out that it was the bottom code (line 17 above) that is doing the trick!

    The Issue:
    In different browsers it is needing a different width -- the reason the woocommerce one stays consistent is because width is set to 100% some how (according to the screenshot you provided -- look at the inspect elements) to make it the size it is (versus us-- we are trying to set pixels). I tried setting a percentage for ours, but it is still changing with different zoom in/zoom out settings and different browsers and computer monitor sizes -- is there a way to get it to match woocommerce's dropdown width?

    Thank you Rob

    Posted 7 years ago on Thursday August 9, 2012 | Permalink
  22. Rob,

    I was able to figure out how to edit woocommerces dropdown width and so please ignore my last post. I will have woocommerce match gravityforms width. Thanks!

    Only thing left is one unanswered question from the forum. Here it is again:

    Lastly, when you choose "custom size" or "custom engraving", I want to apply the same code you made so that the text entry, font, width, etc isn't different like it is now (you can try it by choosing custom size or custom engraving at: http://doamore.wpengine.com/shop/adar-copy/)

    I tried finding what element to apply the code to but I can't get it. Could you please tell me what I need to do? I tried applying it to: 'ginput_container' but it didn't work (I might just be doing it incorrectly).

    Thank you!

    Posted 7 years ago on Friday August 10, 2012 | Permalink
  23. I just tried applying it to a few other elements also but could not get it to work (besides ginput_container). Sorry for new post, but I do not think I can edit a post (I don't see the edit button anywehre).

    Posted 7 years ago on Friday August 10, 2012 | Permalink
  24. Hi Support, I never heard back since Friday. Trying again, thanks.

    Posted 7 years ago on Wednesday August 15, 2012 | Permalink
  25. I don't understand what you're asking for. Can you please screenshot and write specific details on what you are looking to achieve.

    Posted 7 years ago on Wednesday August 15, 2012 | Permalink