Results 1 to 3 of 3

Thread: setting form field values

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    33

    Default setting form field values

    is there a way to set the value of form fields .. i have tried

    Ext.select('#field1,#field2,#field3').set('');

    doesnt seems to do anything ..

  2. #2

    Default

    Look into form.BasicForm and form.Field set value calls?
    Wes

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    33

    Default

    how do i get the Field object though .. If I do a Ext.get(id) .. I get a Element object back and if I go with Ext.getCmp .. I am assuming I get TextField object back .. how do I get the Field object

    secondly to get the BasicForm object .. I have my form showing up in a window .. with form layout

    var wnd = new Ext.Window({
    ...
    layout: 'form',
    items: [{
    xtype: 'textfield'
    ...
    }]
    })

    i tried wnd.getForm and that doesnt returns me anything .. I know i can use the getForm function on a FormPanel but how do I get it in my case .. where form is embedded inside a window instead of FormPanel.

    Lastly one more question .. If I want to override some of the events .. can i simply specify them in the json object params for xtype(textfield) item

    {
    xtype: 'textfield',
    blur: function(){ ... }
    }

    thanks for ur help

Similar Threads

  1. Setting Store field value from other field values at load time
    By G-Force in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 26 Oct 2010, 10:26 AM
  2. Setting default focus on form field
    By hiral in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 7 Apr 2010, 2:17 AM
  3. Accessing form field for setting value
    By rssk in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 15 Sep 2009, 5:47 AM
  4. [HELP] Setting Form Values Dynamicly
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Jan 2008, 2:57 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
  •