Hi all,
I have a list of input fields with a checkbox and label in front of every input field. The label titles are filled using a list of
string values from the model. My command object contains a list of objects, with each object contining fields that map to checkbox, label and input. My problem is that i cannot manage to map these values to my command object. Below is the code that i have so far.
FieldsNames is a list of String objects added by the controller to the model.
When running above code i receive the error message that class MyCommand does not contain a property 'checked' upon submitting form, which is ofcourse true, but then again, i do not see how to map the above tags to the properties of class Field instead of class MyCommand which is the actual command object. Any help is appreciated.
Btw. the controller code is ommited due to the fact that it is out of scope for the problem i am facing.