Hello grav
My email form went out of order, I am trying to get it back.
I have been coding it from zero seperately according to the docs create a simple form but for some reason, there are unattended issues.
First:
form.md is output without any styling (form.md is referenced below).
I can't understand why.
Second:
push submit leads to an error,
no mail sent to data,
no redirection to thank you
I am becoming crazy... please help!
title: A page with a form
form:
name: my-nice-form
fields:
- name: name
label: Name
placeholder: Enter your name
autofocus: on
autocomplete: on
type: text
validate:
required: true
- name: email
label: Email
placeholder: Enter your email address
type: text
validate:
rule: email
required: true
buttons:
- type: submit
value: Submit
process:
- email:
from: "{{ config.plugins.email.from }}"
to:
- "{{ config.plugins.email.from }}"
- "{{ form.value.email }}"
subject: "[Feedback] {{ form.value.name|e }}"
body: "{% include 'forms/data.html.twig' %}"
- save:
fileprefix: feedback-
dateformat: Ymd-His-u
extension: text
body: "{% include 'forms/data.txt.twig' %}"
- message: Thank you for your feedback!
- display: /thankyou
MY FORM
Please note:
I have 3 languages [fr, ja, en]
I have 3 environnements [localhost, blog, docs] > multisite subdirectory structured site
example of folder structure is for language [fr]
`/user`
`/user/pages/01.home/modular.fr.md` (antimatter inheritence mytheme)
address > http://localhost/fr
`/user/sites/blog/01.home/form.fr.md` (antimatter inheritence mytheme)
address > http://localhost/blog/fr/form
`/user/sites/docs/01.home/chapter.fr.md` (learn2 inheritence mytheme)
address > http://localhost/docs/fr/some-docs
---