How can I add a CheckBox in the Member Registration Form ?
Hi All,
I have created a Members‘ Register Page, but I need to add a CheckBoxFro related to a CustomProperty to store the acceptance of the Privacy Policy.
I’ ve seen that the code renders only TextString. I tried (as suggested in the notes) to create a custom editor (MyEditor.cshtml) to define the CheckBoxFor, but I always got the following error.
How can I add a CheckBox in the Member Registration Form ?
Hi All, I have created a Members‘ Register Page, but I need to add a CheckBoxFro related to a CustomProperty to store the acceptance of the Privacy Policy. I’ ve seen that the code renders only TextString. I tried (as suggested in the notes) to create a custom editor (MyEditor.cshtml) to define the CheckBoxFor, but I always got the following error.
MyEditor.cshtml is the following:
Where am I wrong?
Found out. There were several mistakes. Thanks to Jakob and Anthony of Umbr.coach, I succeeded in solving.
This is the new MyEditor.cshtml that works.
Hope it could be useful.
is working on a reply...