How do I allow an action only when the checkbox is selected?

In my project for the user to confirm that he accepted the privacy policy, he must check a box and then click on the button to finish, however, the button action can only be performed with the box checked.

1 reply