I initialized my form in modular.md page
forms:
form-a:
action: /your-modular-page
name: application_form
fields:
-
name: name
label: name
placeholder: 'Full name’
type: text
validate:
required: true
-
name: email
label: email
placeholder: 'Your email’
type: email
validate:
required: true
-
name: company_name
label: company_name
placeholder: 'Company Name’
type: text
validate:
required: true
buttons:
-
type: submit
value: Submit
body: “{% include ‘forms/data.txt.twig’ %}”
process:
- email:
from: "{{ config.plugins.email.from }}"
to: "{{ form.value.email }}"
subject: "Contact by {{ form.value.name|e }}"
body: "{% include 'forms/data.html.twig' %}"
-
message: 'Thank you for your feedback!'
form-b:
action: /your-modular-page
name: contact_form
fields:
-
name: name
label: name
placeholder: 'Full name'
type: text
validate:
required: true
-
name: email
label: email
placeholder: 'Your email'
type: email
validate:
required: true
and include my file
{% include “forms/applicationform.html.twig” with {form: forms(’/form’, ‘form-a’)} %}
but it’s not working. It returns a blank page. Do have any idea? Maybe I miss something.