- customlogoshopAsked on July 19, 2016 at 02:11 PM
I am trying to integrate jotform with post affiliate pro. Here is the guide to set it up to track sales on my thank you page which currently is https://www.customlogoshop.com/order-confirmation
I have enabled post form data from https://www.customlogoshop.com/order-test-checkout
It goes from https://www.customlogoshop.com/order-test > order-test-checkout > order-confirmation (thank you page)
Here is the code I tried using which is pasted into confirmation page
and when I inspect my form after I have submitted the form here's what appears:
Could really use some help to what is going on as I have no idea
- JotForm SupportKiranAnswered on July 19, 2016 at 03:09 PM
I have cloned your JotForm and tried submitting the form. I see that the page is redirected to the following URL with the values posted correctly.
From the code that you have provided, I see that you are calling a variable orderid which is not found in the form. Could you try redirecting the Thank you page to http://www.jotform.com/show-post-data/ to see what variables that you want to pass to the other page?
Please check and let us know if you need any further assistance. We will be happy to assist.
- customlogoshopAnswered on July 19, 2016 at 03:17 PMPHP Code:
Im confused as it does say orderid?
Am I adding it to PHP wrong? Please give me an example of how the php should inset the variables
- JotForm SupportWelvinAnswered on July 19, 2016 at 04:46 PM
There is the Order ID in this form: http://www.jotformeu.com/form/61984738873374. It is a unique ID widget.
I think you're doing it wrong.
Form 1 https://www.customlogoshop.com/order-test is redirected to form 2: https://www.customlogoshop.com/order-checkout-test.
Form 2 is redirected to https://www.customlogoshop.com/order-confirmation.
Send Post Data is enabled in two forms. The redirection is correct as far as I could see. However, it seems that your page stripped off the scripts causing the integration to fail. Can you take a screenshot of the entire tracking scripts in your page, this while editing? We need to know if you have the correct tags.
Another thing, if you're getting the variables from form 2, you need to use the variables that are generated by the post data.
enteryour = Must be the full name in the payment fields so, ['input50']['1'] and ['input50']['2']
enteryour4 = You do not have an email field in your form. You may consider adding one.
selectyour = [input49] which is the calculation field or [orderid] which is the unique ID widget.
I hope that helps. Let us know if you need any further assistance.
- customlogoshopAnswered on July 19, 2016 at 05:13 PM
It now works I got the code right finally :)
How can I pass over the email from form 1 to 2 but without displaying it in a field? just may look a bit odd having it on the form again
- JotForm SupportChriistianAnswered on July 19, 2016 at 09:48 PM
I am glad to know that it is now working. You can add an email field in Form 2, and pass the email there. Set it to Hidden so that it is not visible to the user. I checked your form 2 and it appears that you have already added a hidden email field.
To better assist you, your other question has been moved to a new thread. Please follow this link to view it: https://www.jotform.com/answers/886451. Regards.