PDF entry's differ from site to email copy

11 November, 2020 16:52:54
EPS
Topics: 6
Messages: 19
Hi,
We use e2pdf to send out inspections directly from our website and we are having some differences between what is sent via email and from our sites generated pdf. Some of the HTML tags are displayed in the emailed version see attached screenshots
11 November, 2020 21:47:51
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately we couldn't replicate an issue on our side. Do you use E2Pdf with Formidable Forms? If it's "textarea" field, do you use [123 wpautop=0] shortcode inside E2Pdf Template? if not, try please to modify it by adding wpautop=0 attribute.

P.S. Do you use Formidable Forms Pro version?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
12 November, 2020 09:41:29
EPS
Topics: 6
Messages: 19
Hi,
Yes we use Formidable Forms Pro and we have that same shortcode on the comments field [123 wpautop=0] - It's strange because it only happens on the emailed version?
12 November, 2020 23:27:01
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We had some similar due the Formidable API add-on Form action: https://e2pdf.com/support/desk/tags-are-not-removed-in-email-attachment. If you are using any other addons as form action try to deactivate them and see if behavior will change.

If you do not have any other actions on the form:

1. Can you also try to put inside email shortcodes in this way for test to see if Formidable Email will process wpautop directly (2nd line must be written inline):

-[123]-
-[123 wpautop=0]-

2. Can you try to replicate issue with newly created test form?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 November, 2020 15:55:48
EPS
Topics: 6
Messages: 19
Hi,
I have tracked down some of the issue I think but can't think of a fix.

It seems that I get the issue only if a new form is made by api call at the same time as the email is sent. So if the user checks to create another form (from some of the information already filled) then the resulting pdf emailed has the tags. If the user doesn't select the new form via api the emailed pdf is written without the tags.

Any advise would be great thanks
15 November, 2020 22:34:26
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

So as we understand you faced same issue as our other user above Formidable Forms API (if shortcodes inside mail body directly rendered with same bug):

-[123]-
-[123 wpautop=0]-

Unfortunately this shortcodes rendered by Formidable Forms and the possible solution is to report this issue to Formidable Forms directly so they can release a fix.

For a current time you can try to use one of the following solutions:

- Use shortcode wrapper to strip all tags (as in previous topic mentioned), however it will remove any tags added to this field:

[e2pdf-format-output filter='strip_tags'][123 wpautop=0][/e2pdf-format-output]

OR

- Add filter to your theme functions.php to detect and remove "p" tags on start and end of the string of known E2Pdf Template ID and E2Pdf Element ID: https://codeshare.io/Gk6ZpY

* Element ID can be known by "Right Mouse Click" -> "Properties". (screenshot attached).

We remain at your service.
We would really appreciate your feedback at WordPress.org!
16 November, 2020 11:45:51
EPS
Topics: 6
Messages: 19
That's great thanks I use the above shortcode wrapper and it worked well for our purpose,
Thanks for the help