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

  • Profile Image
    ATimport
    Asked 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.

  • Profile Image
    Kiran
    Answered 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!