Guides
Demo

Manual Acceptance

By default, the ToughClicks library will create the Acceptance once all checkboxes are checked and a valid user id is set. If you prefer to create the Acceptance manually, that is an option in the library.

Disable Automatic Creation

In the Display Options configuration, set the manualAcceptance boolean to true. This will prevent the library from automatically creating the Acceptances.

See Customizing The Behaviorfor more information.

Manually Call Accept

The ToughClicks library exposes an accept() function that you can call when you want the Acceptance created.

TC.accept();

This function returns a Promise<boolean> which denotes if the Acceptances were created successfully. It will also fire the tc-accepted event. See Events & Listeners for more information.