How to change fields width in matrix field?

  • jmaples
    Asked on March 7, 2017 at 1:12 PM

    I'd like to create a form with a matrix that looks like the screenshot I've provided. However, using the "Matrix" field, I find it extremely difficult to size columns the way I want them to look on the form. Is there something I should be doing that would make this process simpler.

    Also, How do you format form results in email deliveries to reflect certain fonts and sizes for a Matrix?

    Jotform Thread 1083880 Screenshot
  • Kevin Support Team Lead
    Replied on March 7, 2017 at 4:36 PM

    In the field settings you could set  the width for each column in the matrix field, to do it, click on the gear icon, go to the options tab and enter the number in pixels. 

    How to change fields width in matrix field?  Image 1 Screenshot 30

    You could also change the fields width by injecting some CSS code, this will work for the text fields: 

    [data-type="control_matrix"] [type="text"]{

        width: 95%;

    }

    How-to-Inject-Custom-CSS-Codes

    And you can also get the field type by inspecting the element with the developers tool, example: 

    How to change fields width in matrix field?  Image 2 Screenshot 41

    Then replacing the field type in the code "[type='text']". Regarding to change the format in the email notification, unfortunately, there's not a way to change the layout, you can do it injecting CSS code to the form, but this will only show when loading the web form and will not be included in the email.