Gravity Forms Attachment

Bug Resolved
22 June, 2019 13:17:16
underdog
Topics: 5
Messages: 15
How do I attach a dynamically generated PDF as an attachment to a Gravity Forms notification?
22 June, 2019 13:39:31
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Just insert [e2pdf-attachment id="1"] (where 1 is ID of E2Pdf Tempate) to mail notification message.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
24 June, 2019 02:07:15
underdog
Topics: 5
Messages: 15
Thank you, yes I thought that was how it should work. This isn't working for me but I think I understand the issue. I pushed my local website to a development server and now when I try to run an Export on the PDF I get a 'Website Url Incorrect' error. Is this because the license key was generated on my local site url so now won't work with my development site url? If so, how do I generate a new license key for the development site?
24 June, 2019 02:26:44
E2Pdf
Support
Topics: 7
Messages: 3163
If URL is different on development server and local website:

Try please to "Deactivate" (DO NOT REMOVE) plugin and "Activate" again. License Key must be dropped. You can check if url was dropped by going to "E2Pdf" -> "License". You must see there License Type: "Free".

If it will be unsuccessful let us know please the URL of your development website so we can check it on our side.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
24 June, 2019 02:42:31
underdog
Topics: 5
Messages: 15
Yes that's sorted things, thank you very much for your help.
24 June, 2019 02:54:49
underdog
Topics: 5
Messages: 15
Sorry, I have another query. How do I pass the post id of the page the form is submitted from to the shortcode? I tried [e2pdf-attachment id="1" dataset="{embed_post:ID}"] but this does not seem to work.
24 June, 2019 04:39:07
E2Pdf
Support
Topics: 7
Messages: 3163
Our apologizes, we could replicate an issue with using [e2pdf-attachment id="1" dataset="{embed_post:ID}"] - the usage of shortcode is actually correct if Template is connected to WordPress Post.

We are now investigating it so please expect update in nearest time. We will update this thread as soon as update will be released.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
24 June, 2019 07:05:49
E2Pdf
Support
Topics: 7
Messages: 3163
We just released an update (1.07.11) with current fix. Please update it and let us know if issue was resolved. Thank you.

Keep in mind please: when you are using shortcode: [e2pdf-attachment id="1" dataset="{embed_post:ID}"] , Template under ID 1 must be connected to "WordPress" extension and item must be set to "Posts".

We remain at your service.
We would really appreciate your feedback at WordPress.org!
24 June, 2019 07:14:48
underdog
Topics: 5
Messages: 15
Thank you, yes that's working now. Just to let you know the template item was actually set to my custom post type rather than 'Posts' but still worked as expected.
24 June, 2019 07:22:35
E2Pdf
Support
Topics: 7
Messages: 3163
Thank you for letting us know.

In that case yes - if form is located inside "custom" post type then E2Pdf Template must be connected to that "custom" post type, so you did all correctly. Just mentioned about "Posts" type as didn't have all info about your setup.

We remain at your service.
We would really appreciate your feedback at WordPress.org!