Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to disable chrome validation?

Solved by Oona O'Neil View solution

Started by Oona O'Neil 9 years ago · 1 replies · 1536 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 Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago