Home › Toolset Professional Support › [Resolved] Hide Cred Submit button until Custom Field equals One
Problem:
Hide Cred Submit button until Custom Field equals One
Solution:
To display the conditional content, you can use the [wpv-conditional] shortcode.
Relevant Documentation:
=> https://toolset.com/documentation/legacy-features/views-plugin/conditional-html-output-in-views/
=> https://toolset.com/documentation/legacy-features/views-plugin/using-shortcodes-in-conditions/#checking-types-plugin-shortcodes
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by Sean 2 years, 11 months ago.
Assisted by: Minesh.
Parent post type - Trips
Child post type - Travelers
When listing a Trip, there is a simple form a user can submit to join this trip (and thus create the child type of a Traveler).
I want to hide the SUBMIT button until that Trip has some fields changed in the backend. 'advisor-approved' should equal 1 before it pops up. A "This Trip still needs to be approved" message could appear if it doesn't equal 1.
What is the easiest way to accomplish this? I'm using the expert mode when editing this cred form, btw.
Hello. Thank you for contacting the Toolset support.
Basically, to display the conditional content, you can use the [wpv-conditional] shortcode.
Please check the following doc:
=> https://toolset.com/documentation/legacy-features/views-plugin/conditional-html-output-in-views/
=> https://toolset.com/documentation/legacy-features/views-plugin/using-shortcodes-in-conditions/#checking-types-plugin-shortcodes
Can you please try to use that and see if that help you to resolve your issue.
I was making the issue more complicated than it actually is. I was able to make a conditional block in the content template for Trips and it worked.
Thanks.