').val();formData.name=$("#name").val();formData.email=$("#email").val();formData.telephone=$("#telephone").val();formData.nature=$("#nature").val();formData.availability=$("#availability").val();formData.optIn=$("#chkOptIn").is(":checked")?"opted in":"opted out";formData.source='https://mc-co.co.uk/blog/a-changing-regulatory-landscape';$.ajax({type:'post',url:'/blog-form-handler',data:formData}).done(function(result){if(result==="success"){$form.empty().append($('
Thank you. Your details have been submitted.
'));try{var map=new OTMap();map.put("ti","Submit button clicked");map.put("name",formData.name);map.put("email",formData.email);map.put("telephone",formData.telephone);map.put("nature",formData.nature);map.put("availability",formData.availability);OTLogService.sendEvent("Blog form submit",map);}catch(err){}}else{alert("Form send failed. Please try again.");$submit.removeClass("disabled").prop('disabled',false).val("Submit");}});return false;}});})