Error When loading form page
-
Hello, I really love this plugin! You guy really tried!
The only problem I’m having is for the plugin not to show errors, like javascript errors when I load the form page.
See the error, I’m getting below.
`”); $(“#accua-form___accua-form__1_56219334d7e63”).before(response_messages); } var throbbler = $(“”); var _ajax_submitting_accua_form___accua_form__1_56219334d7e63 = false; var timeout_handler = false; var timeout_count = 0; var fail_count = 0; var disabled_fields = false; var jsuuid_field = $(‘input[name=”_AccuaForm_jsuuid”]’, thisform); var jsuuid = jsuuid_field.val(); if (jsuuid == ”) { var chars = ‘0123456789abcdefghijklmnopqrstuvwxyz’.split(”); var radix = chars.length for (i = 0; i < 25; i++) { jsuuid += chars[0 | Math.random()*radix]; } jsuuid_field.val(jsuuid); } _handle_ajax_submit_accua_form___accua_form__1_56219334d7e63 = function() { if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { return false; } jQuery(“#accua-form___accua-form__1_56219334d7e63 .pfbc-error”).remove(); var valid_empty = true; var valid_mail = true; $(“#accua-form___accua-form__1_56219334d7e63 .pfbc-element”).removeClass(‘pfbc-invalid’); $(‘.accuaforms-field-required’, thisform).each(function(){ var field = $(this); var type = field.attr(‘type’); if (type === ‘checkbox’ || type === ‘radio’) { if ($(“[name='”+field.attr(“name”)+”‘]:checked”, “#accua-form___accua-form__1_56219334d7e63”).length > 0) { return true; } } else { var val = field.val(); if (typeof(val) == “string”) { if (! val.match(/^\s*$/)) { return true; } } else if ((typeof(val) == “object”) && val && (val.length > 0)) { return true; } else if (val) { return true; } } valid_empty = false; field.parents(“#accua-form___accua-form__1_56219334d7e63 .pfbc-element”).addClass(‘pfbc-invalid’); }); $(‘.pfbc-textbox[type=”email”]’, thisform).each(function(){ var field = $(this); if (field.val().match(/^\s*$/)) { return true; } if (field.val().match( /^([a-zA-Z0-9_.+%-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9])+$/ )) { return true; } valid_mail = false; field.parents(“#accua-form___accua-form__1_56219334d7e63 .pfbc-element”).addClass(‘pfbc-invalid’); }); if (valid_empty && valid_mail) { thisform.append(throbbler); _ajax_submitting_accua_form___accua_form__1_56219334d7e63 = true; $(‘input[name=”_AccuaForm_tentatives”]’, thisform).val(fail_count); disabled_fields = $(“input, textarea, button, select”).not(‘[type=”submit”]’).not(‘:disabled’); disabled_fields.attr(‘readonly’,’readonly’); timeout_count = 0; if (ajax_enabled) { $(“#submit_target_accua_form___accua_form__1_56219334d7e63″).attr(‘src’,”).removeAttr(‘src’); timeout_handler = setTimeout(_handle_ajax_submit_timeout_accua_form___accua_form__1_56219334d7e63, 5000); } return true; } else { var message = ”; if (!valid_empty) { message += ‘
‘ + “Please fill in all required fields” + ‘
‘; } if (!valid_mail) { message += ‘
‘ + “You have to enter a valid email address where required” + ‘
‘; } thisform.append(‘
‘ + message + ‘
‘); return false; } } _handle_ajax_submit_timeout_accua_form___accua_form__1_56219334d7e63 = function() { if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { if (timeout_count < 60) { timeout_count++; timeout_handler = setTimeout(_handle_ajax_submit_timeout_accua_form___accua_form__1_56219334d7e63, 500); _handle_ajax_submit_complete_accua_form___accua_form__1_56219334d7e63(); } else { timeout_handler = false; _handle_ajax_submit_complete_accua_form___accua_form__1_56219334d7e63(); if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { _handle_ajax_submit_response_accua_form___accua_form__1_56219334d7e63(false); } } } } _handle_ajax_submit_complete_accua_form___accua_form__1_56219334d7e63 = function() { if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { var response = false; try { var responsedoc = frames[‘submit_target_accua_form___accua_form__1_56219334d7e63’].document; if (responsedoc.getElementById(“accua-form-ajax-response-loaded”)) { response = $.parseJSON(responsedoc.getElementById(“accua-form-ajax-response”).innerHTML); } } catch (err) { response = false; } if (response) { return _handle_ajax_submit_response_accua_form___accua_form__1_56219334d7e63 (response); } } } _handle_ajax_submit_message_accua_form___accua_form__1_56219334d7e63 = function(message) { if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { var response = false; try { response = $.parseJSON(message.data); if (response.jsuuid != jsuuid || response.buildID != “accua-form___accua-form__1_56219334d7e63”) { response = false; } } catch (err) { response = false; } if (response) { return _handle_ajax_submit_response_accua_form___accua_form__1_56219334d7e63 (response); } } } _handle_ajax_submit_response_accua_form___accua_form__1_56219334d7e63 = function(response) { if (_ajax_submitting_accua_form___accua_form__1_56219334d7e63) { if(response && typeof(response) == “object” && typeof(response.submitted) == “boolean”) { response_messages.html(response.messages); if (response.submitted) { if (response.valid) {$(‘#accua-form___accua-form__1_56219334d7e63’).hide(); } else {var errorSize = response.errors.length; var errorHTML = ‘But when I reload the page it won’t show the errors anymore. And I even deactivated all my plugins yet still the same.
What I’m I doing wrong?
- The topic ‘Error When loading form page’ is closed to new replies.