Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I'm also wondering what the ID of the field needs to be to feed the data back correctly through the post.
I've used this with success
@model EPiServer.XForms.Parsing.SelectFragment <div class="row"> <div class="xform @Model.Orientation @Model.Class"> <label class="margin-bottom" for="@Model.Reference">@Model.Label @Html.ValidationMessage(Model.ValidationReference, "*")</label> @foreach (var checkBox in Model.Options) { <label for="@( Model.Reference + checkBox.Value)" class="xform-checkbox"> @Html.CheckBox(Model.Reference + checkBox.Value, checkBox.SelectedItem, new { @title = Model.Title }) @checkBox.Text </label> } </div> </div>
I'm struggling to get this to work. I'm not seeing the data getting saved from the checkbox's too and have tried many different iterations.
I have read other posts but have tried their solutions and neither of them have worked. ( post 1, post 2 )
Here are a few attempts: