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


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"

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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