{"action":"opened","issue":{"url":"https://api.github.com/repos/AmpersandJS/ampersand-form-view/issues/51","labels_url":"https://api.github.com/repos/AmpersandJS/ampersand-form-view/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/AmpersandJS/ampersand-form-view/issues/51/comments","events_url":"https://api.github.com/repos/AmpersandJS/ampersand-form-view/issues/51/events","html_url":"https://github.com/AmpersandJS/ampersand-form-view/issues/51","id":107563869,"number":51,"title":"Example of multi-field validation?","user":{"login":"bryanspears","id":513646,"avatar_url":"https://avatars.githubusercontent.com/u/513646?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanspears","html_url":"https://github.com/bryanspears","followers_url":"https://api.github.com/users/bryanspears/followers","following_url":"https://api.github.com/users/bryanspears/following{/other_user}","gists_url":"https://api.github.com/users/bryanspears/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanspears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanspears/subscriptions","organizations_url":"https://api.github.com/users/bryanspears/orgs","repos_url":"https://api.github.com/users/bryanspears/repos","events_url":"https://api.github.com/users/bryanspears/events{/privacy}","received_events_url":"https://api.github.com/users/bryanspears/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T17:48:19Z","updated_at":"2015-09-21T17:48:19Z","closed_at":null,"body":"A use case: I have two, numeric text inputs. One cannot be greater than the other. How would I validate that using ampersand input/form/whatever and still have input errors/messages work without extra code?\r\n\r\nIf you do it at the input level using test methods (which only have local value available), you have to use external variables (self.model or something). If you do it at the form level it's the same issue where data available internally to the object isn't enough. If you do it at the model level (with validate()) then you have the issue if manually triggering an invalid state on inputs.\r\n\r\nI really hope someone has a simple answer for this. I haven't found one yet."}}