### [How to Enable a Checkbox After Reading Disclaimer](https://wpforms.com/developers/how-to-enable-a-checkbox-after-reading-disclaimer/)

**Published:** August 16, 2023
**Author:** David Ozokoye

**Excerpt:** This tutorial will show you a script to use that will enable a checkbox only after scrolling to the bottom of the description. 

**Content:**

## Introduction

Would you like to enable a checkbox after reading a disclaimer or terms of service? Learn to harness the potential of the **Enable Disclaimer / Terms of Service Display** feature for **Checkbox** fields. This capability lets users express their agreement to your terms of service. Yet, if you’re keen on deactivating this field until users have scrolled through your disclaimer entirely, this tutorial is tailor-made for your needs!

## Creating the Form

Begin by creating your form and adding your fields. If you need any help in creating your form, [please review this useful guide](https://wpforms.com/docs/creating-first-form/ "Creating Your First Form").

![begin by creating your form and adding your fields](https://wpforms.com/wp-content/uploads/2023/08/wpforms-enable-checkbox-create-form.jpg)## Enabling Terms of Service

Once you’ve added your other fields, add a **Checkbox** field and click the **Advanced** tab. On this tab, you’ll see an option to **Enable Disclaimer / Terms of Service Display**. Toggle this option on and add your text to the **Description** field.

![select the checkbox and on the Advanced tab toggle the option to Enable Disclaimer / Terms of Service Display](https://wpforms.com/wp-content/uploads/2023/08/wpforms-enable-disclaimer.jpg)Once enabled, click back to the **General** tab to add your text to the **Description**.

The **Description** field will accept any basic HTML such as headings, p tags and links. We use h2 headings in our disclaimer to make each section clear.

![add the text to the Description area of the Checkbox field which will accept basic HTML such as p tags, headings and links.](https://wpforms.com/wp-content/uploads/2023/08/wpforms-enable-checkbox-add-disclaimer.jpg)## Adding the snippet

Now, it’s time to add the snippet to your site. For assistance on how and where to add snippets to your site, [please review this tutorial](https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/ "How to Add Custom PHP or JavaScript for WPForms").

```

/**
 * Disable checkbox until terms of service has been read
 *
 * @link https://wpforms.com/developers/how-to-enable-a-checkbox-after-reading-disclaimer/
 */
   
function wpf_dev_tos_confirmation( ) {
?>

**Categories:** Tutorials

**Tags:** Javascript, JS

---

