How can we hide only some of the inputs in a matrix field?

  • Profile Image
    CPLC
    Asked on April 04, 2016 at 11:16 AM

    I want to give the user option to chose the column ''Relais 10.00$/chien'' only in the lines ''Relais 1 (ring 1) 10,00$/chien)'' and ''Relais 2 (ring 2) 10,00$/chien''. Cause for the paiement's calculation those lines haves to be 10,00$ instead of 15,00$. thanks for your help. 

  • Profile Image
    Jan
    Answered on April 04, 2016 at 01:26 PM

    If I understand you correctly, you would like to hide a radio button options in the matrix field. 

    If yes, then please add this custom CSS code in your form.

    #input_27_0_3, #input_27_1_3, #input_27_4_3, #input_27_5_3 {

    display: none;

    }

    Here's a guide on how to inject custom CSS. Also, I used Google Chrome developer tools to get the IDs of these elements. Here's an example: 

    Hope that helps. Thank you.

  • Profile Image
    CPLC
    Answered on April 04, 2016 at 01:55 PM

    Thank you so much. Exactly what i was looking for!