HTML object condition

WordPress Released
31 March, 2020 04:45:36
Damian
Topics: 2
Messages: 10
Hello,

Anyone maybe have idea how to display green arrow(attachments) if meta value is not empty?

Regards, Damian
31 March, 2020 05:18:54
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Do you output "wspomoganie kierownicy" in separated PDF field/object? Or it used as merged value?

If it's just 1 field you can add image and hide it if [meta key="test"] is empty. (screenshot attached).

If not, can you please attach screenshot of your "value" of PDF field/object via "Right" mouse click -> "Properties"?

We remain at your service.

We would really appreciate your feedback at WordPress.org!
31 March, 2020 05:26:17
Damian
Topics: 2
Messages: 10
Hello. Thank you for answer. :)!

Hmm.

I use HTML object and here alot of values because i use meta ACF Repeater.
31 March, 2020 06:00:04
E2Pdf
Support
Topics: 7
Messages: 3163
Unfortunately it's not yet possible, "Conditional Logic" inside "value" is still under development.

We expect update in nearest 2 days with some bug fixes and will check if we can add some "filter" to have possibility to accomplish your task. As soon as we will have some news, we will update this thread.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
31 March, 2020 06:06:23
Damian
Topics: 2
Messages: 10
Thank you!
6 April, 2020 02:23:13
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We just released an update (1.10.08) with additional "filter" (e2pdf_model_shortcode_e2pdf_wp_response) to modify wordpress shortcode output.

Example of using it can be found by link: https://codeshare.io/50O0XD.

It will process add image to each shortcode which starts with "car_comfort_". You can also use custom attribute to wp shortcodes and depending if attribute exists process conditions to speed up.

Code must be added to your theme functions.php. Let us know please if it will be any issues using it. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
7 April, 2020 09:44:58
Damian
Topics: 2
Messages: 10
Hello!

Work perfect! But how to add more field's? As in screenshot?
7 April, 2020 10:04:52
E2Pdf
Support
Topics: 7
Messages: 3163
All is correct except 0, 12 in additional code.

For car_security_ it must be 0, 13
For car_body_ it must be 0, 9

The number at the end means the number of characters to compare.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
7 April, 2020 11:23:22
Damian
Topics: 2
Messages: 10
Okey. Now work. :)

Thank you so much for this update.

I will be use still your plugin.

Perfect support.