{"action":"opened","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1135","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1135/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1135/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1135/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1135","id":101128248,"number":1135,"title":"Add validation error in an autoform plugin.","user":{"login":"jimmiebtlr","id":1325560,"avatar_url":"https://avatars.githubusercontent.com/u/1325560?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmiebtlr","html_url":"https://github.com/jimmiebtlr","followers_url":"https://api.github.com/users/jimmiebtlr/followers","following_url":"https://api.github.com/users/jimmiebtlr/following{/other_user}","gists_url":"https://api.github.com/users/jimmiebtlr/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmiebtlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmiebtlr/subscriptions","organizations_url":"https://api.github.com/users/jimmiebtlr/orgs","repos_url":"https://api.github.com/users/jimmiebtlr/repos","events_url":"https://api.github.com/users/jimmiebtlr/events{/privacy}","received_events_url":"https://api.github.com/users/jimmiebtlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T01:00:17Z","updated_at":"2015-08-15T01:00:17Z","closed_at":null,"body":"I'm having trouble adding a validation error to a field on submit.  I've tried adding an error in a hook, but it doesn't seem to be having any affect.\r\n\r\n    if( template.afSlingshot.progress() < 100 ){\r\n      console.log( \"progress error\", template.data.atts[\"data-schema-key\"] );\r\n      this.validationContext.addInvalidKeys([{\r\n        name: template.data.atts[\"data-schema-key\"], \r\n        value: \"uploadInProgress\"\r\n      }]);\r\n    }\r\n"}}