I have an application that pulls data from tables to populate pull down fields. When the application writes the data to the primary table it uses the index to the pull down value and not the actually value. I want the application to write the value from the pull down window and not the index value to the field.
Can someone point me to where yii writes out the values that I can modify?
this is pulling 2 values(‘id’,‘model’) from an sql table “CpeType” and populating the pulldown with the values for ‘model’
when I do a submit from the from, the form inserts the value for ‘id’ in the database record and not the value of model. I would prefer that the submit uses the value form the pulldown for the model and not the ‘id’ value.