如何将“必填”替换为红色星号以显示该字段是必填的?
我有这些表格的代码行;fullName 和 presentAddress 是强制性的,我在模型中声明为 @Required。如您所见,我隐藏了 presentAddress 的“必需”消息。谁能告诉我如何用红色星号替换它,而不是隐藏它?
@inputText(newStaffForm("fullName"), 'size->50, '_label -> "Full name:")
@inputText(newStaffForm("sex"), '_label -> "Sex:")
@inputText(newStaffForm("presentAddress"), '_label -> "Present Address:", '_showConstraints -> false)