facebook_pixelimg

Welcome to Our Help Desk.

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

Callback after form submit get data value in function

Eye icon5914 Views Watch iconSeptember 09, 2021

After the form submit to get the form data value in aftersubmit() function under the 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.

Submit Your Query