Sauter la navigation

[Résolu] conditionnal output post form

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

Problem:

The issue here is that the user wanted to add a conditional group to their custom form.

Solution:

To setup a conditional group for your form I would recommend taking a look at our documentation below.
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

This support ticket is created Il y a 5 années et 4 mois. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

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

Dernière mise à jour par olivierF Il y a 5 années et 4 mois.

Assisté par: Shane.

Auteur
Publications
#1331141

Hi Shane
I changed, the url admin was not good, sorry.
I replaced 'my field' with the good one
Olivier

#1331179
<div class="grid-50 tablet-grid-30 mobile-grid-100">
              <p>[types usermeta='user-type'][/types]</p>
                [wpv-conditional if="( '[types usermeta="user-type"][/types]' eq '5' )"] <p>test test </p>[/wpv-conditional]
                </div>
#1331195

My issue is resolved now. Thank you!
There is the code

  [wpv-conditional if="( '[types usermeta='user-type' current_user='true' output='raw'][/types]' eq '5' )"]