0

I have added a required checkbox field to contact form 7 to fill before form submission. But I need to give link "Terms and Condition" to the page. I searched and tried in many ways, but i cannot find the correct way. If someone can help me I really appreciate it. Thanks in advance

This is the checkbox field I already added

[checkbox* term_and_conditions class:required "I can confirm I have read and accepted the Terms and Conditions."]

closed as off-topic by Michael, Jacob Peattie, Krzysiek Dróżdż, bosco, Howdy_McGee May 26 '18 at 18:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Did you try just wrapping one or a few word with a a-tag manually? – Luckyfella May 18 '18 at 6:17
  • [checkbox* term_and_conditions class:required “I can .. <a href=‘.yourlink.com/page‘>terms and..</a>“] like that – Luckyfella May 18 '18 at 6:28
  • @Luckyfella thank you for your answer, I tried in this way, but it does not give the desired out put – Kash May 18 '18 at 10:30
  • Is your plugin up to date? Doesn’t work with older versions. I just had to do the same and it works perfectly like posted. What output do you get right now? – Luckyfella May 18 '18 at 10:46
  • @Luckyfella Iit displays with the <a> tags with the href. – Kash May 18 '18 at 10:51
2

It should work like said in my comment but maybe an even better way would be to use the acceptance filed-type that is build especially for that kind of checkboxes.

[acceptance term_and_conditions class:required] I can confirm I have read and accepted the <a href="http://www.your-domain.com/terms-page">Terms and Conditions</a>.[/acceptance]

In the contact form 7 edit page go to the tab additional settings and add:

acceptance_as_validation: on
  • If the answer helped you solving your problem feel free to accept it, or not. Would help others to see that it is solved and does not need further investigation. – Luckyfella May 18 '18 at 9:32
  • I tried this answer, but it does not display the content as i need. It shows only the check box. But I need to show the content and need to link Terms and Condition to an another page once user clicks on it, Any way thank you for your help – Kash May 18 '18 at 10:53
  • I had the same issue before I updated the plugin.. – Luckyfella May 18 '18 at 11:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.