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

    Can I use conditional logic to determine how many rows in a matrix will be visible?

    Asked by onewaytolive on February 04, 2014 at 04:34 AM

    I would like to be able to use conditional logic for a matrix. The number of rows visible will be determined from a drop down quantity list (from the Paypal fields). Is this possible?

    Also, can I change individual column widths eg. Address line column would be wider than postcode column.

    Many thanks for an excellent form service.

    rows quantity postcode thanks wider
  • Profile Image
    JotForm Support

    Answered by jonathan on February 04, 2014 at 05:13 AM

    Hi,

    Unfortunately, you cannot include the Matrix field rows in the condition logic. At most, you can only include the whole matrix field itself (for example, show/hide the Matrix field)

    --

    As for the column width, you can customize them using injected CSS codes .

    Example CSS code:

    .form-matrix-values {padding-left: 5px !important;padding-right: 5px !important}

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

    .form-matrix-values .form-textbox {width: 50px;}

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

    .form-matrix-values +.form-matrix-values .form-textbox {width: 250px;}

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

    .form-matrix-values +.form-matrix-values +.form-matrix-values .form-textbox {width: 50px;}

     

    will make your Matrix look like this

     

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

    Thanks.