Adjusting spacing in configurable list

  • jmcneilcrbc
    Asked on November 23, 2021 at 7:22 PM

    Hello,

    I have a configurable list in my form. The first column is very tight and there appears to be plenty of room to expand the width of the list. I've tried messing around with the CSS coding but I haven't figured out how to space it out better. Here's a screenshot for reference. Is it possible to adjust the list so it's more evenly spaced out width-wise?

    1637713270 619d8576b84a5 Jotform Screenshot 10

  • Tommaso_F
    Replied on November 24, 2021 at 3:51 AM

    Hello there,

    Allow me some time to check and we will be back to you.

    Regards.

  • Tommaso_F
    Replied on November 24, 2021 at 4:25 AM

    Hello there,

    Could you please adjust padding in the CSS code you already added? 1637745922 619e0502657d9  Screenshot 10

  • jmcneilcrbc
    Replied on November 24, 2021 at 1:32 PM

    Hi Tommaso,

    Thank you for the response but unfortunately this fix adjusted the space between rows, not columns. I've annotated the screenshot to hopefully provide a bit more clarity. As you can see, the spacing between column 1 and column 2 is razor thin.

    1637778655 619e84dfc6fb1 Jotform2 Screenshot 10


    Also, the space for the configurable lists between the label and the list is very tight. Is there a way to push the list to start on the next line (under the label) or to add more padding?


    1637778735 619e852f457d2 Jotform3 Screenshot 21


    Thank you!
    ~Jennifer

  • Kenneth JotForm Support
    Replied on November 24, 2021 at 4:45 PM

    Hi there,

    After customizing the form, here is how it looks:

    1637789878 619eb0b63ee38 e1 Screenshot 10

    If that is acceptable, kindly insert this code into your Configurable List Widget Custom CSS Area:

    1637790255 619eb22f8a7d3 x1 Screenshot 21

    div#cid_22 {

      float: left !important;

      display: contents;

    }

    Let us know if you need further assistance.

    Best.

  • jmcneilcrbc
    Replied on November 24, 2021 at 8:20 PM

    Hi Kenneth,

    That looks to be the fix I need! Apologies but where should I put the CSS code? I've tried adding to the end of the existing CSS code area for the configurable list but it's not doing anything.

    Thank you!

    ~Jennifer

  • Tommaso_F
    Replied on November 25, 2021 at 2:32 AM

    Hey Jennifer,

    Allow me to reach Kenneth in order to check the code.
    Meanwhile, change the field label to top1637825563 619f3c1b51a05  Screenshot 10

  • Kenneth JotForm Support
    Replied on November 25, 2021 at 5:19 AM

    Hi there,

    I double-checked, and have applied the mentioned code into your Inject Custom CSS Area instead of the Configurable Lists Widget CSS Area, now it is applied.

    Here is how: https://www.jotform.com/help/117-how-to-inject-custom-css-codes/.

    Let us know if you need further assistance.

    Best.

  • jmcneilcrbc
    Replied on November 25, 2021 at 5:22 PM

    Thank you so much to you both, Tommaso and Kenneth! One more spacing question now that this is coming together. Is there a way to push the input fields for this spinner, map, file upload, and "additional comments" text area to align with the configurable list input fields?

    1637878872 61a00c580aff0 Jotform4 Screenshot 10

    1637878903 61a00c77397a7 Jotform5 Screenshot 21

  • John Support Team Lead
    Replied on November 25, 2021 at 5:42 PM

    Please try adding these custom codes below to your form:

    #label_61,#label_20,#label_41,#label_15 {
      width: 38%;
    }
    #cid_61,#cid_20,#cid_15,#cid_41 {
      width: 50%;
    }

    This will be the result: https://form.jotform.com/213287042660957

    GUIDE: https://www.jotform.com/help/117-how-to-inject-custom-css-codes/

  • jmcneilcrbc
    Replied on November 25, 2021 at 5:51 PM

    Hi JohnRex,

    I tried adding the CSS code to the Custom CSS section of the form designer but it didn't do anything. Should I be adding it somewhere else?

    Thank you!
    ~Jennifer

  • Jovanne JotForm Support
    Replied on November 25, 2021 at 5:59 PM

    Hi,

    As per checking you have not added the CSS code to your form. Please try adding them again and clear your form cache to refresh your forms.

    GUIDE: how-to-clear-your-form-cache

    You may also try adding !important to your code if it still does not work. The code you need to insert will look like this:

    #label_61,#label_20,#label_41,#label_15 {
      width38% !important;
    }
    #cid_61,#cid_20,#cid_15,#cid_41 {
      width50% !important;
    }


    Please give it a try and let us know if you need further concerns.

    Thank you.

  • jmcneilcrbc
    Replied on November 29, 2021 at 6:11 PM

    Hi Jovanne_A,

    I actually did insert the CSS code and when it did not work, I removed it to avoid confusion. I attempted the additional steps you mentioned, cleared the form cache and added the "!important", but it still did not result in any changes to the form. I have removed the additional code to avoid confusion since it is not currently working and am open to additional suggestions.

    Thank you,
    ~Jennifer

  • Jovanne JotForm Support
    Replied on November 29, 2021 at 7:29 PM

    Hi Jennifer,

    Could you please try replacing your entire CSS code with this one?


    iframe[src*="configurableList"] {
      width : 100% !important;
    }

    #customFieldFrame_22 {
      width : 100% !important;
    }

    #customFieldFrame_33 {
      width : 400px !important;
    }

    #customFieldFrame_34 {
      width : 400px !important;
    }

    #customFieldFrame_37 {
      width : 400px !important;
    }

    .form-all:before {
      background-size : contain;
    }
    div#cid_22 {
      display: contents !important;
    }
    .form-label.form-label-auto {
         
        display: inline-block;
        float: left;
        text-align: left;
        
       }
    label#label_61,#label_20,label#label_41,label#label_15 {
      width: 38%;
    }
    div#cid_61,div#cid_20,div#cid_15,#cid_41 {
      width: 50%;
    }


    Please note that some of this CSS code will only work on the live form. Please give it a try and let us know how it goes.

  • jmcneilcrbc
    Replied on November 29, 2021 at 7:44 PM

    Hi Jovanne_A,

    Thank you so much, that did the trick! I always check the updates on the live form, not just the preview, so I'm not sure what caused the disconnect. The form looks exactly how I want it to now though, so thank you!

  • jmcneilcrbc
    Replied on November 29, 2021 at 8:42 PM

    Hmm, I just noticed one of the lines doesn't line up with everything else. Is there a way to adjust it? Here's a screenshot for reference:

    1638236564 61a58194cdbd3 Jotform1 Screenshot 10

  • Tommaso_F
    Replied on November 30, 2021 at 2:07 AM

    Hello there,
    We're unable to find any issue with recent code suggested.

    Could you please elaborate more?
    1638256038 61a5cda6da206  Screenshot 10

  • jmcneilcrbc
    Replied on November 30, 2021 at 12:36 PM

    Hi Tommaso,

    You are looking at an old version of the form, please see the live version here.

    1638293569 61a66041b8387 Jotform1 Screenshot 10

    Thank you,


    ~Jennifer
  • Ariel JotForm Support
    Replied on November 30, 2021 at 2:41 PM

    Hi Jennifer,

    I have moved your other concern to a new support ticket so that we can address it separately: https://www.jotform.com/answers/3553785