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

    Is there a way to disable individual column fields in a matrix for certain rows?

    Asked by ATimport on August 25, 2016 at 12:33 PM

    We have a need to disable particular fields by column and row, so that A1 may be disabled in line A, and B2 may be disabled in B, etc, with other fields all enabled.  

     

    Please let me know if that makes sense.  So far I have not discovered a way to selectively turn off particular fields in a matrix.

     

    Thank you.

    Page URL:
    https://form.jotform.com/62285890381160

    rows in a individual
  • Profile Image
    JotForm Support

    Answered by Kiran on August 25, 2016 at 01:53 PM

    I understand that you want to disable a few inputs of the Matrix field on your form. Unfortunately, it is not possible to disable specific input fields on a matrix. This may be achieved by injecting some custom CSS code to your form. However, it works only with mouse events and doesn't prevent using the tab key on the keyboard to select the fields.

    Please try injecting the following code to your form to see how it works. This disables input for every first option of the first 4 matrices on the form.

    #input_6_0_0, #input_5_0_0, #input_10_0_0, #input_11_0_0 {

        pointer-events: none;

    }

    If you want to disable the other input fields, you may get the field IDs by following the guide below:

    https://www.jotform.com/help/146-How-to-find-field-IDs-and-names

    Hope this information helps!