1. #1
    Ext User
    Join Date
    Nov 2007
    Posts
    13
    Vote Rating
    0
    onmission is on a distinguished road

      0  

    Default Reset button to clear form values?

    Reset button to clear form values?


    Hi

    How is it possible to create a reset button to reset the form values?

    Code:
    ...
    buttons: [{
    	text: 'Save'
    },{
    	text: 'Clear Form',
    	type: 'reset'
    }]
    ...
    How do I go from here? Thanks.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    12
    Vote Rating
    0
    Prince_Elrik is on a distinguished road

      0  

    Default


    You can use this:

    PHP Code:
    text'Reset',
    handler: function(){ name_of_your_form.form.reset(); } 

  3. #3
    Ext User
    Join Date
    Nov 2007
    Posts
    13
    Vote Rating
    0
    onmission is on a distinguished road

      0  

    Default


    Thanks Prince Elrik.

Thread Participants: 1