I have a form where i have to display certain fields based on the value of the checkbox.
below is the code in my view
@checkbox(
userModelForm("isStudent"),
'_label -> <font color = "grey"> Student</font>,
'_showConstraints -> false
)
if this checkbox is selected i need to display the following input text if not this should be hidden
@inputText(
userModelForm("StudentId"),
'_label -> <font color = "grey" > Student Id </font> , 'class -> "form-control",
'_help -> "Realtors, please enter Your Student id.",
'_error -> userModelForm.globalError
)
Thanks