Rendering Forms
{{ mayd_form(websiteContext, form, additionalData, renderOptions) }}
parameters
name | type | default | description |
---|---|---|---|
websiteContext | WebsiteRequestContextInterface | ||
form | FrontendForm | ||
additionalData | array | Additional data to pass to the form while rendering. | |
renderOptions.formClass | string | "" | Additional classes for the <form> tag. |
renderOptions.formTheme | string | "..." | The theme to use for rendering. |
renderOptions.submitLabel | string | "..." | The label for the submit button. Will be translated in the form domain. |
Form Theme
By default, the form theme from Mayd forms is used: @MaydForms/frontend/theme.html.twig
.
You can configure to use your custom form theme (see above), but you should always extend the default theme.
Table of Contents