Results 1 to 3 of 3

Thread: Submit a textfield of a toolbar

  1. #1

    Default Submit a textfield of a toolbar

    Hello,

    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

  2. #2
    Sencha User
    Join Date
    Oct 2008
    Location
    Indialantic, FL
    Posts
    66

    Default

    You may not have your field configured properly. Maybe name or hiddenName parameters are not set?

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    How are you submitting the form? formPanel.getForm().getValues() should correctly include the field, but formPanel.getForm().getFieldValues() won't.

Similar Threads

  1. how to submit the dynamic add TextField in formPanel?
    By modernzyc in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2010, 6:29 AM
  2. submit diabled textfield
    By Stephan123 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Oct 2009, 4:38 AM
  3. [2.1] Textfield name 'method' causes submit error
    By ChrisR in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 3 Jul 2008, 12:24 AM
  4. Submit data from a textfield
    By Chamster in forum Ext 2.x: Help & Discussion
    Replies: 24
    Last Post: 23 Jun 2008, 4:57 AM
  5. toolbar.button to submit to a url
    By Tina G in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 28 Dec 2007, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •