How can I set bool to true in Model with radio input?
I may be doing this in an unconventional way as I am still learning, but I basically have this in my model
and I have a view based on that model that I would like to have a radio input tag that if checked will make myBool into true when the model object is submitted in the form. Something like:
It doesn't have to be done this way but I would prefer it in this way.
2 Replies
I assume the property is supposed to be
If so, a checkbox might be more appropriate than a radio button
If there is an actual checkbox type then why does the radio type look like a checkbox in the view????
I mean, I am bad at frontend but that is silly
still thanks 🙂 it works