0

What'd be the best practice to add Abide validation to Freeform?

http://foundation.zurb.com/sites/docs/abide.html

<form data-abide novalidate>

How do I drop something like 'data-abide novalidate' into an EE Freeform tag?

{exp:freeform:form
    collection="Contact"
    required="name|email"
    return="contact/thank-you"
    form:id="contact"
    }
1
0

This works:

{exp:freeform:form
    collection="Contact"
    required="name||email|message"
    return="contact/thank-you"
    form:id="contact"
    form:data-abide="true"
    form:novalidate="true"
    }

This is the documentation on Abide:

<form action="" data-abide novalidate method="post">

This is how Freeform generates the HTML:

<form action="" data-abide="true" novalidate="true" method="post">

The confusion comes from the syntax for the attributes. Both of these above are interpreted the same way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.