{"action":"created","issue":{"url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/152","repository_url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard","labels_url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/152/comments","events_url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/152/events","html_url":"https://github.com/VinceG/twitter-bootstrap-wizard/issues/152","id":121752736,"number":152,"title":"Returning true from OnNext does not advance the wizard. ","user":{"login":"rhythmicdevil","id":1063198,"avatar_url":"https://avatars.githubusercontent.com/u/1063198?v=3","gravatar_id":"","url":"https://api.github.com/users/rhythmicdevil","html_url":"https://github.com/rhythmicdevil","followers_url":"https://api.github.com/users/rhythmicdevil/followers","following_url":"https://api.github.com/users/rhythmicdevil/following{/other_user}","gists_url":"https://api.github.com/users/rhythmicdevil/gists{/gist_id}","starred_url":"https://api.github.com/users/rhythmicdevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhythmicdevil/subscriptions","organizations_url":"https://api.github.com/users/rhythmicdevil/orgs","repos_url":"https://api.github.com/users/rhythmicdevil/repos","events_url":"https://api.github.com/users/rhythmicdevil/events{/privacy}","received_events_url":"https://api.github.com/users/rhythmicdevil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T17:12:12Z","updated_at":"2016-04-01T15:43:42Z","closed_at":"2016-04-01T15:43:42Z","body":"The return value is false, the wizard does not advance as expected. When the return value is true the wizard does not advance. My expectation is that the wizard would advance to the next step. Here is content of my onNext() function. Can you tell me if I am doing something wrong or if this is a bug?\r\n\r\n```\r\n  \t\tonNext: function(tab, navigation, index){\r\n  \t\t\t/*\r\n  \t\t\t * tracking flag\r\n  \t\t\t */\r\n  \t\t\tvar valid = true;\r\n  \t\t\t/*\r\n  \t\t\t * Subjects in wizard order\r\n  \t\t\t */\r\n  \t\t\tvar subjects = [\r\n\t\t\t\t\"localIpAddress\",\r\n\t\t\t\t\"subnetMask\",\r\n\t\t\t\t\"dhcpEnabled\",\r\n\t\t\t\t\"dhcpStartingIp\",\r\n\t\t\t\t\"dhcpEndingIp\"\r\n  \t\t\t];\r\n  \t\t\t/*\r\n  \t\t\t * Get the form data\r\n  \t\t\t */\r\n  \t\t\tvar lanConfigurationDto = {\r\n  \t\t\t\t\tlocalIpAddress : $('input[name=\"localIpAddress\"]').val(),\r\n  \t\t\t\t\tsubnetMask: $('input[name=\"subnetMask\"]').val(),\r\n  \t\t\t\t\tdhcpEnabled: $('input[name=\"dhcpEnabled\"]').is(':checked') ? true : false,\r\n  \t\t\t\t\tdhcpStartingIp: $('input[name=\"localIpAddress\"]').val(),\r\n  \t\t\t\t\tdhcpEndingIp\t: $('input[name=\"localIpAddress\"]').val()\r\n  \t\t\t}\r\n  \t\t\t\r\n  \t\t\tif(index == 1){\r\n  \t\t\t\tvalidate(subjects[0], lanConfigurationDto, function(res){ valid = res; });\r\n  \t\t\t} else if(index == 2) {\r\n  \t\t\t\tvalidate(subjects[1], lanConfigurationDto, function(res){ valid = res; });\r\n  \t\t\t}\r\n  \t\t\t\r\n  \t\t\treturn valid; \r\n  \t\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/comments/204442476","html_url":"https://github.com/VinceG/twitter-bootstrap-wizard/issues/152#issuecomment-204442476","issue_url":"https://api.github.com/repos/VinceG/twitter-bootstrap-wizard/issues/152","id":204442476,"user":{"login":"VinceG","id":195199,"avatar_url":"https://avatars.githubusercontent.com/u/195199?v=3","gravatar_id":"","url":"https://api.github.com/users/VinceG","html_url":"https://github.com/VinceG","followers_url":"https://api.github.com/users/VinceG/followers","following_url":"https://api.github.com/users/VinceG/following{/other_user}","gists_url":"https://api.github.com/users/VinceG/gists{/gist_id}","starred_url":"https://api.github.com/users/VinceG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinceG/subscriptions","organizations_url":"https://api.github.com/users/VinceG/orgs","repos_url":"https://api.github.com/users/VinceG/repos","events_url":"https://api.github.com/users/VinceG/events{/privacy}","received_events_url":"https://api.github.com/users/VinceG/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T15:43:42Z","updated_at":"2016-04-01T15:43:42Z","body":"@rhythmicdevil you dont need to return true to advance, return false if you want to prevent advancement.\r\n\r\nexample:\r\nhttp://vinceg.github.io/twitter-bootstrap-wizard/examples/basic-formvalidation.html"}}