Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8970377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:43:12+00:00 2026-06-15T17:43:12+00:00

I have a simple user registration form with a checkbox for ‘accept terms’. I

  • 0

I have a simple user registration form with a checkbox for ‘accept terms’. I have set all fields to error_bubbling=false, but the error of the checkbox is rendered in the form_errors(form) section.

Here is my entity:

class User implements UserInterface, \Serializable, EquatableInterface
{
    /**
    * @ORM\Column(type="boolean")
    * @Assert\Type("bool")
    * @Assert\NotBlank(groups={"Registration"})
    */
    private $isAcceptingTOS;
    ....

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'password_required' => true,
            'validation_groups' => array('Registration', 'Default'),
        ));
    }

}

My form type:

class RegistrationType extends AbstractType
{
    $builder
    ->add('acceptingTOS', 'checkbox', array(
        'error_bubbling' => false,
    )),
    ....
}

And my template

<form action="{{ path('registration_create') }}" method="post" {{ form_enctype(form) }}>

    {{ form_errors(form) }}

    {{ form_widget(form.acceptingTOS) }}
    {{ form_label(form.acceptingTOS) }}
    {{ form_errors(form.acceptingTOS) }}

    {{ form_rest(form) }}

    <input type="submit" />
</form>

Any hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:43:13+00:00Added an answer on June 15, 2026 at 5:43 pm

    I found the error.

    I have to use isAcceptingTOS instead of acceptingTOS in the form type and in the template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple registration form. Once all information entered, user click submit button and
I have simple user registration form. In which i am puting city as a
I have one simple User Registration form. It includes name, age, sex & city.
I am trying to create a simple registration form. I have the following: include('User.datatype.php');
I am trying to create simple user registration form. I have an index.html file
I have a simple bean defining user credentials on signup registration form model: public
I have a simple form where a user can add, edit, and delete people
I'm working on a simple mobile site that have a registration form for Interest,
We have a simple registration form for our website users where we only require
So I have a registration page where the user registers with all his/her information

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.