1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    1
    Vote Rating
    0
    enderochoa is on a distinguished road

      0  

    Default how assign value a form field?

    how assign value a form field?


    how assign value a form field?
    i'm from venezuela.

    i'm starting with Extjs
    i designed a form with several field and i want to assign a value to a field.
    i try several option
    example
    Ext.get('ext-gen1226').set({value: 'new value'});

    i see with webdeveloper firefox addons that this asign value but this don't show
    thanks!!

  2. #2
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  3. #3
    Sencha User poojagarg89's Avatar
    Join Date
    Sep 2011
    Location
    Ahmedabad,India
    Posts
    213
    Vote Rating
    0
    poojagarg89 is on a distinguished road

      0  

    Default assign value by adding a config value

    assign value by adding a config value


    Code:
    items: [{
                    xtype: 'textfield',
                    fieldLabel: 'Name',
                    id: 'name',
                    name: 'name',
                    value: 'user'
                
                }
    with this value config you can set the values of the textfield staticly and dynamiclly also.......!!

Thread Participants: 2

Tags for this Thread