Skip Navigation

[Resolved] Hide Cred Submit button until Custom Field equals One

This thread is resolved. Here is a description of the problem and solution.

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 support ticket is created 2 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Author
Posts
#2243927

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.

#2244119

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2244535

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.