Skip Navigation

[Resolved] wpv-conditional button not working (sortie conditionnelle en français)

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 1 voice.

Last updated by cedricd-2 1 week, 4 days ago.

Assisted by: Minesh.

Author
Posts
#2824226

I am trying to use the GUI button to make a conditional output in a view
In the admin panel of course
I expect the button to show a popup window with settings but nothing comes.
I experienced this on multiple toolset powered sites, on FF and Chrome on a Mac M1.

#2824230

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and admin access details and share details where exactly you would like to add conditoinal statement and where its not working.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2824256

Minesh
Supporter

Languages: English (English )

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

I can see the issue and I've escalated this in front of our next level support for further debugging.

As we have workaround, you can expect a least priority but the fix will be made available in future with future release but there is no ETA on it.

You can workaround it by adding the followiing shortcode to your template:

To check post body is empty:

[wpv-conditional if="( empty( '[wpv-post-body view_template='None' ]') )"]
  post body is emtpy
 [/wpv-conditional]

To check post body is not empty:

[wpv-conditional if="( NOT ( empty( '[wpv-post-body view_template="None" ]') ) )"]
 post body is not empty.
[/wpv-conditional]

More info:
- https://toolset.com/documentation/legacy-features/views-plugin/conditional-html-output-in-views/

#2824316

Thanks for the workaround.
Hope the next level will be easy to fix as I use this button a lot !