Twig Components / Methods / form_start
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
form_start(form_view, variables)
is a Twig function to render the start tag of a form. This helper takes care of
printing the configured method and target action of the form. It will also include the correct enctype property if the
form contains upload fields.
{# render the start tag and change the submission method #}
{{ form_start(form, {'method': 'GET'}) }}
Source: Forms
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.