PDA

View Full Version : submit all the fields of a combobox



dolittle
29 Aug 2009, 6:22 AM
Is it possible to submit several fields of the same combo when submitting a FormPanel?

Thanks

Condor
29 Aug 2009, 6:33 AM
You mean a multi-select combo or a combo that submits both the text and the value?

dolittle
29 Aug 2009, 6:47 AM
I mean submitting all the fields of the selected record.
For example, if I have the following fields:
fields: ['name', 'age', 'phone']

and the user selected a record with:
Dave, 25, 53253253
I want to submit:
name: Dave
age: 25
phone: 53253253

and not just Dave

Animal
29 Aug 2009, 6:51 AM
Mmmm.... good idea for an FR there...



valueField: 'name,age,phone',


or



valueField: ['name', 'age', 'phone'],

Condor
29 Aug 2009, 6:54 AM
I don't think it's requested often enough to justify a FR.

I would create hidden fields for the values to be posted and in the select event of the combobox fill those fields with the selected record.

Animal
29 Aug 2009, 6:56 AM
OK a plugin then.