Self Registration Require Checkbox Checked

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tmk
Forum Members
Forum Members
Posts: 25
Joined: Sun Sep 23, 2007 4:07 am

Self Registration Require Checkbox Checked

Post by tmk »

Scenario,

As part of a (self) registration process, I'd like to have a checkbox that says:

[ ] I Agree to the terms of use ... yadda yadda yadda.

If the checkbox is not checked, then the Self Reg would not submit and/or it would show an error message.

At this point, only a username, password, and email address are being collected. I'd like it to be all on this single form, as a one-step process.

Any help on implementing this would be appreciated.

Tom
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Self Registration Require Checkbox Checked

Post by jmcgin51 »

I can't think of an "all-in-one-solution", but you could do the self-reg and then after the final submit, redirect to a page with a FormBuilder form that requires them to accept the terms of use.  This wouldn't be totally satisfactory, because it wouldn't prevent the registration from being successful if the terms weren't accepted.

This sounds like a feature request (and a good one) - please submit it in the Forge.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: Self Registration Require Checkbox Checked

Post by urheat »

Is there any new ways to achieve this?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Self Registration Require Checkbox Checked

Post by Jo Morg »

Typically I use a JQuery plugin to validate forms before submission, which makes it easy to check for a certain state on a checkbox beforehand. It's pretty easy to use Javascript just for a small form, just google and you'll find lots of solutions. IIRC a required unchecked checkbox field will also make the registration fail, but I'm not sure and I don't have where to test atm.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: Self Registration Require Checkbox Checked

Post by urheat »

There is indeed a field "Checkbox extended" that suits perfectly to this.

I can't add [solved], 'cause this isn't my topic, but I think this is pretty much solved now.

Thanks Jo!
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Re: Self Registration Require Checkbox Checked

Post by 10010110 »

Hm, as far as I remember it should be as easy as adding a checkbox FEU property as required field to the group to which the users are going to sign up.
  1. In FEU add a new property of type “checkbox” with the prompt “I agree to the terms yadda yadda …”
  2. Still in FEU, go to the “Groups” tab and set that property/field to “required” (and optionally move it to your desired position)
In your SelfRegistration form this checkbox should now show up.

Or have I misunderstood something here?
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: Self Registration Require Checkbox Checked

Post by urheat »

10010110 wrote:Hm, as far as I remember it should be as easy as adding a checkbox FEU property as required field to the group to which the users are going to sign up.
  1. In FEU add a new property of type “checkbox” with the prompt “I agree to the terms yadda yadda …”
  2. Still in FEU, go to the “Groups” tab and set that property/field to “required” (and optionally move it to your desired position)
In your SelfRegistration form this checkbox should now show up.

Or have I misunderstood something here?
Thanks! I think this is really logical method!
Post Reply

Return to “Modules/Add-Ons”