Have you ever thought of implementing an application like this –
- Accept user’s name and email address through one call-to-action
- Redirect user to another page (Thank you page with another button with a new offer)
- When the user clicks on this button, the user’s name and email submitted earlier is fetched and submitted through this button too.
This is certainly possible using Convert Pro settings along with some JS code.
Now, since we need to add JS code, it is important that we activate the Advanced Scripts addon. You’ll find this addon under Convert Pro Settings -> Addon -> Activate the Advanced Script addon as shown in the screenshot.

Let us now proceed creating the required call-to-actions and setting them up.
1. Create a call-to-action and add the required fields in it. (We will add an email and name field)

2. Click on the button, open the Action section and choose the button action as “Submit and Go to URL“. You can enter the destination URL in the respective field.

3. Since we want to pass the lead data through Get parameter, enable the “Pass through Get Parameter” option.

These steps above will make sure that the data you obtain through the form and submit using that particular button is passed as parameters in the destination URL.
Now, let us proceed to our Thank you page or the second call-to-action settings.
4. Create another call-to-action that will have 2 hidden fields on it and a button. These hidden fields won’t be seen in the front end.

5. Now, we’ll be adding a JavaScript code for this second call-to-action.
This should be added under the “After Call-to-action Open” option as shown in the screenshot below.
Go to Panel -> Advanced JavaScript -> After Call-to-action Open
Here is the code that you need to paste in the section as shown in the screenshot –
var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i;for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('=');if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } ; var email = getUrlParameter('email'); var name = getUrlParameter('textfield_5121'); jQuery('#cp_hidden_input-1-196 input').val(email); jQuery('#cp_hidden_input-2-196 input').val(name);