I created a form using formBuilder in Symfony. I am adding a basic style to the form inputs using an external stylesheet and referencing the tag id. The form correctly displays and processes information correctly.
However, it displays an unwanted unordered list with a list containing the following text: This form should not contain extra fields.
I find it very difficult to get rid of this notice. I was wondering if anyone can help me understand why this is being done with my form and how to remove it?
Thank you very much in advance!
controller
$form = $this->createFormBuilder($search) ->add('searchinput', 'text', array('label'=>false, 'required' =>false)) ->add('search', 'submit') ->getForm(); $form->handleRequest($request);
Twig output (form is output and processed correctly
This form should not contain extra fields.
Rendered HTML
<form method="post" action=""> <div id="form"> <ul> <li>This form should not contain extra fields.</li> </ul> <div> <input type="text" id="form_searchinput" name="form[searchinput]" /> </div> <div> <button type="submit" id="form_search" name="form[search]">Search</button> </div> <input type="hidden" id="form__token" name="form[_token]" value="bb342d7ef928e984713d8cf3eda9a63440f973f2" /> </div> </form>
forms symfony symfony1 formbuilder
Anchovylegend
source share