1

I have enable angular form validations for my form and I can see corresponding error message on my screen if my form is not valid. I have another requirement. On same form ,I need to add cancel button which when clicked should empty my form field values. This I am able to achieve. My problem starts here.

When user enter some values in form fields and sbumit form , validation messages appear But how to remove those message when click "Cancel button"?

Please help me to resolve this. Thanks in advance.

1
  • It's hard to help you without some specific code snippets to talk about Commented Jun 24, 2014 at 19:15

1 Answer 1

1

On click event of Cancel button , i did $submitted = false which worked

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.