[Skip to main content](#vessel-content)

#   Required checkbox during registration

##

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#12221](#12221) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#12221 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#12235](#12235) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#12235 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

We were able to reproduce the problem on our end. We'll look at how we can correct it tomorrow.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#12302](#12302) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#12302 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

You need to replace the file media/com_hikashop/hikashop.js by the one in this archive and change the line:
if(!$field-&gt;field_required &#124;&#124; strlen($value) &#124;&#124; strlen($oldvalue)){
by:
if(!$field-&gt;field_required &#124;&#124; is_array($value) &#124;&#124; strlen($value) &#124;&#124; strlen($oldvalue)){

in the file administrator/components/com_hikashop/classes/field.php

That should make it work.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 4 months ago [\#20397](#20397) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#20397 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

i see that this thread is 3 months old but i am also getting the same problem, i know i download the program after this thread was solved. my question is was this put back into the package or do i have to solve the issue with the code and file here?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#20415](#20415) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#20415 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

That modification was included in HikaShop.
I just tested it on our demo website and I can't register unless I check the required checkbox of the form so it works.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 4 months ago [\#21049](#21049) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21049 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

i have registration off on my site ,and it's not working. should it be working if no registration is selected?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21068](#21068) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21068 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

What do you mean by you have registration off ? If the registration is disabled on your website, you should not see the registration form at all and you should see instead a message telling the user that the registration is disabled...

Could you give a link ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 4 months ago [\#21071](#21071) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21071 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

sent info view contact us

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21077](#21077) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21077 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

I can't login on your htaccess authentication. Could you double check the username and password please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 4 months ago [\#21107](#21107) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21107 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

resent info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21127](#21127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21127 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

You don't have any checkbox custom field on your registration form. What you have is the terms view. The terms view is only checked at the end of the checkout and it works fine on your checkout. When I arrive at the end of the checkout, if I didn't tick the terms checkbox, I get the message:
Please accept the terms and conditions before proceeding
and I'm redirected to the step where I can do that.

The terms and conditions view of the checkout is there to ensure that the user accepts them before finishing his order, not for the registration.
If you want a terms checkbox for the registration, you should create a new custom field of the table "user" of the type "checkbox" and required instead of using that view and the users won't be able to register unless they tick that checkbox.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#21682](#21682) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21682 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

Can i make so it only Shows up on the first view and they can't go on without selecting it there. as of right now it lets me go all the way to the fields view and the terms radio box doesn't show up there. when i click next though it take me back to the Shipping and billing address view. I don't want any confusion with it taking them back so i would like it to be enforced on the first or last view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 3 months ago [\#21687](#21687) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#21687 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

Sure. You need to change your checkout workflow for that. You can move the view fields_ from the last step to the first step and voilà.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#22151](#22151) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22151 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

what i am trying to get done is. To have that same checkbox for the terms and conditions on the first view and only there... if they don't agree by clicking on it the msg comes up there.. i must have it work like that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 3 months ago [\#22157](#22157) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22157 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

I understand but that's not how the system is done... If you want you can directly edit the file components/com_hikashop/controllers/checkout.php and change the code:
function after_terms(){
$app =&amp; JFactory::getApplication();
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_terms', JRequest::getInt('hikashop_checkout_terms',0) );
return true;
}

to:
function after_terms(){
$app =&amp; JFactory::getApplication();
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_terms', JRequest::getInt('hikashop_checkout_terms',0) );
return $this-&gt;check_terms();
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#22459](#22459) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22459 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

The Above code made it so it doesn't pass step 2, where do i make the modification so it doesn't go pass step 1 if it's unchecked. Also where can I find the code that echos that field out? i would like it at the top of the registration form.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 3 months ago [\#22465](#22465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22465 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

Did you put the terms view on the first step of the checkout workflow ?

The terms checkbox is displayed by the terms file of the view checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")**
- [![Rickhavoc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")
- [ Offline](/forum/user/2766-rickhavoc)

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 3 months ago [\#22471](#22471) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22471 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

That put it at the top. All i need it to do now is make sure that it doesn't go to step 2 without it being checked. Any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 3 months ago [\#22511](#22511) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#22511 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

What you could do is to edit the file step of the view checkout and add a javascript check on the next button in order to forbid the user to go to the next step if he doesn't check the terms and conditions.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 3 months ago [\#23138](#23138) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Required checkbox during registration](/forum/4-how-to/12221-required-checkbox-during-registration#23138 "Hi!  We would like to have a required checkbox during registration to accept the terms and conditions. But if we set a checkbox to required it is marked as required, but you can register without checking the checkbox.  Best regards")*

Well, after the update to 1.5.3 the problem is back. You can register without checking the checkbox!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjIxLXJlcXVpcmVkLWNoZWNrYm94LWR1cmluZy1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.097 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
