reset button code not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sari saji
    New Member
    • Feb 2012
    • 7

    #1

    reset button code not working

    Turn off validation message when form is "Reset"

    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,it 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"?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Set a state variable when the reset button is clicked and then validate only when that state variable is not set. Don't forget to unset the variable after you're done.

    Comment

    Working...