Create new Custom Post Type with each Gravity Form Submission

January 20, 2025 00:26:19
tspino
Topics: 2
Messages: 13
Hi,

Can e2pdf do this? I have a custom post type called "Lender Agreements" and a Gravity Form that captures the details from the lender. I'd like the submission of this form create a new "Lender Agreements" post, and the details from this form to be placed into a template/pdf and then that template/pdf saved to that new Lender Agreement post. And also have this PDF embedded into this new Lender Agreement post on the front-end. It looks as if it can do this but I'm a bit confused as to the process.

Also does e2pdf integrate with Toolset?

Thanks,

Tim
January 20, 2025 02:21:53
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

If we understand correctly, you should be able to accomplish the task by following these steps:

1. Create an E2Pdf Template connected to "WordPress" -> "Your Post Type".

2. Use the Gravity Forms Advanced Post Creation Add-On: https://www.gravityforms.com/add-ons/advanced-post-creation/.

3. You should be able to use the shortcode [e2pdf-download id="1"] or [e2pdf-view id="1"] in the Page or Post content, where "1" is the ID of your created E2Pdf Template. A screenshot is attached for reference.

Regarding Toolset, we have users successfully utilizing E2Pdf with Toolset. However, in some cases, it may be necessary to use special shortcodes to output some specific data.

We would really appreciate your feedback at WordPress.org!
January 27, 2025 00:11:10
tspino
Topics: 2
Messages: 13
Thanks for these steps. I can get the PDF to be associated with the cpt, but the E2pdf template isn't recognizing the gravity forms fields I am embedding. So for example I have this in the template "This Agreement is made on {Date:29} between:" which should output the Date field that was entered into the form but it just shows the shortcode {Date:29} in the front end pdf.

Also my pdf is in English and Thai, but the Thai language does not appear. Is Thai not supported with E2pdf?

Thanks,

Tim
January 27, 2025 00:45:24
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

If your E2Pdf Template is connected to "WordPress" (and not Gravity Forms), the data from Gravity Forms should be passed to the custom fields of the created post, and it should be used the [e2pdf-wp] shortcodes to transfer that data from the post to the PDF, not the Gravity Forms syntax.

Regarding the Thai language, ensure that the font used supports both Latin and Thai characters. This font should be set as the default in the PDF. Fonts can be uploaded in "E2Pdf" -> "Settings" -> "Fonts" and configured in the E2Pdf Template: https://e2pdf.com/docs/templates/builder/settings#style

We would really appreciate your feedback at WordPress.org!
January 27, 2025 00:53:58
tspino
Topics: 2
Messages: 13
Ok, but what are the "[e2pdf-wp] shortcodes", can you link to the documentation on those?

Tim
January 27, 2025 00:54:46
tspino
Topics: 2
Messages: 13
Sorry I found it here: https://e2pdf.com/docs/extensions/wordpress

I think I'm ok now.
January 27, 2025 00:56:52
E2Pdf
Topics: 7
Messages: 3614
Support
For easier mapping, you can use the "Visual Mapper," which can be accessed by right-clicking on the field and selecting "Map." This will display all available shortcodes.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.