{"action":"created","issue":{"url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/102","labels_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/102/comments","events_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/102/events","html_url":"https://github.com/ghiscoding/angular-validation/issues/102","id":127243965,"number":102,"title":"Immediate form validation with dependant input elements","user":{"login":"tpeter1985","id":16336536,"avatar_url":"https://avatars.githubusercontent.com/u/16336536?v=3","gravatar_id":"","url":"https://api.github.com/users/tpeter1985","html_url":"https://github.com/tpeter1985","followers_url":"https://api.github.com/users/tpeter1985/followers","following_url":"https://api.github.com/users/tpeter1985/following{/other_user}","gists_url":"https://api.github.com/users/tpeter1985/gists{/gist_id}","starred_url":"https://api.github.com/users/tpeter1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpeter1985/subscriptions","organizations_url":"https://api.github.com/users/tpeter1985/orgs","repos_url":"https://api.github.com/users/tpeter1985/repos","events_url":"https://api.github.com/users/tpeter1985/events{/privacy}","received_events_url":"https://api.github.com/users/tpeter1985/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-18T15:00:08Z","updated_at":"2016-01-21T18:23:45Z","closed_at":"2016-01-21T18:23:45Z","body":"Hey it's me again.\r\n\r\nI use your library and I think it's very cool.\r\nI currently have a problem which I can't handle.\r\n\r\nI have a list for entering absences.\r\nWhen all data for one entry is given I can check if the user entered too many entries for the given Date.\r\n\r\nMy problem is that I can only validate this immediately and show a message by adding the same validation-check to every input element.\r\nBut the result is showing the same message below every input element.\r\n\r\nI created a simplified example on Plunker: http://plnkr.co/edit/FG9uyr1l3cEY7QSehQkr?p=preview\r\n\r\n1. Go to first line, for day enter \"1\" and select \"1 Day Holiday\".\r\n2. Go to second line, for day enter \"1\" and select \"1 Day Holiday\".\r\n\r\nBy clicking submit I see the message under every input element.\r\n\r\n\r\nDo you have any idea how to handle this?\r\n\r\nIn my mind it could be handled by executing the validation of an element via the service.\r\nYou would only have to put the validation to the day input element and when absence type changes you can refresh the day validation via a service call.\r\nI created a simple Plunker example to show how my idea looks like:\r\nhttp://plnkr.co/edit/o1fftbnmRfjScEDmi7ZH?p=preview\r\n\r\nFYI: In my real application the table has more columns and I use remote validation too."},"comment":{"url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/comments/173663924","html_url":"https://github.com/ghiscoding/angular-validation/issues/102#issuecomment-173663924","issue_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/102","id":173663924,"user":{"login":"ghiscoding","id":643976,"avatar_url":"https://avatars.githubusercontent.com/u/643976?v=3","gravatar_id":"","url":"https://api.github.com/users/ghiscoding","html_url":"https://github.com/ghiscoding","followers_url":"https://api.github.com/users/ghiscoding/followers","following_url":"https://api.github.com/users/ghiscoding/following{/other_user}","gists_url":"https://api.github.com/users/ghiscoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ghiscoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghiscoding/subscriptions","organizations_url":"https://api.github.com/users/ghiscoding/orgs","repos_url":"https://api.github.com/users/ghiscoding/repos","events_url":"https://api.github.com/users/ghiscoding/events{/privacy}","received_events_url":"https://api.github.com/users/ghiscoding/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T18:23:45Z","updated_at":"2016-01-21T18:23:45Z","body":"Merged your code and updated to [revision 1.4.21](https://github.com/ghiscoding/angular-validation/releases/tag/v1.4.21). Thanks for the PR"}}