Play Framework HTML5 input elements

The built in Play input elements are fairly restrictive in that you can’t specify the input type. I wrote a helper template that you can use to generate input elements which have HTML5 type attributes such as url, email, number, search etc. etc.

All you have to do is call the template method, passing the HTML input type as a parameter. For example:

@helper.html5.input(form("website"), '_label -> "Website:", 'type -> "url")

If you have a form field mapped as a play.api.data.Forms.email then the template will automatically infer it’s type so you don’t have to pass the type attribute in with your html attributes:

@helper.html5.input(form("email"), '_label -> "Email:")

If your field has the required constraint, e.g. it is a “nonEmptyText” then the template will add the HTML5 “required” attribute to the field as well.

You can get the source code here.

4,903 thoughts on “Play Framework HTML5 input elements

  1. I’ve been checking out Paybis for a while now, especially after
    ending up broke, and I’m still not fully convinced whether it
    deserves all the attention it gets. Still,
    it’s certainly a noticeable name in the crypto space, particularly for people in Germany who are trying
    to rebuild their finances. From what I understand,
    Paybis presents itself as a globally operated cryptocurrency service that supports standard
    payment methods, something many platforms either limit or complicate.

    What initially caught my eye is how Paybis seems to link traditional German banking
    methods with the crypto world. Many exchanges focus only on crypto-to-crypto trades,
    while Paybis allows users to exchange crypto using SEPA transfers.

    I’m not saying the process is perfect, but it does seem aimed at people starting out rather than just advanced traders.

    Another aspect worth noting is the selection of supported assets.
    Paybis doesn’t restrict itself to Bitcoin and Ethereum only.
    Instead, it offers multiple altcoins, which might attract
    users who are exploring options. Still, things like update speed are worth checking before making decisions.

    Security and compliance also come up often around Paybis.
    The platform highlights identity verification, which can feel reassuring for
    users in Germany, though others might see it as restrictive.
    I’m still undecided, but it does suggest Paybis tries to operate as a regulated marketplace.

    When it comes to fees, reviews seem divided. Some say Paybis is transparent about costs,
    while others note that pricing can vary by payment method.
    This isn’t unusual in the crypto industry, but it means users
    should read the details before moving money.

    Overall, I wouldn’t call Paybis the ultimate choice, but it
    does seem like a platform worth a closer look,
    especially for someone in Germany trying to find
    accessible financial tools. I’m still
    forming my opinion, but it seems interesting enough to justify further research.

  2. Heya! I’m at work browsing your blog from my new iphone 4!
    Just wanted to say I love reading through your blog and look forward to all your posts!
    Keep up the outstanding work!

  3. Good day I am so thrilled I found your weblog, I really found you by accident, while I was browsing on Bing
    for something else, Regardless I am here now and would just like to say thank you
    for a incredible post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to look over it all at the minute but
    I have book-marked it and also included your RSS feeds, so
    when I have time I will be back to read more, Please do keep up the
    great job. https://cryptoboss351.top/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>