Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear error messages inserted by nod #49

Closed
fajw55 opened this issue Aug 3, 2013 · 1 comment
Closed

How to clear error messages inserted by nod #49

fajw55 opened this issue Aug 3, 2013 · 1 comment

Comments

@fajw55
Copy link

fajw55 commented Aug 3, 2013

I have form in modal window.
First thing i don't like is that form is checked for errors on close button. Is it possible to turn that of. I would like to evaluate form only on submit and while inserting data.
On open modal I clear all fields so form is empty but I didn't find the way to clear error messages inserted by nod.
Example.

  1. open form (click on add new)
  2. nothing is inserted and click close ... form is evaluated and all is red ... modal is closed
  3. open form again ... all is red

hope there is a solution.

@casperin
Copy link
Owner

casperin commented Aug 4, 2013

Nope, sorry. No easy solution. :(

That everything turns red is actually another issue (see #46) that will get fixed at some point.

It would be useful if there were a clear errors function of some sort, but I haven't made anything like that.

I've used nod.js myself in popups, but that popup was emptied when closed, and rebuilt again when opened. That works fine of course. Depending on the exact case, that might be a solution for you.

@casperin casperin closed this as completed Aug 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants