PDA

View Full Version : [CLOSED] ComboBox.id property induce an artefact



arnaudmorvan
28 May 2010, 7:43 AM
In my forms, I want to fix the id property for my fields,

I use the new composite field and I want to link labels with fields :

xtype: 'compositefield', combineErrors: false,
fieldLabel: 'Numéro',
items: [
{ xtype: 'textfield', id:'field1', ...
{ xtype: 'label', forId: 'field2', text: ...
{ xtype: 'textfield', id:'field2', ...
]

but with Ext.form.ComboBox, the same id is applied on the display input and the hidden input so I get an layout artefact.

I'd be happy if the id property were assigned only on the visible input,
In this case, I don't mind if the id of the hidden field is auto-assigned.

Regards

Arnaud Morvan
Abscisse Géomatique
arnaud.morvan@abscisse-geomatique.fr

Jamie Avins
28 May 2010, 8:07 AM
Did you remember to set hiddenId on the combobox?

Condor
29 May 2010, 3:17 AM
Setting the hiddenId is not the complete solution. You also need to set hiddenName to a different value than id (because of the IE getElementById(name) bug).

Jamie Avins
1 Jun 2010, 8:17 AM
True, I shouldn't have made the assumption he'd know to do that.