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.

Can I move fields into specific positions?

  1. Hi all,

    I bought your product a few days ago - love it - despite being a complete newbie at this stuff.

    I have got my form somewhat how I want it to be, but I am stumbling over a couple of issues, and have spent a lot of time trying to figure it out myself, unsuccessfully. I will list them if that's ok.

    1. I want fields in specific places, for example, I want to put a phone number field on the same line as an email field. I think I can do this with CSS but I need some hand holding with the process.

    2. If you have a rule somewhere in the stylesheet, and you duplicate the same rule later on with different settings, is this acceptable? Or should you only change the original code?

    3. I have a Multiple Choice set on my form, but would like the list to be inline (horizontal) instead of the choices being stacked. Can I make this a one line (or even two line) display? Again, complete newbie so an idiot proof reply would be really useful.

    4. In the Advanced section of the fields there is an option to specify a CSS Class Name. Is this any name that I want, or does it have to be a name already in the CSS? Whichever, how do I do this?

    Oh, I am developing my site locally, so I don't have a link to post.

    Thank you so much!!!

    Hugh

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  2. 1. I want fields in specific places, for example, I want to put a phone number field on the same line as an email field. I think I can do this with CSS but I need some hand holding with the process.

    You can do this pretty easily with the new CSS Ready Classes. They are only in the new 1.5 beta release and not in the current 1.4.5 version. You can download the beta version from the downloads page if you want and begin using those right away.

    http://www.gravityhelp.com/documentation/css-ready-classes/

    If you don't want to upgrade to the beta version right now, you can copy the ready class styles from the link below and add those to the end of your theme stylesheet. Then you can add the class names to your field as described in the documentation.

    http://pastie.org/1443282

    2. If you have a rule somewhere in the stylesheet, and you duplicate the same rule later on with different settings, is this acceptable? Or should you only change the original code?

    Sure, that's fully acceptable. You can redefine a rule later in the stylesheet if you need. The browser reads the stylesheet from top to bottom so the rule at the end of the stylesheet will normally supersede the previous one. It's preferable to add any custom CSS rules to your theme stylesheet or wherever you add custom CSS. The default forms CSS gets replaced with each update so you never want to edit that file directly. If you do, your changes will be overwritten when you auto-update the plugin to a new version.

    3. I have a Multiple Choice set on my form, but would like the list to be inline (horizontal) instead of the choices being stacked. Can I make this a one line (or even two line) display? Again, complete newbie so an idiot proof reply would be really useful.

    Yes, you can do that.. again, refer to the lists section of the CSS Ready Class documentation on how to do it.

    4. In the Advanced section of the fields there is an option to specify a CSS Class Name. Is this any name that I want, or does it have to be a name already in the CSS? Whichever, how do I do this?

    The class name can be anything you want it to be.. either an existing class (such as the Ready Classes), or one you plan to define later. It's totally up to you.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  3. Bloody hell Kevin, I don't know where you are, but getting a response at 11:15pm, only an hour after posting my questions is excellent!!!!

    I will go off now and try to figure this out.

    Thank you!!!!

    Hugh

    Oh, I am using V1.5 already.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  4. Haha. I'm in Virginia Beach, Virginia US and yes, I have no life. No, really, I'm happy to help out. Let us know if we can do anything else for you.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  5. Yeah, you are obviously like me, always working on a damn computer. :-)

    There is one thing, I can't get the fields to align beside each other, side by side. I assigned the "gf_left_half" and "gf_right_half" CSS on the adjacent fields, but no luck.

    But I did notice that there was talk about 2 column layouts - I am using a full width page. I am guessing that this is causing my issues?

    Got the inline list to work perfectly though.

    Thanks!

    Hugh

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  6. The margins/padding on the ready classes are set in percentages so it shouldn't be a problem with the width. What you might look at is your theme adding padding to list items. If your form is inheriting those properties, it can effect the widths and cause the floated list items to "stack" incorrectly.

    Without seeing it, that's my best guess. I've seen that scenario quite a few times.

    http://www.gravityhelp.com/forums/topic/css-ready-classes-and-formatting#post-17368

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  7. Hi Kevin,

    weirdest thing happened.

    Around 1am I decided to close all my Safari windows, but left open Firefox. This morning, when I opened Safari and loaded my form the fields had aligned left and right. I refreshed Firefox and it was all working there too!

    I can see that the Safari restart might have cleared out the cache, but that doesn't explain Firefox working now. My laptop was only put into sleep mode, and nothing else was changed.

    Other changes that I was making to the form were all showing up immediately. I am baffled!

    Anyway, the form is just as I wanted it now, and I really appreciate your speedy and friendly responses. Have a fantastic day!

    Hugh

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  8. Haha. My magical support powers fixed it for you. I do that sometimes.

    I'm glad you got everything working. Thanks for the update.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  9. deukdesign
    Member

    Great explanations and super support
    maybe the css class name field could have a drop down with all available css classes listed with some easy understandable name

    for real noobs it would be real nice, and it prevents from copy pasting or type mistakes

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  10. @deukdesign

    We don't want to restrict the CSS Class name field by using a select field to populate it. The whole point is that it's wide open for you to define any class name you want. We may add an additional option to select from the pre-defined classes though.

    I know copying/pasting the predefined class names isn't as convenient as having a selection to pick from, but right now it's more flexible for everyone this way. Besides, we already did the hard work building all the nifty styles ;)

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  11. @deukdesign Thanks for the suggestion, we do plan on implementing a drop down for this in a future release. We like to take baby steps with new features like this and enhance them over the time.

    Posted 13 years ago on Monday March 21, 2011 | Permalink