【发布时间】:2014-04-24 00:05:02
【问题描述】:
目前,我有一个简单的表单,即Form[(String, String, String)]
在我的 scala.html 文件中:
@form(routes.Application.editParticipant(pid)) {
@inputText(pForm("email"),'_label -> "Email", '_showConstraints -> false, 'placeholder -> email)
@inputText(pForm("password"),'_label -> "Password", '_showConstraints -> false, 'placeholder -> password)
@inputText(pForm("phone"),'_label -> "Phone number", '_showConstraints -> false, 'placeholder -> phone)
<input type="submit" value="edit">
}
如果用户不编辑表单,我希望表单提交电子邮件、密码、电话的当前值。我该怎么做?
【问题讨论】:
标签: forms scala playframework playframework-2.2