Disable Checkboxes based on Condition

Lets consider I'm having two sites X and Y. Based on my selection of site the following check boxes should enable/Greyout.

Initially all should unchecked as shown in the below snippet.

If i select the Site X then A and C should enable (i can Check A or C or both) to check and B should be greyout.

If i select the Site Y then A and B should enable (i can Check A or B or both) to check and C should be Greyout.

Could you please help me with some sample code.

Note: Site will be passed through a ri variable.

Thanks.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data