2

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. =)

1 Answer 1

4

You 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"

2
  • Thanks. Is there documentation on the Solspace site for all the attr: May 24, 2016 at 22:03
  • I updated my answer. May 25, 2016 at 8:02

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.