Streaming live at 10am (PST)

Dynamically set Redirect URL in forms


#1

Hello! Trying to capture email via forms before sending user to a redirect URL upon forum completion.

The list of links on the page is a dynamic list and depending upon which link they click I want to send them to that URL upon form completion. Is that doable?

I tried setting the form attribute "data-redirect" to URL of the clicked link, but it isn't working. It just goes to the original redirect URL I have set in webflow. (https://s3.amazonaws.com/arcmailsite/ArcMail_LoeRes.pdf)

$('a.display-inline').click(function(event){
    event.preventDefault();
    var value = $(this).attr("href");
    $( ".content" ).attr( "data-redirect", value);
    $('.popup-div').fadeIn();
  }             
);

Preview link. It's the "Premium Content" page (http://arcmail.webflow.io/premium-content) - https://preview.webflow.com/preview/arcmail?preview=2f6f2f2d839f1cf617adf9f02a35d168

Any ideas? Thanks so much!


Form redirect to dynamic URL?
#2

#3

#4

I have a dynamic template that is using collection data to create a landing page. I need to have the form submit and redirect to a URL with query parameters that contain the dynamic campaign name.

For example, /thank-you?campaign={slug}

Currently there doesn’t seem to be a way to add dynamic parameters in a redirect. Is it possible?