diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 45bd1fdb7..23b897689 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -197,7 +197,7 @@ function activateFirstTabWithError(sFormId) { $tabs.each(function (index, element) { var $fieldsWithError = $(element).find(".form_validation"); - if ($fieldsWithError.length > 0) + if ($fieldsWithError.length > 0 && ($tabsContainer.tabs("instance") !== undefined)) { $tabsContainer.tabs("option", "active", index); return false;