What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    U.S. State Picker Widget - Align with Address Field

    Asked by dlasson on September 16, 2015 at 03:06 PM

    Hi.

    Is there any way to move/align the "State" widget field next to the "City" field?

    Also, can I insert a subtext to the "State" field that is the same font as the subtexts in the other address fields?

    Thanks! 

    Page URL:
    http://form.jotform.us/form/52384955370159

    address field state field
  • Profile Image
    JotForm Support

    Answered by Welvin on September 16, 2015 at 04:41 PM

    Yes, that is possible with custom CSS codes. Here's a cloned version of your form showing the changes:

    http://www.jotformpro.com/form/52585997352976

    I did the following tricks to accomplish what you want:

    a. Inject the following custom CSS codes to the form to move up/left the widget:

    li#id_462 {

    margin-top: -148px;

    margin-left: 165px;

    margin-bottom: 54px;

    }

    Here's how to access the codes: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes.

    b. Enable the State field in the address field. This is to utilize the sub-label - for it to appear below the widget.

    c. Hide the label in the widget:

    You can simply clone my form back: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL.

    Thanks

  • Profile Image

    Answered by dlasson on September 25, 2015 at 11:15 AM

    Thanks. I cannot seem to do the same (align) with the following fields (in the "Employment History" section). I only need city and state fields here.

    thanks.

     

  • Profile Image
    JotForm Support

    Answered by Welvin on September 25, 2015 at 12:29 PM

    I've fixed it for you. You just need to shrink both city and the widget then move the widget down so it will be placed after the city box.

    http://www.jotform.com/help/90-Form-Field-Positioning

    Thanks