I am wondering if you can specify the input type as an attribute in FreeForm.
I would like to give mobile users the right keyboard for the email field e.g. input type="email"
Can this be done on the freeform:field tag?
Thanks. =)
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityYou can add "attr:type" to specify the type of the input field.
{freeform:field:email
attr:type="email"
attr:class="email-class"
attr:placeholder="Please fill in your email address"
}
You can add any attribute you like. Just use it like attr:name-of-attribute="value of attribute"