November 1st, 2015

You’re Worth It! Day Retreat for Women

Please use this form to request more information about the You’re Worth It! Day Retreat for Women presented by Danielle Bean.

jQuery(document).ready(function($) { jQuery(“#preloader-omkhfs”).fadeOut(1500, function () { jQuery(“#ecf-form-omkhfs”).fadeIn(300); }); $( ‘.ladda-button’ ).ladda( ‘bind’ ); $(function() { // Validation $(“#form-omkhfs”).validate( { // Rules for form validation rules: { name0:{required: true},email1:{required: true,email: true},text2:{required: false},text3:{required: true},message4:{required: true,minlength: 10}, }, // Messages for form validation messages: { name0:{required: “This field is required”},email1:{required: “This field is required”},text2:{required: “This field is required”},text3:{required: “This field is required”},message4:{required: “This field is required”} },
// Do not change code below
errorPlacement: function(error, element) {
error.insertAfter(element.parent());
},

submitHandler: function (form) {
ecf_onsubmit(jQuery(‘.form-omkhfs’));

},

invalidHandler: function (form) {
$.ladda( ‘stopAll’ );
},

onkeyup: false,
onfocusout: false,
onclick: false

});
});

/* Form Submit ( Ajax ) */
function ecf_onsubmit(form){

if(form.attr(‘action’)==’#’){

data = {};
eldat = [];
data[‘action’] = ‘ecf_deliver_mail’;
data[‘formid’] = ‘7510’;
data[‘security’] = ‘9ffc1a592d’;

jQuery(‘input, textarea’, form).each(function(key){

items = {};

if (typeof $(this).data(‘type’) === ‘undefined’) { return true; }

items[‘type’] = $(this).data(‘type’);
items[‘label’] = $(this).data(‘label’);
items[‘value’] = this.value;
items[‘name’] = this.name;

eldat.push(items);

}); // END form).each(function(key){

data[‘allelmnt’] = JSON.stringify(eldat);

submitForm();

return false;

} // End if(form.attr(‘action’)==’#’){

} // End ecf_onsubmit

// Start submitForm
function submitForm() {

jQuery.ajax({
url: ‘http://daniellebean.com/wp-admin/admin-ajax.php’,
type: ‘POST’,
dataType: ‘json’,
data: data,
success: function(data) {

if(data.Ok==true) {
// success
$(“#form-omkhfs”).get(0).reset();

if(data.msg == ‘redirect’) {
window.location = “http://daniellebean.com/retreat”;
} else {
notifyme(‘Thank you for your interest! We will be in touch soon!’, ‘n’, ‘success’, ‘left middle’);
}

}
else {
$(“#form-omkhfs”).get(0).reset();
notifyme(data.msg, ‘n’, ‘error’, ‘left middle’);
}

$.ladda( ‘stopAll’ );

}
});

} // End submitForm

// Notify
function notifyme(msg, b, typ, pos) {
if (b == ‘n’) {
b = ‘cf-submittedomkhfs’;
} else {
b = ‘atcomkhfs’;
}

$(“#”+b).gnotify(msg,{
style: “nbootstrap”,
elementPosition: pos,
className: typ
});

msg = null;
typ = null;

}

});

You’re Worth It! Day Retreat for Women
NameEmailOrganizationCity, StateMessage

SEND

Thank you for your interest!