Back to Top

Creating a Terms and Conditions Field with Ninja Forms

Share on

Share
Share
Copy Link
Quick Summary:

This article will show you how to create a Terms and Conditions field which must be checked prior to submitting the form.

For some online forms, you may want your website visitor to confirm agreement with your Terms and Conditions before submitting the form. Or perhaps you want the visitor to assert that they have completed some required action or activity.

Creating this type of checkbox is easy with Ninja Forms.

  1. Creating the Agreement Field
  2. Linking to Your Terms and Conditions Page
  3. Confirm Your Results

Creating the Agreement Field

The first step is to create the form field and add it to your form.

Take the following steps:

  1. Open the Form Builder for your form.
  2. Add a Single Checkbox field to the form, drag it to an appropriate location, and then click on the field to open its field settings.
  3. For the Label, enter the following text: I agree to the Terms and Conditions.
  4. Toggle the Required option to set this field to be required. This is the first essential step to ensure that the box is checked prior to submitting the form.
  5. In the Default Value field, you can set this to Checked or Unchecked, depending on your needs.
    • For some terms and conditions, you may need the visitor to explicitly check the box, indicating a positive action in agreement. In these cases, set the Default Value to Unchecked.
    • For other uses, you may be able to pre-check this box, indicating a passive or implicit agreement. In these cases, set the Default Value to Checked.
  6. In the Checkbox Values fields, set the Checked Value to Agree, or something similar.
  7. In the Checkbox Values fields, set the Unchecked Value to be empty – that is, no value at all. This is the second essential step to ensure that the box is checked prior to submitting the form.

Here’s how this works: by setting the field to be Required, which requires a value in the field, and leaving the unchecked value empty, Ninja Forms will treat an unchecked box as an incomplete field, and will insist that the box is checked before the form can be submitted.

Linking to Your Terms and Conditions Page

Of course, if you’re asking a visitor to agree to your terms, it’s important to provide a link to those terms. Here’s how to do that:

  1. Open the Form Builder for your form, and select your new Terms and Conditions field to open its field settings.
  2. Open the Display section of the field settings and navigate to the Description field. Enter the following text in this field:
    • By checking this box, you indicate your agreement with our Terms and Conditions.
  3. You can then add a hyperlink to the Terms and Conditions by selecting it and clicking the Link icon in the mini-toolbar. Enter the URL to your Terms and Conditions document here, and be sure to check the Open in New Window box. This will ensure that visitors don’t lose their form progress when reviewing your terms.

Confirm Your Results

That’s all there is to it! As a final step, it’s always a good idea to check your published form and confirm that your changes work as expected. If you try to submit the form without checking the box, Ninja Forms will display the This is a required field error message.

You might also like

Share on

Share
Share
Copy Link
jasonpomerleau

About the Author

Jason Pomerleau helps companies achieve their goals on the web, with a particular focus on the WordPress platform. His 25+ year career spans IT, web & product development.

Don't miss out on future articles!

Useful tips for website owners and content managers, delivered once a week.

jasonpomerleau

About the Author

Jason Pomerleau helps companies achieve their goals on the web, with a particular focus on the WordPress platform. His 25+ year career spans IT, web & product development.

Don't miss out on future articles!

Useful tips for website owners and content managers, delivered once a week.