Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

How to disable chrome validation?

Solved by Oona O'Neil View solution

Started by Oona O'Neil 9 years ago · 1 replies · 950 views
9 years ago

How to disable chrome validation? I've always used 'novalidate' attribute, but where do you add it in the frontmatter?

Here's the structure I have atm:

YAML
forms:
    contact_form:
        name: contact
        action: /home
        classes: contact__form__wrapper js-form-contact
        fields:
9 years ago Solution

I've actually found out you can add 'novalidate' to input fields, like this:

fields:

YAML
                        - name: name
                          placeholder: Name
                          type: text
                          novalidate: true
                        - name: email
                          placeholder: Email
                          type: email
                          novalidate: true

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 5 years ago
13 1135 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 60 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 132 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 108 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 127 7 months ago