Skip Navigation

[Resolved] conditionnal output post form

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

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 5 years, 2 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.

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)

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by olivierF 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#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' )"]