View Full Version : Submit a textfield of a toolbar

Tuom Larsen
20 Feb 2011, 1:48 PM

I have a FormPanel, which has a toolbar (config: {tbar...}). The toolbar has a named text field.

I would like to submit the whole FormPanel, along with the text field's value. The FormPanel docs say:

However, the values will be submitted because form submission parameters are collected from the DOM tree.

But when I submit the form, the field is not included. Please, does any one know why not? Or how to make it submit? Web Inspector shows, that the toolbar's DIV is not beneath the FORM in DOM, btw..?

And I'm using 3.3.1

20 Feb 2011, 6:00 PM
You may not have your field configured properly. Maybe name or hiddenName parameters are not set?

21 Feb 2011, 6:47 AM
How are you submitting the form? formPanel.getForm().getValues() should correctly include the field, but formPanel.getForm().getFieldValues() won't.