Registration Form CheckBox

Posted by rwaltst on 08-Aug-2019 14:42

I am creating a custom view for Sitefinity's registration form. With this custom view, I am populating the values of a custom user profile with what is filled out in the form. I am able to populate all of the custom fields (text and dropdown) with the user's choice, but I am not able to populate the checkbox form. I have the value binded in the profile bindings, but I can't seem to set any values for that custom field. This is what I was attempting to do: 

@Html.CheckBox("Profile[JobFunction]", true, new { @class = "form-check-input" })     

- or -

@Html.CheckBox("Profile[JobFunction][0]", true, new { @class = "form-check-input" })

Is doing something like this even possible? 

(Sitefinity Version -> 11.2)

All Replies

This thread is closed