Hi i need to hide a page if a meta field value is some text

April 28, 2022 22:38:00
rameeshighmark
Topics: 9
Messages: 16
Hi,

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?
April 29, 2022 00:10:20
E2Pdf
Topics: 7
Messages: 3617
Support
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!
April 29, 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.
April 29, 2022 01:28:17
E2Pdf
Topics: 7
Messages: 3617
Support
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!
April 29, 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.
April 29, 2022 02:23:26
E2Pdf
Topics: 7
Messages: 3617
Support
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!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.