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

    How to change height and width of input text fields in Configurable List widget?

    Asked by martinbond on March 03, 2015 at 06:31 AM

    Hi, I've already asked a similar question previously but the code doesn't seem to be working 

    How do I adjust the width of the text input field, as seen highlighted in the screenshot below. 

     

    Thanks, 

     

     Martin. 

    Page URL:
    http://form.jotform.me/form/50610724111439

    configurable list configurable JotForm uploads jpg thanks
  • Profile Image

    Answered by Shadae on March 03, 2015 at 09:59 AM

    Hi Martin,

    To increase the width of that specific field in your configurable list widget, you would insert the following code in the Custom CSS field within the widget wizard.

    td.col2 input[type="text"]{
     width:300px;
    }

    I hope this helps, please inform us if you need further assistance.

    Thank you.

  • Profile Image

    Answered by martinbond on March 03, 2015 at 12:53 PM

    Thank you Shadae, work's perfectly. 

    Can you help me on another matter, basically over the past few weeks I've been developing my configurable lists via trial and error, combining different codes etc. Honestly I'm a bit lost with my final code and think there may be code trying to do the same job etc, can you please review my code below and indicate if this is this case. 

    It seems to be playing with the sizing of my text input fields, see screen shot below, col's 1&5 are a different height compared to col's 2,3 and 4. 

  • Profile Image
    JotForm Support

    Answered by Charlie on March 03, 2015 at 01:58 PM

    Hi,

    Input text fields in column 1 and 5 are different because you forgot to add this custom CSS code for the font size.

    .col1 input[type="text"] {

    font-size : large

    }

    .col5 input[type="text"] {

    font-size : large

    }

    Only 2, 3 and 4 have the input[type="text"] that has the font-size styled.

    You could just add the custom CSS code above in the widget and it should be fine.

    Thank you.

  • Profile Image

    Answered by martinbond on March 03, 2015 at 02:00 PM

    .col1, col2, col3, col4 {

    margin: 3px 0;

    height: 50px;

    font size: large;

    }

    text {

    height: 30px !important;

    width: 400px !important;

    font-size: large;

    }

    th {

    font-size : 17px;

    }

    tr {

    font-family: arial;

    font-size: large;

    }

    .col3 input[type="text"] {

    font-size : large

    }

    .col4 input[type="text"] {

    font-size : large

    }

    .col2 input[type="text"] {

    font-size : large

    }

    select {

    height: 30px !important;

    }

    table {

    border-spacing: 2px !important;

    border-collapse: collapse;

    }

    #customFieldFrame_249 {

    padding-right: 20px !important;

    margin-right: 20px !important;

    }

    th {

    border: 2px solid #000000;

    padding: 5px;

    }

    tr td {

    border-bottom: 2px solid #000000 !important;

    border-left: 2px solid #000;

    }

    td {

    vertical-align: middle;

    }

    tr:nth-child(1) {

    background-color: #A0A0A0;

    }

    tr:nth-child(2) {

    background-color: #F8F8F8;

    }

    tr:nth-child(3) {

    background-color: #E8E8E8;

    }

    tr:nth-child(4) {

    background-color: #F8F8F8;

    }

    tr:nth-child(5) {

    background-color: #E8E8E8;

    }

    tr:nth-child(6) {

    background-color: #F8F8F8;

    }

    tr:nth-child(7) {

    background-color: #E8E8E8;

    }

     

    td.col1 input[type="text"]{

     width:200px;

    }

    td.col2 input[type="text"]{

     width:200px;

    }

    td.col3 input[type="text"]{

     width:200px;

    }

    td.col4 input[type="text"]{

     width:200px;

    }

    td.col5 input[type="text"]{

     width:150px;

    }

    td.col6 input[type="text"]{

     width:150px;

    }

     

  • Profile Image

    Answered by martinbond on March 03, 2015 at 02:01 PM

    Hi, would it be possible for you to clean up the code above as that technical knowledge is above my level. Only smarty pants like yourself can deal with such matters. 

     

  • Profile Image

    Answered by Shadae on March 03, 2015 at 02:12 PM

    Hi Martin,

    Please see below for the code that has the code provided by my colleague added:

    .col1, .col2, .col3, .col4 {

    margin: 3px 0;

    height: 50px;

    font size: large;

    }

    text {

    height: 30px !important;

    width: 400px !important;

    font-size: large;

    }

    th {

    font-size : 17px;

    }

    tr {

    font-family: arial;

    font-size: large;

    }

    .col3 input[type="text"] {

    font-size : large

    }

    .col4 input[type="text"] {

    font-size : large

    }

    .col2 input[type="text"] {

    font-size : large

    }

    select {

    height: 30px !important;

    }

    table {

    border-spacing: 2px !important;

    border-collapse: collapse;

    }

    #customFieldFrame_249 {

    padding-right: 20px !important;

    margin-right: 20px !important;

    }

    th {

    border: 2px solid #000000;

    padding: 5px;

    }

    tr td {

    border-bottom: 2px solid #000000 !important;

    border-left: 2px solid #000;

    }

    td {

    vertical-align: middle;

    }

    tr:nth-child(1) {

    background-color: #A0A0A0;

    }

    tr:nth-child(2) {

    background-color: #F8F8F8;

    }

    tr:nth-child(3) {

    background-color: #E8E8E8;

    }

    tr:nth-child(4) {

    background-color: #F8F8F8;

    }

    tr:nth-child(5) {

    background-color: #E8E8E8;

    }

    tr:nth-child(6) {

    background-color: #F8F8F8;

    }

    tr:nth-child(7) {

    background-color: #E8E8E8;

    }

     

    td.col1 input[type="text"]{

     width:200px;

    }

    td.col2 input[type="text"]{

     width:200px;

    }

    td.col3 input[type="text"]{

     width:200px;

    }

    td.col4 input[type="text"]{

     width:200px;

    }

    td.col5 input[type="text"]{

     width:150px;

    }

    td.col6 input[type="text"]{

     width:150px;

    }

    .col1 input[type="text"] {

    font-size : large

    }

    .col5 input[type="text"] {

    font-size : large

    }

    Please feel free to contact us if you need further assistance.

    Thank you.