xtype: 'hidden/text/textarea',
name: 'somename',
reference: 'somereference',
How do i change the name of dynamically i have tried
typeId.inputEl.dom.name = 'typeId[1]';
but it is not working i am using extjs is the inspector image
as image name can be seen as result[1255]
but when posting it is posting the old name as result
;
Assuming that "typeId" is your form field, you only have changed the name of the underlying dom element, but you also need to set the name for the ExtJS component:
Check out this example: https://fiddle.sencha.com/#view/editor&fiddle/1ngu