Hi. I have updated my GRAV installation. After some troubles with permissions it worked.
After looking around I found that the emailform of the website has disappeared. The only form related HTML that is now shown is this:
<form name=""
action="/en/contact/_main"
method="POST"
class=" "
>
<input type="hidden" name="__form-name__" value="" />
<div class="buttons">
</div>
<input type="hidden" name="__unique_form_id__" value="218Aw4maVKrWNjihkxL6" /> <input type="hidden" name="form-nonce" value="9d2ac7ce7e7dfcf78d60a0425bfc24ae" />
</form>
while my md file has not changed:
form:
name: my-nice-form
action: /contact
fields:
-
name: name
id: name
label: Name
classes: 'form-control form-control-lg'
placeholder: 'Enter your name'
autocomplete: 'on'
type: text
validate:
required: true
-
name: email
id: email
classes: 'form-control form-control-lg'
label: Email
placeholder: 'Enter your email address'
type: email
validate:
rule: email
required: true
-
name: message
label: Message
classes: 'form-control form-control-lg'
size: long
placeholder: 'Enter your message'
type: textarea
validate:
required: true
buttons:
-
type: submit
value: Submit
class: 'btn btn-primary btn-block'
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: txt
body: '{% include ''forms/data.txt.twig'' %}'
-
message: 'Thank you for your feedback!'
-
display: thankyou