Hide element

Help Desk ›› How to ›› Hide element
10 August, 2021 06:11:29
Malas
Topics: 2
Messages: 10
Hello guys,

I am using the free version till now, just creating the first form at the moment and I have a big issue...
in the attached file you can notice that I want to add a title to the code, this PDF file will be generated from a filled from by a client...
until now everything is okay but the problem if the user didn't fill some fields, I want to hide the title I added if the user didn't fill any text in the main form...
I tried many ways to hide the total field with the custom title if the user didn't fill it, maybe I should write the custom name with a code or need some configuration.

Please help.

Thanks
10 August, 2021 06:20:31
E2Pdf
Support
Topics: 7
Messages: 3173
Hi,

If we understand correctly, [e2pdf-wp key="title" meta="true"] can be empty in your case, and if it's empty you need to "hide" the current element.

If so, you need to apply condition as on attached screenshot. It will hide element if [e2pdf-wp key="title" meta="true"] will render in "empty" value. "Value" string inside condition must be just empty (not space).

P.S. "if" condition renders value same as main "value" so you need to use there same shortcodes that is available under E2Pdf Template and compare it with value which you can see if you create "textarea" and map it with needed shortcode.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
10 August, 2021 06:29:42
Malas
Topics: 2
Messages: 10
Thanks for your quick response,
I actually need to hide the word before the code
Title: [e2pdf-wp key="title" meta="true"]
Need to hide the word "Title", I don't know how to explain...
This world title should hide if the fom field is empty.
10 August, 2021 06:33:21
E2Pdf
Support
Topics: 7
Messages: 3173
Then you can follow the same logic but just change the main "Value" to empty via "Action" as on attached screenshot.
We would really appreciate your feedback at WordPress.org!
10 August, 2021 06:34:47
Malas
Topics: 2
Messages: 10
You are amazing, will try and let you know.

Big thanks
10 August, 2021 06:45:01
Malas
Topics: 2
Messages: 10
It doesn't work, please take a look at the red line to see where I added the word (Title) I want that word to hide with the code too, this is my real problem, and I am very sorry for my bad explanation.
10 August, 2021 06:57:37
E2Pdf
Support
Topics: 7
Messages: 3173
Attach please screenshot of "Action" added. On the last screenshot we still see old "Action" which will not work.
We would really appreciate your feedback at WordPress.org!
10 August, 2021 07:04:05
Malas
Topics: 2
Messages: 10
You are right, now it works like a charm, you are really amazing, your plugin is something very important...

Thank you so much