PDA

View Full Version : set Textfield text to null in button click



rakesh_sencha
22 May 2011, 9:53 AM
hi

i have 4 entry textfields,used for editing and new entry,
for validating i used allowblank:false,
when i click add button i have to set the textfields to null.

using "" show the validations exception.
how to avoid validaiton excetion,and set the textfield to null.

thank you in advance.

friend
23 May 2011, 4:24 AM
After setting all field values to null, try this:


yourForm.getForm().clearInvalid();

rakesh_sencha
23 May 2011, 5:13 AM
thank you it worked