This video is a part of our complete course Create a Website with WordPress and Divi.
When you install WordPress, an automatic draft is created that you can use as a starting point, but you should check the text with a legal expert to be on the safe side.
2. Create your form by inserting a Divi Contact Form module on your page.
3. Now it’s time to add the checkbox as the last form field in your Form Module content settings by clicking Add New Field.
4. Type “policy” or such in the Field ID field (this text is just for the database and is not visible for your visitors). If you don’t want to display a title above your consent checkbox, just add a blank space in the Title field.
You can add as many fields as you like to your form. Just make sure that place the consent checkbox in the bottom.
5. Scroll down and open the tab Field Options. Choose the Type Checkboxes.
6. Start by adding the text that should be displayed before your policy link, for example: “I have read and accept the “.
Pleaser note that I end the sentence with a blank space to add a space between the text and the upcoming link .
If you don’t add any Link Text at all, a neat link icon will be displayed in frontend instead.
9. Save your changes and make sure that the checkbox field is marked as a Required Field to make it mandatory.
10. Save the page and make sure that your link really works in frontend before you grab a well-deserved cup of coffee.
Bonus #1: Open the link in a new tab
Paste the code in one of these locations:
- In the <body> field in Divi » Theme Options » Integration. This means that the script will be read in all of your pages and posts and thus apply on all your Divi forms.
- If you want to reduce the number of scripts on your website, you can insert a Divi Code module only on the pages that contains Divi forms.