Navigation überspringen

[Gelöst] Hide Cred Submit button until Custom Field equals One

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 years, 5 months. 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.

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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Sean vor 4 years, 5 months.

Assistiert von: Minesh.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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.