Step 1 – Add new field
We’re going to use wpDiscuz comment from builder to add a custom field (checkbox). Please navigate to Dashboard > Comments > Forms admin page, edit the comment form you use. Click on the [+] button of the column you want to add an agreement checkbox field (we recommend add it in the right column and put it below all other fields and above the submit button).
Step 2 – Agreement checkbox
Choose the “Agreement Checkbox” field type by clicking the [Agreement Checkbox] button.
Step 3 – Fill options
Here is an example of filling the following options:
- Field is required: Yes (checked)
- Display on reply form: Yes (checked)
- Display for Guests: Yes (checked)
- Display for Registered Users: No (unchecked)
- Don’t show again if the agreement is accepted once: Yes (checked)
Fill the field options and click the [Add to Form] button.
Step 4 – Place in comment form
Drag the new GDPR field (grey) and drop above “Post Comment (Submit Button)” field. Then scroll up and click the top right [Update Form] button to save it.
Step 5 – Done!
Once the field is created and form is updated, please delete all caches, logout and check the comment form as guest. You should see the checkbox above [Post Comment] button.
Cookies Consent Checkbox
Subscription Form Checkbox
You can also add an agreement checkbox in Comment Subscription Bar using Comment Form settings. Please follow to this documentation>>