Hi all,
I am trying to disable the field when the check box is checked in Power Apps Portal using custom JavaScript.
The checkbox field type is Yes/No column in Dataverse table.
I am not very familiar with Power Apps Portal or JS code.
I tried this JS in Power Apps Portal.
This field name "cr797_riskassessment" is the Y/N field in table.

I used true or 1 or "Yes" in if condition but none of them worked. Only "on" value is worked.
But the checkbox value is always show up "on" whatever it is checked or not.

How can I check the checkbox (Y/No type) value in Power Apps portal?
Thank you in advance.