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 debug invalid field names #46

Closed
Alwigi opened this issue Dec 10, 2013 · 2 comments
Closed

How to debug invalid field names #46

Alwigi opened this issue Dec 10, 2013 · 2 comments

Comments

@Alwigi
Copy link

Alwigi commented Dec 10, 2013

Hi, I am trying out autoform and during my tests I accidentally entered an invalid field in:

Now if this is the case my page comes up blank, I see nothing to indicate the problem in either Chrome's console or in Node Inspector. Because my app is so small and my form only has a single field I was able to work out the issue but do you have any advice how to trace a problem like this in larger apps?

@Alwigi
Copy link
Author

Alwigi commented Dec 10, 2013

The code seems to have been stripped out of my post, I have taken out all tags but you'll get the idea, it is this line in the template that causes the behaviour above:

div class=form-group if afFieldIsInvalid 'XXXX' has-error if

@aldeed
Copy link
Collaborator

aldeed commented Dec 10, 2013

I might be able to have it throw an error when the field you enter isn't part of the schema.

@aldeed aldeed closed this as completed in 41bd62f Dec 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants