1. Home
  2. Knowledge Base
  3. Tips & Tricks
  4. Pass Optin Form Parameters to Thank You Page

Pass Optin Form Parameters to Thank You Page

This article will guide you through how to pass URL parameters to the optin form thank you page (the next page after the optin form). 

Caution: This article deals with advanced features/functions of OptimizePress which may require knowledge of coding / HTML or web development. Please contact your web developer for assistance with this.

First, you’ll want to be sure you read the following article, and familiarize yourself with using the Get Parameters plugin. You will also need to launch the editor and have an optin form available on the optin page.

STEP 1: 

Open the editor for the optin page, and click on the name field.
– click the input icon
– click on “Validation”
– Put the parameter name in “URL Mapping” (in this example I used first-name for the parameter)

STEP 2: 

Click on the email field and repeat the process in Step 1 above, only just make sure you use another parameter name such as email instead of first-name

STEP 3:

Make sure you have a thank you page redirection added in the optin form integration settings, and “Autofill form fields” are turned on like you see here: 


STEP 4: 

When using the first-name and email parameters for the URL Mapping, after you submit the optin form, the thank you page URL will be appended with those parameters like this:

If you want to use those parameters on the page, then you can use shortcodes built into OptimizePress.

In the example above, I would use these shortcodes: 

For first name field:

[op3_get_param param="first-name"]

For email field: 

[op3_get_param param="email"]

You can see here how this looks if I use those on the thank you page:

You can also use this method to pass parameters to pages outside of your website if they are able to accept the parameters. 

NOTE: If you want to do this for hidden fields, it all works the same, but you have to make sure the hidden field is not hidden while editing the page.

You can make a hidden field by clicking the icon to the right of the field when you go into the optin form advanced options in the sidebar. 
Make sure it is not hidden so you can add the URL mapping parameter, and then make it hidden again. Refer to the article at the top of this page if you want to learn how to prefill fields (it works on hidden fields as well).

If you have any questions about this please let us know by submitting a ticket. 

Updated on June 27, 2023

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
Contact Support