Skip to main content

Hello,

I have a form that redirects respondents to different URLs based on their answers—over 80 possible URLs. I also created a Gmail email template via Zapier that includes a button for respondents to return to the original URL.

How can I capture the redirect URL and dynamically insert it into the email? Would using a tag like {{redirecturl}} with a hidden field work? Any guidance would be appreciated.

Thank you!

Hi @jyeps Wow! Talk about a setup! @john.desborough might have some suggestions using variables for this!


@jyeps - just to clarify, are you using Typeform’s native redirect upon completion to send people to the ‘redirect url’ you are describing, OR are you wanting to pass link in notification?? or something else.. 

 

here’s how i have done something similar sounding, in the past: 

here’s two variables pointing to different urls

three questions and a simple ending

followups set like: 

 triggers are set like this, respectively for both links

and the email with the link. 

and the email that comes out - here’s the sample to me.. 

 

 

 

one thing you CANNOT do is use the native redirect feature of typeform and include something like this: v_link=https://linkname…. 

won’t let you include a link within the redirect url

 

des


Hey @john.desborough thank you for the reply!

So I am not using typeforms native responder, i’m trying to use Zapier with Gmail because the email notification that is being sent out to the customer is composed in html (I’m not sure if typeform’s native responder can do that)

In the email, there is a button with a link:

    <div style="text-align: center; margin-bottom: 20px;">
<a href="{{redirecturl}}" style="display: inline-block; padding: 15px 30px; color: #fff; background-color: #c33a22; text-decoration: none; border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 14pt; font-weight: 600;">YOUR PRICING</a>
</div>

Where the {{redirecturl}} is the URL link we want on the button.

Trying to make it so that the redirect link in the typeform the user is sent to is also included in the response email so that the customer can refer to this email and go back to the URL they were redirected to instead of having to go through the form again.

Here’s the form for reference

And each of the endings will take you to a URL as follows:

 

 

And each ending has something similar:

 

Trying to figure out the best way to accomplish that.


@jyeps - the only thing off the top of my head is using a logic rule to replace the variable 

ie if qX = A then replace v_redirecturl with ‘https://site.com/pagename

 

i use v_ in front of it to remind me it’s a variable lol. 

 

but the hardcoding is necessary - you can’t concatenate text and a variable within a variable.. 

 

if that makes sense

des


I think i’m getting close, let me know if you think i’m on the right path

I’ve configured one of the redirect URL endings (Split Systems) to send a webhook to Zapier:

 

On Zapier I have this code that will capture the redirect url

 

 

And on Typeform the URL that is generated by the answers for split system is this:

 

 

But as you can see on the right where the redirect url is supposed to be, it doesn’t work as intended, the button doesnt goto the URL above

 

 

Not sure if there’s something wrong with the javascript or if there is a better way to recall that URL from the webhook?


Reply