registreren
if (typeof window['rm_multipage'] == 'undefined') { rm_multipage = { global_page_no_form_2_1: 1 }; } else rm_multipage.global_page_no_form_2_1 = 1; function gotonext_form_2_1(){ /* Making sure action attribute is empty */ jQuery("form.rmagic-form").attr("action",""); maxpage = 1 ; var form_object= jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1).closest("form"); var submit_btn= form_object.find("[type=submit]:not(.rm_noscript_btn)"); jQuery.validator.setDefaults({errorClass: 'rm-form-field-invalid-msg', ignore:':hidden,.ignore,:not(:visible),.rm_untouched',wrapper:'div', errorPlacement: function(error, element) { //error.appendTo(element.closest('.rminput')); error.appendTo(element.closest('div')); }, rules: { password: { required: true, minlength: 7 }, password_confirmation: { required: true, equalTo: "#rm_reg_form_pw_2_1" }, email_confirmation: { required: true, equalTo: "#rm_reg_form_email_2_1" } }, messages: { password_confirmation: { equalTo: "U wachtwoorden komen niet overeen. Probeer het nog eens." }, email_confirmation: { equalTo: "Emails do not match" } } }); form_object.find('input.rm_price_field_quantity').each(function() { if(typeof jQuery(this).attr('min') == 'undefined') { jQuery(this).attr('min', 0); } }); if(form_object.find('.rm_privacy_cb').is(':visible')) { if(!form_object.find('.rm_privacy_cb').prop('checked')){ //form_object.find('.rm_privacy_cb').trigger('change'); form_object.find('.rm_privacy_cb').focus(); form_object.find('.rm_privacy_cb').parent().parent().siblings('div.rm-form-error-message').show(); return false; } } if(jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1+" :input").length > 0) { var elements_to_validate= jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1+" :input"); var valid = elements_to_validate.valid(); elements_to_validate.each(function(){ var if_mobile= jQuery(this).attr('data-mobile-intel-field'); if(if_mobile){ var tel_error = rm_toggle_tel_error(this.dataset.validnumber,jQuery(this),jQuery(this).data('error-message')); if(tel_error){ valid= false; } else { jQuery(this).val(this.dataset.fullnumber); } } }); if(!valid) { setTimeout(function(){ submit_btn.prop('disabled',false); submit_btn.addClass('rm-submit-btn-show'); }, 1000); var error_element= jQuery(document).find("input.rm-form-field-invalid-msg")[0]; if(error_element){ error_element.focus(); } return false; } } /* Server validation for Username and Email field */ for(var i=0;i<rm_validation_attr.length;i++){ var validation_flag= true; jQuery("[" + rm_validation_attr[i] + "=0]").each(function(){ validation_flag= false; return false; }); if(!validation_flag) return; } rm_multipage.global_page_no_form_2_1++; /*skip blank form pages*/ while(jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1+" :input").length == 0) { if(maxpage <= rm_multipage.global_page_no_form_2_1) { if(jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1+" :input").length == 0){ jQuery("#rm_next_form_page_button_2_1").prop('type','submit'); jQuery("#rm_prev_form_page_button_2_1").prop('disabled',true); return; } else break; } rm_multipage.global_page_no_form_2_1++; } if(maxpage = rm_multipage.global_page_no_form_2_1) { if(jQuery("#rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1+" :input").length == 0){ rm_multipage.global_page_no_form_2_1 = 1; jQuery("#rm_prev_form_page_button_2_1").prop('disabled',true); return; } else break; } rm_multipage.global_page_no_form_2_1--; } jQuery(".rmformpage_form_2_1").each(function (){ var visibledivid = "rm_form_page_form_2_1_"+rm_multipage.global_page_no_form_2_1; if(jQuery(this).attr('id') == visibledivid) jQuery(this).show(); else jQuery(this).hide(); }); if(rm_multipage.global_page_no_form_2_1 <= 1) { rm_multipage.global_page_no_form_2_1 = 1; jQuery("#rm_prev_form_page_button_2_1").prop('disabled',true); } jQuery('html, body').animate({ scrollTop: (jQuery('.rmformpage_form_2_1').first().offset().top) },500); }label span.required { color: #B94A48; }span.help-inline, span.help-block { color: #888; font-size: .9em; font-style: italic; }
jQuery(document).ready(function() { jQuery("#form_2_1").bind("submit", function(){ //jQuery(this).find("input[name=rm_slug]").attr("value",jQuery(this).find("input[name=submit]").attr("value")); jQuery(this).find("input[type=submit]").attr("disabled", "disabled"); });jQuery('#form_2_1-element-6').change(function(){ var data = { 'action': 'rm_user_exists', 'rm_sec_nonce': '16bcd220b6', 'rm_slug': 'rm_user_exists', 'username': jQuery(this).val(), 'attr': 'data-rm-valid-username', 'form_id': '2' }; rm_user_exists(this,rm_ajax_url,data,'This username has already been taken. Please try again with a different username.'); }); jQuery("#rm_reg_form_email_2_1").change(function(){ var data = { 'action': 'rm_user_exists', 'rm_sec_nonce': '16bcd220b6', 'rm_slug': 'rm_user_exists', 'email': jQuery(this).val(), 'attr': 'data-rm-valid-email', 'form_id':"2" }; rm_user_exists(this,rm_ajax_url,data); }); });
Note: It looks like JavaScript is disabled in your browser. Some elements of this form may require JavaScript to work properly. If you have trouble submitting the form, try enabling JavaScript momentarily and resubmit. JavaScript settings are usually found in Browser Settings or Browser Developer menu.
.rm_next_btn {display:none !important}
.rm_noscript_btn {display: block !important}