Forums

How to add a terms and conditions checkbox

CrystalFrontier 08 Jun, 2013
Hello all,

is there a way to add a (required) checkbox with a text link that opens a popup or Joomla article showing terms and conditions that need to be ticked prior to sending off the form?

This sounds like a pretty basic event to me, but I can't get my head around which element could work best here, but I can't find a way of setting up a basic checkbox to do this.

Thanks for any advice,
Chris
gabedaly 08 Jun, 2013
You can write the code inside the field name for the checkbox (in the wizard) like so:
I agree to the <a href='/my-terms-and-conditions'>Terms and Conditions</a>
You can probably create a popup off this but I'm not sure how to. What I did was create a hidden box, add a little jQuery so when clicked, it opened the article below it.
Hope it helps.
GreyHead 09 Jun, 2013
Hi Chris,

That will work OK- make sure that you only use single quotes in the Label box.

Alternatively you can build the code you want using a Custom Element element from the Advanced Group. That might be better if the link is long or complex, or you want to use a Modal window to display the T&Cs.

Bob
CrystalFrontier 10 Jun, 2013
Hello Bob and gabedaly,

works great, thanks!! I'll just need to find out how to make the link open a modal window, but this basic solution works just fine for now😉 Thanks for your support!

Chris
This topic is locked and no more replies can be posted.