Hi
I want to know in what way config options are to be used and how does that work exactly..?

The code upon which i was working was :

/*field= new Ext.form.TextField({
id: opName+i,
xtype: 'textfield',
name: 'Method',
anchor: 'right'
});
if(i==0)
{
field.fieldLabel="abc",
field.hidden="true";
field.value=opName;
}
else
{
field.fieldLabel="cde",
field.name=names[i-1];
}*/

It is working fine but if used the below code..
name option is used in other way...

/*field= new Ext.form.TextField({
id: opName+i,
xtype: 'textfield',
// name: 'Method',
anchor: 'right'
});
if(i==0)
{
field.fieldLabel="abc",
field.hidden="true";
field.value=opName;
field.name='method';
}
else
{
field.fieldLabel="cde",
field.name=names[i-1];
}*/

it is giving an error which is causing the failure of form submit where i am passing the textfield value to the back end code.

i want to know what went wrong in using the config option "name" in the above two scenarios..?

when config option value and field label were working fine in the second scenario then why name config option is not working that way?

Please help me regarding this?