Apps

5 steps to managing your financial life on mobile

Customer using mobile phone

From banking and investments to financial documents and debt, this eBook covers the basics of simplifying your financial life on mobile. Please complete the form below to download your copy of this eBook.

I am...

Submit
$('form.contact_form div.submit_button').on('click', function (element) { var formComplete = 1; // default to "yes" // check inputs $('form.' + $(this).parent('form').attr('class') + ' input[type=text]').each(function() { var required = 0; var thisID = $(this).attr('id'); var formClass = $(this).parent('form').attr('class'); var thisLabel = $('form.' + formClass + ' label[for="' + thisID + '"]'); if (thisLabel.hasClass('required') && (this.value == null || this.value == '')) { if (formComplete == 1) { alert('Please complete all required fields!'); $('form.' + formClass + ' label.required').addClass('requiredDetails'); } formComplete = 0; return; } }); // check textareas $('form.' + $(this).parent('form').attr('class') + ' textarea').each(function() { var required = 0; var thisID = $(this).attr('id'); var formClass = $(this).parent('form').attr('class'); var thisLabel = $('form.' + formClass + ' label[for="' + thisID + '"]'); if (thisLabel.hasClass('required') && (this.value == null || this.value == '')) { if (formComplete == 1) { alert('Please complete all required fields and text areas.'); $('form.' + formClass + ' label.required').addClass('requiredDetails'); } formComplete = 0; return; } }); if (formComplete == 1) { // hide button // get the contents of the form var post_json = $(this).parent('form').serializeFormJSON(); window.global_form_element = $(this); var cache_response = ''; $.post(window.location.protocol + '//' + window.location.host + '/contact-form-processor.php', post_json, function(response) { response = response.replace(/[\n\r]/g, ''); // remove carria returns from json var response_object = JSON.parse(response); console.log('>>response<<'); console.log(response_object); window.file_download = ''; window.custom_markup = ''; $.each(response_object, function (i, value) { if (i == 'file_download') { window.file_download = value; } if (i == 'custom_markup') { window.custom_markup = value; } }); cache_response = response; if (response_object.error_message) { window.global_form_element.parent('form').prepend('

There was an error submitting your request. '+response_object.error_message+'

'); } else { if (window.custom_markup) { window.global_form_element.parent('form').replaceWith(window.custom_markup); } else { window.global_form_element.parent('form').replaceWith('

Thank you for your interest in our firm!

' + (window.file_download ? '

Download: Click Here

' : '')); } } }); } });