Lead Capture Tools

wmflan39
Contributor

One form won't pass HubL variables to Thank-You page

Has something changed in the way forms redirect to a thank-you page upon form submission? For a few years I have been defining variables on my landing page based on parameter pairs in an incoming URL, then adding the variables to the redirect link for the fom on the landing page per:

 

 

 

?lead_origin={{process}}&appnote_filename={{appname}}&appnote_title={{apptitle}}

 

 

 

In the last few weeks, the variable values have been stripped from the URL to the thank-you page, arriving as

 

 

 

?lead_origin=&appnote_filename=&appnote_title=

 

 

 

This is recent behavior. Other identical channels still work as designed.

Has something changed? Do form redirects on new pages no longer allow for variables?

Thanks for any help you can offer.

WmF

3 Replies 3
wmflan39
Contributor

One form won't pass HubL variables to Thank-You page

Indra, others,

A visitor to our website selects from a list of application notes

https://www.mysite.com/application-notes 

If they select annealing:

https://www.mysite.com/application-notes /annealing 

and they request the application note: 'Application Note 123'.

https://www.mysite.com/appnote-request?lead_origin=annealing&appnote_filename=annealing_123&appnote_title=Application%20Note%20123

On the landing page 'AppNote Request [EN]

I define:

{% set process = request.query_dict.lead_origin %}
{% set apptitle = request.query_dict.appnote_title %}
{% set appname = request.query_dict.appnote_filename %}

They provide name and email in the form 'Appnotes Request [EN]'

which, upon submission, redirects to the fulfillment/thank-you page

https://www.mysite.com/application-note-thank-you?lead_origin= {{process}}&appnote_filename={{appname}}&appnote_title={{apptitle}}

On the fulfillment/thank-you page 'Application Note Thank You [EN]',

I define the same code in the head html as above.

 

Up until recently, we were able to deliver the document in an iframe on the thank-you page. Today the URL incoming to the thank-you page has been stripped

https://www.mysite.com/application-note-thank-you?lead_origin=&appnote_filename=&appnote_title=&submissionGuid=a59848e1-397b-4e05-aa84-899b2686abef  

 

I hope that's enough to give you a clue. I have tried creating new forms, landing pages, TY pages, added and removed spaces in the variable declarations, etc.

 

As I mentioned earlier, I have several other similar channels that still perform as expected.

0 Upvotes
Indra
Guide | Elite Partner
Guide | Elite Partner

One form won't pass HubL variables to Thank-You page

Hi @wmflan39,

 

Can you share some of your code how you add the url paramaters to the thank-you page? This can help solving your question.


Vet Digital - The Growth Agency | HubSpot Solutions Partner Agency

Did my post solve your question? Help the community by marking it as a solution
0 Upvotes
JenWeiss
HubSpot Employee
HubSpot Employee

One form won't pass HubL variables to Thank-You page

Hi @wmflan39 , 

 

Thank you for reaching out! I would like to tag in some of our champions in on this to get some insight:

@Indra@DanielSanchez , and @MiliJokanovic . 

 

Best, 

@JenWeiss 

Whether you're a student or a lifelong learner. Join StudentSpot to be inspired.