Passer la navigation

[Résolu] Hide Cred Submit button until Custom Field equals One

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Sean Il y a 4 years, 5 months.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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.