Reactivity doesn't work on the frontend when using CheckboxList
I have this checkbox list that has 4 options, and the last one says "None of the above". Here's the logic of the checkboxlist, if i selected 1-3 options, and then clicked the "none of the above", it should uncheck the options and only check the "none of the above". So if the current checked is "none of the above", and I selected the other 3 options, it should automatically uncheck the "none of the above".
The code i made is already working, HOWEVER, it's only working on the backend, and not in the display. The $state (in the backend) has the correct values, but in the frontend/html-view, it's showing the wrong checkboxes.
1 Reply
@vahnmarty You can accomplish by manipulating the component’s state. No refresh needed. So to uncheck the rest,
$component->state([$noneString])