How to move fields in the form builder?

  • charlieh4859
    Asked on May 30, 2023 at 9:19 PM

    Please look at my form, https://form.jotform.com/231497077683165


    I would like to bring the checkbox, "Do you want to split your credit card payment?" down on the right side so that it fills in the blank space.

    This is what the form looks like:

    How to move fields in the form builder? Image 1 Screenshot 30

    and this is how I want it to look:


    How to move fields in the form builder? Image 2 Screenshot 41


    Thank you for your help. Feel free to edit the form, if that is easier.

  • Richie JotForm Support
    Replied on May 31, 2023 at 2:28 AM

    Hi Charlie,

    Thanks for reaching out to Jotform Support. You can use custom CSS to move the field. Let me show you how:

    1. In Form Builder, click on the Paint Roller icon .
    2. In Form Designer, select Styles, scroll down to Inject Custom CSS and add this code:
    #cid_22{
       margin-bottom: -100px;
    }
    li#id_24{
    display: inherit;
    top: 149px;
    }

    3. Click Save.

    How to move fields in the form builder? Image 1 Screenshot 30

    Checkout the screenshot below to seem the result:

    How to move fields in the form builder? Image 2 Screenshot 41

    Give it a try and let us know how it goes.

  • charlieh4859
    Replied on May 31, 2023 at 12:34 PM

    My apologies. I realized that I had accidentally placed some of the elements in the wrong place.

    By using the code you provided and rearranging the elements correctly, I now get this:

    How to move fields in the form builder? Image 1 Screenshot 30

    However, I want it to look like this:

    How to move fields in the form builder? Image 2 Screenshot 41

    I'd like to get rid of the massive white space between the divider line and the credit card payments api.


    Thank you again and my apologies for the trouble.


  • charlieh4859
    Replied on May 31, 2023 at 1:18 PM

    There is also the problem that in moving the checkbox, it goes behind the credit card element and prevents the user from being able to click on the checkbox.

  • Lucas Support Team Lead
    Replied on May 31, 2023 at 1:57 PM

    Hello Charlie,

    Thanks for getting back to us. To correct that space on the top, correct the position and make the field responsive, please add the following code:

    ul#section_26 {
      position: relative;
    }

    li#id_24 {
      position: absolute;
        right: 0px;
        top: 56px;
    }

    #id_25, #id_27 {
      display: none;
    }

    @media screen and (max-width: 480px) {
      li#id_24 {
        position: relative;
        top: inherit;
      }
    }

    Follow the steps of my colleague and add this code in a new line after the end of the existing code. This is the result:

    How to move fields in the form builder? Image 1 Screenshot 20

    Reach out again if you need any other help

  • charlieh4859
    Replied on May 31, 2023 at 2:11 PM

    Thank you but that still doesn't quite work. There are two problems:

    1. The divider line above "My Products" disappears
    2. The checkbox is positioned behind the stripe api so it is impossible to check the box.

    The positioning of the "do you wish to split your credit card payments" element is correct but it is not functional. I need it to be functional, please.


    Thank you again.

  • Lucas Support Team Lead
    Replied on May 31, 2023 at 2:25 PM

    Hello Charlie,

    Thanks for the feedback. You're right, the checkbox wasn't working, and the divider line was gone. My bad, sorry about the confusion. I corrected the code and now the divider line is available, and the checkbox is working.

    Replace my previous code with this one:

    ul#section_26 {
      position: relative;
    }

    li#id_24 {
      position: absolute;
        right: 0px;
        top: 115px;
        z-index: 999;
    }

    #id_25 {
      display: none;
    }

    @media screen and (max-width: 480px) {
      li#id_24 {
        position: relative;
        top: inherit;
      }
    }

    Result:

    How to move fields in the form builder? Image 1 Screenshot 20

    Reach out again if you need any other help.

  • charlieh4859
    Replied on May 31, 2023 at 3:28 PM

    That worked! Thank you!