I need to hide a page if a meta field("payment-plan") value is "100% on booking". So for this, I put an action " Action - Hide, If - payment-plan, Condition- =, Value - 100% on booking". but this does not work, how can I do this?
29 April, 2022 00:10:20
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,
Create please temporary "textarea" and map it with shortcode which is used inside "if" condition to see which value is rendered by E2Pdf upon PDF export as it could be that it's output value without "%". If it will be different from "100%" - correct the value inside condition. Keep in mind that it must not be any extra spaces as it uses strict comparision.
If it still will not work attach please screenshots with setup of action and result of shortcode render inside "textarea".
We remain at your service.
We would really appreciate your feedback at WordPress.org!
29 April, 2022 01:07:44
rameeshighmark
Topics: 9
Messages: 16
Hi,
I have two payment plans (you can see a screenshot of the formidable form with the values in the dropdown)
1. 20% (on booking),10% (after 3 month),10% (after 6 month),60%(on completion)
2. 100% (on booking)
In pdf I have two different pages for each payment plan, I need to show only one page according to the plan choosen
please see the screenshot with the settings I made.
29 April, 2022 01:28:17
E2Pdf
Support
Topics: 7
Messages: 3331
You need to use Formidable Forms syntax inside E2Pdf Template.
So the "condition" must look like on screenshot:
[23] = 100% (on booking)
* 100% (on booking) - must be same value from "Dropdown" option.
We would really appreciate your feedback at WordPress.org!
29 April, 2022 01:30:44
rameeshighmark
Topics: 9
Messages: 16
Actually, I was creating a post with formidable and taking the values from post to e2pdf, that's why I use meta field name.
but even if I put the same value which I copied from the text area field is not working.
29 April, 2022 02:23:26
E2Pdf
Support
Topics: 7
Messages: 3331
Do you have connection of E2Pdf Template to "WordPress" -> "Post" (Custom Post Type) or to "Formidable Forms" -> "Form"?
If to "WordPress" -> "Post" (Custom Post Type) and the setup of custom field as on 1st screenshot then it must be used:
if [e2pdf-wp key="payment-plan" meta="true"] = 100% (on booking)
* 2nd screenshot
If to "Formidable Forms" -> "Form" it must be used:
if [23] = 100% (on booking)
* 3rd screenshot.
P.S. In general you need to find out correct key which outputs 100% (on booking) and use same shortcode inside "if" condition.
If you are still failing with setup - submit please support ticket with access details to your WP Admin Dashboard: https://e2pdf.com/support/request so we can login and see your setup.
We would really appreciate your feedback at WordPress.org!
We use tools, such as cookies, to enable essential services and functionality on our site and to collect data on how visitors interact with our site, products and services. By accepting cookies you are agreeing to our Cookie Policy.