MutualMarkets is an invitation only marketplace. Soon, we will release our Alpha version software. Be among the first members to have access!
Please provide us with the following information and we will get right back to you.
Success!
Thanks for contacting us. Our team has received your message and will contact you as soon as possible.
Oops! Something went wrong while submitting the form.
var Webflow = Webflow || [];
Webflow.push(function() {
// unbind webflow form handling
$(document).off('submit');
/* Any form on the page */
$('form').submit(function(e) {
e.preventDefault();
const $form = $(this); // The submitted form
const $submit = $('[type=submit]', $form); // Submit button of form
const buttonText = $submit.val(); // Original button text
const buttonWaitingText = $submit.attr('data-wait'); // Waiting button text value
const formMethod = $form.attr('method'); // Form method (where it submits to)
const formAction = $form.attr('action'); // Form action (GET/POST)
const formRedirect = $form.attr('data-redirect'); // Form redirect location
const formData = $form.serialize(); // Form data
// Set waiting text
if (buttonWaitingText) {
$submit.val(buttonWaitingText);
}
$.ajax(formAction, {
data: formData,
method: formMethod,
headers: {
'x-api-key': 'UwNzXqrfOf8OJ1H5VguRSaA5S7mHQaHo2608LYvr'
}
})
.done((res) => {
// If form redirect setting set, then use this and prevent any other actions
if (formRedirect) { window.location = formRedirect; return; }
$form
.hide() // optional hiding of form
.siblings('.w-form-done').show() // Show success
.siblings('.w-form-fail').hide(); // Hide failure
})
.fail((res) => {
$form
.siblings('.w-form-done').hide() // Hide success
.siblings('.w-form-fail').show(); // show failure
})
.always(() => {
// Reset text
$submit.val(buttonText);
});
});
});