1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Form fill in values

    Form fill in values


    I have a form with one real field entered by the user.
    The other fields are hidden and must be set programmaticly by JS.

    I am able to create hidden fields like this:
    {
    xtype: 'textfield',
    hidden:'true',
    id:'gebrek',
    name: 'gebrek'
    }
    but how do I fill the fields from my controller code? The code must be send to the server by using PHP.

    John

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    0
    DeepShah is on a distinguished road

      0  

    Default It will work

    It will work


    You can set value of that hidden field after form is loaded by following code :

    Ext.getCmp("gebrek").setValue("Put your value here.");

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Issue solved

    Issue solved


    var panelbijzonderheden = Ext.create('Ext.form.FormPanel', {
    fullscreen: true,

    and to fill the fields with hidden:'true' property

    panelbijzonderheden.setValues({
    complex_prefix:cprefix,
    floor_nr:cverdieping,
    room_nr:cruimte_nr,
    building_section:cgebouwonderdeel,
    catagory:ccategorie,
    catagory_damage:ccategory_gebrek,
    damage:cgebrek,
    action:cactie,
    m2:parseFloat(cm2),
    data_inspection:cDateStr,
    user_id:'test'
    });



    John

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi