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 9022967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:38:47+00:00 2026-06-16T05:38:47+00:00

when clicking from a template to this button : <form action={{ path(‘fos_user_registration_register’) }} method=post>

  • 0

when clicking from a template to this button :

<form action="{{ path('fos_user_registration_register') }}" method="post">        
   <button class="btn btn-small btn-success" type="submit">S'inscrire</button>                     
</form> 

I then access my UserBundle/Resources/view/Registration/register/html.twig ( which then overrides the FOSUSerBundle default form ) :

{% extends "FOSUserBundle::layout.html.twig" %}

{% block fos_user_content %}

<form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
{{ form_rest(form) }}
<div>
    <input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
</div>
 </form>
     {% endblock fos_user_content %}

For some reasons, all validation messages appear (such as Please enter a username) although I did not event submit the form !?

Any explanations for that?

How can I customized the FOSUser template and redirect error_message, not making it appear or changing messages or display?

  • 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-16T05:38:49+00:00Added an answer on June 16, 2026 at 5:38 am

    at the end i overrided the registration_content view as such:

       <form action="/projet_etienne_auth/web/app_dev.php/register/"  method="POST"     class="fos_user_registration_register">
      {{ form_errors(form) }}
      {{ form_widget(form._token) }}
     <div>
    <label for="fos_user_registration_form_username" class="required">Nom d&#039;utilisateur :</label>
    <input type="text" id="fos_user_registration_form_username" name="fos_user_registration_form[username]" required="required" maxlength="255" pattern=".{2,}" /></div>
    <div>
        <label for="fos_user_registration_form_email" class="required">Adresse e-mail :</label>
        <input type="email" id="fos_user_registration_form_email" name="fos_user_registration_form[email]" required="required" /></div>
    
    <div>
        <label for="fos_user_registration_form_plainPassword_first" class="required">Mot de passe :</label>
    
        <input type="password" id="fos_user_registration_form_plainPassword_first" name="fos_user_registration_form[plainPassword][first]" required="required" />
    </div>
    <div><label for="fos_user_registration_form_plainPassword_second" class="required">Vérification :</label>
        <input type="password" id="fos_user_registration_form_plainPassword_second" name="fos_user_registration_form[plainPassword][second]" required="required" />
    </div><div>
         <input type="submit" value="Enregistrer" />
    

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

Sidebar

Related Questions

Code like this with button in footer template after clicking that button error appears:
I copied the code from this link by giving company name and clicking the
On my forms I prevent the user from submitting the form by clicking enter
I created iOS application from Navigation-based application template. This snippet is from RootViewController.m: -
On PostBack, from clicking on an ImageButton, it first hits protected void Page_Load(object sender,
Upon clicking on a link, I am bringing in some images from a JSON
I need to move some selected items from a list by clicking on a
I'm using jquery to remove src from an embedded vimeo video by clicking on
I have fetched images and text as listview from database.now on clicking the particular
I am fetching the menucode from mysql database to android. if i clicking on

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.