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.
I’m not sure where you are getting your information,
but good topic. I needs to spend some time learning much more or understanding more.
Thanks for magnificent info I was looking for this
information for my mission.
Hello, i think that i saw you visited my web site so i came to “return the favor”.I’m trying to
find things to enhance my web site!I suppose its ok to use some of your
ideas!!
In fact no matter if someone doesn’t be aware of after that its up
to other visitors that they will help, so here it occurs.
cheltenham day 4 betting offers
my website :: https://horse-betting.com/
pick a winner place bet on horse racing using ethereum racing