I created a wizard for one of my form allowing to set multiple models information in defferent step. However among these models, only one has to have a certain option checked. So in the last step I would like to ask which model will have "this option" enabled. I firstly think to use radio button.
Have you tried using CFormModel? I found it to be quite flexible for what you are trying to do. It will allow you to create a custom validation rule for the radio buttons and once it is validated, you can then save the data in your different models.
The point is that I don’t really want to try to get around the problem… I could of course use one of my model, create a new attribute and read the value of this attribute in order to know which model I’m gonna enabled… but it looks very ugly. That’s the point of my topic, is there a way to get a list of radio button concerning the same attributes but of different model ?