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


You can add "attr:type" to specify the type of the input field.

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"

| improve this answer | |
  • Thanks. Is there documentation on the Solspace site for all the attr: – Trent Turner May 24 '16 at 22:03
  • I updated my answer. – Balloonatic May 25 '16 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.