o
FormState
object FormStateConstructors for FormState.
Defined by scalive.FormState. View source (scalive/api/src/scalive/forms/FormState.scala:66-99)
Methods1
apply
def apply[A](raw: FormData, value: Either[FormErrors, A], submitted: Boolean): FormState[A]Creates state and derives its used-path set from the raw payload.
When submitted is false, a final segment such as _unused_email marks sibling email as
unused and is itself excluded. Other non-empty parsed names are marked used. When submitted
is true, marker paths are excluded but no sibling paths are removed; independently,
isUsed treats every path as used. Path parsing inherits parse's
permissive and lossy rules.
Defined by scalive.FormState.apply. View source (scalive/api/src/scalive/forms/FormState.scala:75-76)