So we have business listings setup. We are trying to add a PDF that the user can download, but only after filling out their email. I've created the Post Form with the file upload. We are using Gravity forms to capture the email which can then redirect with url parameters to the download page which has an assigned content template.
The content template is currently displaying the PDF of a static listing using shortcode [types field='pdf-listing' item='1117'][/types]
What I need is the url from the listing to fill in the 1117.
So the flow would be:
-User is on the listing page
-User enters email into form and submits
-User get redirected with url parameter i.e. domain.com/pdf-download-page/?item=%linking page ID%
-User can now click the PDF link to download/view it
Example listing page: hidden link
Example download page: hidden link
I am open to using toolset forms instead.
Thank You for your time and please let me know if you need more info.
Hi there,
I am not sure if it is possible with the Gravity forms, but if you have a relationship between your custom post types then you can use the Child Post Link functionality and the system will add a proper parameter.
For more information:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
Thank you.