I have two meta field values in same html field but i need to put an "&" if the second meta have a content

WordPress
13 June, 2022 00:41:38
rameeshighmark
Topics: 9
Messages: 16
I/We, [e2pdf-format-output explode="&" filter="strtoupper"][e2pdf-wp key="pp-name" meta="true"][e2pdf-wp key="jp-name" meta="true"][/e2pdf-format-output] confirm that I/we have received a copy of this Disclosure Statement from the Developer. I/we hereby agree that (subject to any additional disclosures required by the JOP Law) the Developer has complied with the provisions of Article 4 of the General Direction (as defined in this Disclosure Statement) with respect to its disclosure obligations.

above is my HTML field content, some times there will be content in the second meta (jp-name), so if there is content in the second meta, I need to put an "&" in between two contents. how can I do that? in explode field I put "&". but it's not working.


Thanks in advance.
13 June, 2022 01:50:33
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately E2Pdf doesn't have yet inline "conditional" logic however the task must be possible to accomplish by modifying your source as:

I/We, [e2pdf-format-output filter="strtoupper"][e2pdf-wp key="pp-name" meta="true"][/e2pdf-format-output][e2pdf-format-output pre=" & " filter="strtoupper"][e2pdf-wp key="jp-name" meta="true"][/e2pdf-format-output] confirm that I/we have received a copy of this Disclosure Statement from the Developer. I/we hereby agree that (subject to any additional disclosures required by the JOP Law) the Developer has complied with the provisions of Article 4 of the General Direction (as defined in this Disclosure Statement) with respect to its disclosure obligations.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
13 June, 2022 03:02:31
rameeshighmark
Topics: 9
Messages: 16

Thank you for your support, It's working