play.api.data.Form
See theForm companion class
object Form
Provides a set of operations for creating Form values.
Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates a new form from a mapping.
Creates a new form from a mapping.
For example:
import play.api.data._
import play.api.data.Forms._
import play.api.data.format.Formats._
val userForm = Form(
tuple(
"name" -> of[String],
"age" -> of[Int],
"email" -> of[String]
)
)
Value parameters
- mapping
-
the form mapping
Attributes
- Returns
-
a form definition
Creates a new form from a mapping, with a root key.
Creates a new form from a mapping, with a root key.
For example:
import play.api.data._
import play.api.data.Forms._
import play.api.data.format.Formats._
val userForm = Form(
"user" -> tuple(
"name" -> of[String],
"age" -> of[Int],
"email" -> of[String]
)
)
Value parameters
- mapping
-
the root key, form mapping association
Attributes
- Returns
-
a form definition
Concrete fields
INTERNAL API
INTERNAL API
Default maximum number of chars allowed to be used in the intermediate map representation of the JSON. Defaults to 100k which is the default of parser.maxMemoryBuffer
Attributes
INTERNAL API
INTERNAL API
Default maximum depth of objects and arrays supported in JSON forms
Attributes
In this article