Gravity Forms Attachment

Bug Resolved
22 June, 2019 20:17:16
underdog
Topics: 6
Messages: 20
How do I attach a dynamically generated PDF as an attachment to a Gravity Forms notification?
22 June, 2019 20:39:31
E2Pdf
Support
Topics: 7
Messages: 3345
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 09:07:15
underdog
Topics: 6
Messages: 20
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 09:26:44
E2Pdf
Support
Topics: 7
Messages: 3345
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 09:42:31
underdog
Topics: 6
Messages: 20
Yes that's sorted things, thank you very much for your help.
24 June, 2019 09:54:49
underdog
Topics: 6
Messages: 20
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 11:39:07
E2Pdf
Support
Topics: 7
Messages: 3345
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 14:05:49
E2Pdf
Support
Topics: 7
Messages: 3345
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 14:14:48
underdog
Topics: 6
Messages: 20
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 14:22:35
E2Pdf
Support
Topics: 7
Messages: 3345
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!