Softr to Make.com: Webhook and webhook respond for redirect

Dear all,

I see different threats with questions on a Softr (Form) to Make.com webhook with a webhook response back to Softr Form with a redirect URL. But I cannot make it work, the user is not redirected… could someone post the complete “guide”? See some hint below (Now with google.com url for testing) in the end I will make a redirect to a Stripe payment intent…

My make scenario: (wit Webhook to make in Softr Form)

I also tried putting in the custom Header with Key: Content-Type and value: application/json but did not solve it…

himage

image1392×502 56.3 KB

In the Custom code footer of my form1 page:

<script>
    window.addEventListener('submit-form-success-form1', (e) => {
        const response = e.detail.response || {};
        const data = response.data;
        if (data && data.redirect) {
            window.location.href = data.redirect;
        }
    });
</script>

What do i do here? (not my main problem i think…)

image

image430×508 15.6 KB

Hey @JanPaul Thanks a lot for all these details, the action of the form can be set on refresh form, and your response module on Make.com looks fine, Can you just please make sure that the form’s ID is correct in the custom code you added?

To do so please click on the form and on the right hand side panel you will see its ID like mentioned in the screenshot attached, so if the block’s ID is form2 you need to adjust it on the custom code.

Looking forward to hearing from you.

Thanks! im gonna be honesed here: i messed up myself. did not start the Make automation correctly :wink: . works now!