PDA

View Full Version : Turn off validation message when form is "Reset"



raydeen
23 Feb 2011, 11:17 AM
A selection on a grid populates form input fields on a page. I have a "Reset" button that when clicked, deselects an item on the grid and clears the populated input fields. But when I try replacing the values on the input field with a null value, extjs automatically turns on the validation and there is a "This field is required" message. How can I disable that validation check when the user clicks "Reset"? :((
Tony

raydeen
23 Feb 2011, 2:34 PM
I solved it with a simple reset:

this.getForm().reset();
:D

Tony