Pass the value of a form field to display on Wordpress Thank you page redirect | Community
Skip to main content
New Participant
March 8, 2024
Solved

Pass the value of a form field to display on Wordpress Thank you page redirect

  • March 8, 2024
  • 1 reply
  • 2856 views

Hi all,

I've created a guided landing page and have set to redirect to an external page after the form submission.

I'd like to pass the value of the FirstName field and then to render it on a Wordpress page with the message saying something like.


"Thank you, {FirstName} for getting in touch..."

Does anyone know if this is possible? I tried this tutorial here but it I couldn't get the value to append to the URL:

https://blog.teknkl.com/append-fields-to-thank-you-url/

 

Any help would be much appreciated! 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Nothing wrong with the code in that post, it’s well tested.

 

What’s the URL of the page you tried this on?

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
March 8, 2024

Nothing wrong with the code in that post, it’s well tested.

 

What’s the URL of the page you tried this on?

jehuty15Author
New Participant
March 13, 2024

Hi @sanfordwhiteman Thank for your reply!

 

The code is good so I know my implementation/setup is causing the issue. 😅

 

This is my landing page here: https://you.oxfam.org.au/Test-first-name-variable.html
and for testing I've set up a redirect to https://www.oxfam.org.au/marketo-thank-you/ 

 

Your solution makes perfect sense but for the life of me I can't figure out what i'm missing to pass the values to the URL parameter. 

Sorry, i'm a bit of a newb with these marketo dynamic stuff.

 

Any help would be much appreciated 😃

SanfordWhiteman
New Participant
March 14, 2024
Put the script just before the closing </body> tag. Right now you have it in the wrong place as it's trying to run before MktoForms2 is available, and erroring out as a result.