PDA

View Full Version : submitting form the standard way



da_sweetp
19 May 2009, 1:44 PM
I am a complete noobie, sorry in advance. I am trying to get a form to work and submit it using standard submit. I can initialize my form, and submit is sent to server. The problem is, only init values are sent to server. If user changes fields in the form, the updated values are not sent.



myPanel = new Ext.FormPanel({
region: 'west',
standardSubmit: true,
/* etc.. */
buttons: [
{
text: '<b>Submit</b>',
type: 'submit',
formBind: true,
scope: myPanel,
handler: function() {
myPanel.getForm().submit({
url:'update', waitMsg:'Wait...'
});
}
}
],
items:[
/* various fields */
]
});

21 May 2009, 3:37 AM
what do you mean "only init values" ?

da_sweetp
21 May 2009, 9:04 AM
I was able to work it out, thanks. I found the 3.0 doc example of cycling through the base params and adding their values as hidden fields.