Home is for the experience. Projects are for the ones who are interested!

How To Add Link in Contact Form 7 Checkbox

How To Add Link in Contact Form 7 Checkbox

In this tutorial I will show you how to add a link in a contact form 7 checbox. Now we need more than ever to add links in checkboxes due to new GDPR rules because the user must agree with our terms and conditions and we need to have the proof they accepted them. 

If you are using contact form 7 you probably already tried to add links in the standard checkbox offered by the contact form 7 plugin, you have noticed that you are not allowed. Whne you insert HTML in the checkbox everything mess up. In this case you will have to choose for the acceptance field, with this fields you will be able to add how many links you need in your checkbox. The acceptance field works almost like checkbox but this field has some extra features. Normally this field is working a little different as normal checkbox do, I mean the validation for this field will run after the whole form was validated but we can deal with that adding the following line of code in Additional Settings tab. 

Open up your contact form and add a new acceptance field, after you set up the field as you wish go to the Additional Settings tab and add the following line of code:

acceptance_as_validation: on

Now this acceptance will work without any problems, and you will be able to add how many links you need in your contact form 7 checkbox. Let me know if you need help in the comments section.

 

Leave a Reply

Your email address will not be published. Required fields are marked *