{"action":"created","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/261","labels_url":"https://api.github.com/repos/formvalidation/support/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/261/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/261/events","html_url":"https://github.com/formvalidation/support/issues/261","id":101397516,"number":261,"title":"Error messages to dialog block","user":{"login":"Ottiko","id":7046596,"avatar_url":"https://avatars.githubusercontent.com/u/7046596?v=3","gravatar_id":"","url":"https://api.github.com/users/Ottiko","html_url":"https://github.com/Ottiko","followers_url":"https://api.github.com/users/Ottiko/followers","following_url":"https://api.github.com/users/Ottiko/following{/other_user}","gists_url":"https://api.github.com/users/Ottiko/gists{/gist_id}","starred_url":"https://api.github.com/users/Ottiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ottiko/subscriptions","organizations_url":"https://api.github.com/users/Ottiko/orgs","repos_url":"https://api.github.com/users/Ottiko/repos","events_url":"https://api.github.com/users/Ottiko/events{/privacy}","received_events_url":"https://api.github.com/users/Ottiko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formvalidation/support/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/formvalidation/support/labels/update%20document","name":"update document","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/formvalidation/support/milestones/4","html_url":"https://github.com/formvalidation/support/milestones/v0.7.1","labels_url":"https://api.github.com/repos/formvalidation/support/milestones/4/labels","id":1243191,"number":4,"title":"v0.7.1","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":0,"state":"open","created_at":"2015-08-06T02:40:04Z","updated_at":"2015-08-24T14:28:16Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-08-17T11:06:17Z","updated_at":"2015-08-25T22:47:48Z","closed_at":null,"body":"My formValidation code is:\r\n```\r\n    $('#orderForm').formValidation({\r\n        framework: 'bootstrap',\r\n        err: {\r\n            container: '#messages'\r\n        },\r\n        icon: {\r\n          valid: 'fa fa-check',\r\n          invalid: 'fa fa-remove',\r\n          validating: 'fa fa-refresh fa-spin'\r\n        },\r\n        // This option will not ignore invisible fields which belong to inactive panels\r\n        excluded: ':disabled',\r\n        fields: {\r\n            'consulateType': {\r\n                validators: {\r\n                    notEmpty: {\r\n                        message: 'The Consulate Type is required'\r\n                    }\r\n                }\r\n            },\r\n            'Citizenship': {\r\n                validators: {\r\n                    notEmpty: {\r\n                        message: 'The Citizenship is required'\r\n                    }\r\n                }\r\n            },\r\n            'Fees': {\r\n                validators: {\r\n                    notEmpty: {\r\n                        message: 'The Fees is required'\r\n                    }\r\n                }\r\n            },\r\n            'Consulates': {\r\n                validators: {\r\n                    notEmpty: {\r\n                        message: 'The Consulates is required'\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    });\r\n```\r\n\r\nI have jquery-ui dialog block\r\n```\r\n<div id=\"dialog\" title=\"Error\" style=\"display: none;\">\r\n    *Here need output error message*\r\n</div>\r\n\r\n<script>\r\nfunction dialog() {\r\n  $(\"#dialog\").dialog({\r\n      dialogClass: \"alertCustom\",\r\n      resizable: false,\r\n      width: 600,\r\n      modal: true,\r\n      buttons: {\r\n          \"OK\": function () {\r\n              $(this).dialog(\"close\");\r\n          }\r\n      }\r\n  });\r\n};\r\n</script>\r\n```\r\n\r\nYou can see in formValidation code I added:\r\n```\r\nerr: {\r\n    container: '#messages'\r\n},\r\n```\r\nAnd then:\r\n```\r\n<div class=\"form-group\">\r\n    <div class=\"col-md-12\">\r\n        <div id=\"messages\"></div>\r\n    </div>\r\n</div>\r\n```\r\nMove to my dialog block:\r\n```\r\n<div id=\"dialog\" title=\"Error\" style=\"display: none;\">\r\n    <div class=\"form-group\">\r\n\t    <div class=\"col-md-12\">\r\n\t        <div id=\"messages\"></div>\r\n\t    </div>\r\n\t</div>\r\n</div>\r\n```\r\nIt's, but, how I can to call him and output error message?"},"comment":{"url":"https://api.github.com/repos/formvalidation/support/issues/comments/134763153","html_url":"https://github.com/formvalidation/support/issues/261#issuecomment-134763153","issue_url":"https://api.github.com/repos/formvalidation/support/issues/261","id":134763153,"user":{"login":"Ottiko","id":7046596,"avatar_url":"https://avatars.githubusercontent.com/u/7046596?v=3","gravatar_id":"","url":"https://api.github.com/users/Ottiko","html_url":"https://github.com/Ottiko","followers_url":"https://api.github.com/users/Ottiko/followers","following_url":"https://api.github.com/users/Ottiko/following{/other_user}","gists_url":"https://api.github.com/users/Ottiko/gists{/gist_id}","starred_url":"https://api.github.com/users/Ottiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ottiko/subscriptions","organizations_url":"https://api.github.com/users/Ottiko/orgs","repos_url":"https://api.github.com/users/Ottiko/repos","events_url":"https://api.github.com/users/Ottiko/events{/privacy}","received_events_url":"https://api.github.com/users/Ottiko/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T22:47:48Z","updated_at":"2015-08-25T22:47:48Z","body":"???"}}