facebook_pixelimg

Welcome to Our Help Desk.

You will get all the detailed information for your queries related to our Shopify apps.

INSTALL NOW

Callback after form submit get data value in function

Eye icon133 Views Watch iconSeptember 09, 2021

After form submit get the form data value in aftersubmit() function under additional tab

<script>
function afterSubmit(form){
var s = $(form).serialize();
var searchParams = new URLSearchParams(decodeURIComponent(s));
var x = decodeURIComponent(s);
var url_string = "https://cs-ecs.myshopify.com?"+x;
var url = new URL(url_string);
var c = url.searchParams.get("website");
console.log(c);
return true;
}
</script>

Like below screenshot:

NOTE: This option only for the advance plan of the app.