{"action":"closed","issue":{"url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1116","labels_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1116/comments","events_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1116/events","html_url":"https://github.com/formvalidation/formvalidation/issues/1116","id":48235515,"number":1116,"title":" Showing only one message each time should  design as a config item","user":{"login":"weitaolee","id":4479969,"avatar_url":"https://avatars.githubusercontent.com/u/4479969?v=3","gravatar_id":"","url":"https://api.github.com/users/weitaolee","html_url":"https://github.com/weitaolee","followers_url":"https://api.github.com/users/weitaolee/followers","following_url":"https://api.github.com/users/weitaolee/following{/other_user}","gists_url":"https://api.github.com/users/weitaolee/gists{/gist_id}","starred_url":"https://api.github.com/users/weitaolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitaolee/subscriptions","organizations_url":"https://api.github.com/users/weitaolee/orgs","repos_url":"https://api.github.com/users/weitaolee/repos","events_url":"https://api.github.com/users/weitaolee/events{/privacy}","received_events_url":"https://api.github.com/users/weitaolee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formvalidation/formvalidation/labels/addon","name":"addon","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/formvalidation/formvalidation/milestones/11","labels_url":"https://api.github.com/repos/formvalidation/formvalidation/milestones/11/labels","id":805170,"number":11,"title":"v0.6.0","description":"","creator":{"login":"nghuuphuoc","id":4226036,"avatar_url":"https://avatars.githubusercontent.com/u/4226036?v=3","gravatar_id":"","url":"https://api.github.com/users/nghuuphuoc","html_url":"https://github.com/nghuuphuoc","followers_url":"https://api.github.com/users/nghuuphuoc/followers","following_url":"https://api.github.com/users/nghuuphuoc/following{/other_user}","gists_url":"https://api.github.com/users/nghuuphuoc/gists{/gist_id}","starred_url":"https://api.github.com/users/nghuuphuoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghuuphuoc/subscriptions","organizations_url":"https://api.github.com/users/nghuuphuoc/orgs","repos_url":"https://api.github.com/users/nghuuphuoc/repos","events_url":"https://api.github.com/users/nghuuphuoc/events{/privacy}","received_events_url":"https://api.github.com/users/nghuuphuoc/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":90,"state":"open","created_at":"2014-09-27T13:40:32Z","updated_at":"2015-01-07T07:01:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-11-10T06:57:54Z","updated_at":"2015-01-07T07:01:27Z","closed_at":"2015-01-07T07:01:27Z","body":"if a user want to use this feature , he must write so many code.\r\nplease design this as a config item.\r\n\r\n```javascript\r\n $('#oneForm').bootstrapValidator({\r\n            message: 'a message',\r\n            showOnlyOneMessage:true, //default false\r\n            feedbackIcons: {\r\n                valid: 'glyphicon glyphicon-ok',\r\n                invalid: 'glyphicon glyphicon-remove',\r\n                validating: 'glyphicon glyphicon-refresh'\r\n            },fields{...}\r\n   });\r\n.on('error.validator.bv', function(e, data) {\r\n            // $(e.target)    --> The field element\r\n            // data.bv        --> The BootstrapValidator instance\r\n            // data.field     --> The field name\r\n            // data.element   --> The field element\r\n            // data.validator --> The current validator name \r\n            data.element\r\n                .data('bv.messages')\r\n                // Hide all the messages\r\n                .find('.help-block[data-bv-for=\"' + data.field + '\"]').hide()\r\n                // Show only message associated with current validator\r\n                .filter('[data-bv-validator=\"' + data.validator + '\"]').show();\r\n        });\r\n```\r\n"}}