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 do I create matrix fields of fixed widths?

    Asked by johnelliott on May 04, 2014 at 09:15 AM

    I need to be able to create matrix (text) input fields of specified widths.

    ATM, the field widths seem to be fixed, and can't be changed under Properties.

    create properties and
  • Profile Image
    JotForm Support

    Answered by jonathan on May 04, 2014 at 10:42 AM

    Hi,

    You can inject CSS code to the form like this

    .form-matrix-values {

    padding-left: 8px !important;

    padding-right: 8px !important

    }

    /*---1st column width---*/

    .form-matrix-values .form-textbox {

    width: 100px;

    }

    /*---2nd column width---*/

    .form-matrix-values +

    .form-matrix-values .form-textbox {

    width: 100px;

    }

     

    /*---3rd column width---*/

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values .form-textbox {

    width: 100px;

    }

     

    /*---4th column width---*/

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values .form-textbox {

    width: 100px;

    }

     

    /*---5th column width---*/

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values +

    .form-matrix-values .form-textbox {

    width: 100px;

    }

    in this CSS code, the common width was 100px unit.

    Guide: -How-to-Inject-Custom-CSS-Codes

    Sample result of output will be like this

     

    Hope this help. Inform us if you need our assistance.

    Thanks!