You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I have a modular page with a contact form.
Basically if I insert the wrong captcha the validation message is correctly showed but then if I try to correct the code and submit again, a "form already submitted" message is shown and the processing (sending of the email) is not executed.
I think that can be a similar problem to issue 489 that was solved by an update few years ago.
I'm using
Grav v1.7.48
Form v7.4.2
PHP Version 8.4.1
My frontmatter code for the contact page is the following:
subtitle: 'Ottieni più informazioni'
section_classes: 'bg-primary-darker text-primary-lighter py-8 md:py-24'
title_text: light
form:
name: contact
action: '#contact'
inline_errors: true
fields:
name:
label: Name
display_label: false
placeholder: 'Il tuo nome'
autocomplete: 'on'
type: text
validate:
required: true
email:
label: Email
display_label: false
placeholder: 'Il tuo indirizzo mail'
type: email
validate:
required: true
phone:
label: Phone
display_label: false
placeholder: 'Il tuo numero di telefono (opzionale)'
type: text
message:
label: Message
display_label: false
placeholder: 'Il tuo messaggio'
type: textarea
rows: 4
validate:
required: true
basic-captcha:
label: 'Are you human?'
display_label: false
type: basic-captcha
placeholder: 'Inserisci i caratteri visualizzati'
buttons:
submit:
type: submit
classes: 'no-default-style text-white bg-gray-700 hover:bg-primary'
value: 'Submit Form'
process:
basic-captcha:
message: 'Verifica del codice captcha fallita... Riprova'
email:
subject: 'Contact by {{ form.value.name|e }}'
body: '{% include ''forms/data.html.twig'' %}'
message: '<b>Grazie!</b> Il messaggio è stato inviato, riceverai una risposta appena possibile.'
reset: true
cache_enable: false```
The text was updated successfully, but these errors were encountered:
Hi!
I have a modular page with a contact form.
Basically if I insert the wrong captcha the validation message is correctly showed but then if I try to correct the code and submit again, a "form already submitted" message is shown and the processing (sending of the email) is not executed.
I think that can be a similar problem to issue 489 that was solved by an update few years ago.
I'm using
Grav v1.7.48
Form v7.4.2
PHP Version 8.4.1
My frontmatter code for the contact page is the following:
The text was updated successfully, but these errors were encountered: