title: How to create multiple custom fields in Play Framework?
body: <p>I am trying to build multiple custom fields. </p>
  
  <p>Using <a href="http://www.playframework.com/documentation/2.1.1/ScalaFormHelpers">this article</a> as a reference.</p>
  
  <p>After creating <code>MyHelpers</code>.</p>
  
  <pre><code>object MyHelpers {
  
    //This '.f' is kinda mysterious/magic...
    implicit val myFields = FieldConstructor(myFieldConstructorTemplate.f)    
  
  }
  </code></pre>
  
  <p>I import on my <code>.scala.html</code></p>
  
  <pre><code>@import MyHelpers._
  </code></pre>
  
  <p>Then magically when I do</p>
  
  <pre><code>@inputText(myForm("username"))
  </code></pre>
  
  <p>It's going to use my constructor on <code>MyHelpers</code></p>
  
  <p>But, how would I create multiple constructors, so I could create different input types, like:</p>
  
  <pre><code>@inputText(myForm("username"))
  @inputDate(myForm("birth"))
  </code></pre>
  
  <p>How would I implement that?</p>
  
  <p>Firstly, I am new to Scala (have been reading books and articles and load of things about Scala for quite some time but hardly coded something).
  I am sorry for such question, but scala makes it hard to learn Play, looks like you need to master Scala before, so you can assimilate Play or even understand how it is built. Documentation doesn't help too much in these cases.</p>