PDA

View Full Version : Modal Window form values "ext-gen" problem



ParthaSaha
17 May 2012, 4:27 AM
I am submitting a modal window for a ajax post and I used the following approach

I get the form by

var form = Ext.ComponentQuery.query('#xyzForm')[0].getForm();

secondly I get the form values by

Ext.encode(form.getValues())

Now when I see the form values at server end I see that they are coming as

{"ext-gen1302":"somevalue1","ext-gen1305":"somevalue2","ext-gen1307":"somevalue3","ext-gen1309":"somevalue4","ext-gen1310":"somevalue5"}

Please let me know how I can solve this so that the form elements are coming with their exact names instead of some generated values like "ext-gen1302":"

scottmartin
17 May 2012, 5:46 AM
Do you have the 'name' property assigned to your editors?

name: 'fieldname',

Regards,
Scott.

ParthaSaha
17 May 2012, 8:37 AM
;)

that solved the problem