I am using umbraco 7.2 and created some mandatory member type. I used a macro to register member from client side. At this point validation is working for Name, Username, Password and Email but its not working on other member types I created.
@if (registerModel.MemberProperties != null) {
for (var i = 0; i < registerModel.MemberProperties.Count; i++) {
Member Type validation not working.
I am using umbraco 7.2 and created some mandatory member type. I used a macro to register member from client side. At this point validation is working for Name, Username, Password and Email but its not working on other member types I created.
@if (registerModel.MemberProperties != null) {
for (var i = 0; i < registerModel.MemberProperties.Count; i++) {
<tr>
<td width="120px">
@Html.LabelFor(m => registerModel.MemberProperties[i].Value, registerModel.MemberProperties[i].Name)
</td>
<td>
@Html.TextBoxFor(m => registerModel.MemberProperties[i].Value)
@Html.ValidationMessageFor(m => registerModel.MemberTypeAlias[i])
@*<span style="color:Red;">@Html.HiddenFor(m => registerModel.MemberProperties[i].Alias)</span>*@
</td>
</tr>
}
}
is working on a reply...