Skip Navigation

[Gelöst] conditional doesn´t work

This support ticket is created vor 3 Jahren, 4 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

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

Zuletzt aktualisiert von heinrichT vor 3 Jahren, 4 Monaten.

Assistiert von: Jamal.

Author
Artikel
#2117325

I´m creating a single post and I want a field to be shown only when custom field ist not empty.
It´s not working on most of the fields, just one is working perfectly.

Link to a page where the issue can be seen: versteckter Link

Language field whih are empty shouldn´t be visible.

#2117349

Hello and thank you for contacting Toolset support.

Instead of testing if the field is empty, test if it has a different value than an empty static value. Check this screenshot versteckter Link

I did it for French, and it seems to work as expected. Check this screenshot versteckter Link

I hope this helps. Let me know if you have any questions.

#2117365

Hi Jamal,

now it's not showing when it should be....

#2117367

I have a second iusse at the Archiv die-Promoter.

I have an overflow on mobile and can´t fix it. Can you please help me?

Best wishes

#2117401

Hello! Can you please elaborate more on what is not showing?

And regarding the overflow issue on mobile, can you add a screenshot to help me understand it?

#2118623
Bildschirmfoto 2021-07-19 um 07.06.03.png

Hi Jamal,

1) enclosed you find 2 screenshots where you can see, that dataset contains the information "Franzöisch: fließend" but doens´t show it on the front page.

#2118633
IMG_0114.jpeg
IMG_0115.jpeg
IMG_0116.jpeg

2) find enclosed the overflow screenshot

Neue Threads, die von Jamal erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

https://toolset.com/de/forums/topic/overflow-issue-on-mobile/

#2118731

Sorry, my mistake. The NOT operator should not be used on the condition. Check this screenshot versteckter Link

For support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have created another ticket about the overflow issue on mobile. I'll be posting my reply on it, as I need more details from you.

#2118849
Bildschirmfoto 2021-07-19 um 14.52.25.png

Hi Jamal,

if I don´t use the NOT operator than the field is visible all the time. Please check screenshot.

#2118901

It's not the NOT of the condition. The custom field "ts_sprache_italienisch" does hold a one-space string, which evaluates as different than empty string and displays the block. Check this screenshot versteckter Link

I remove the one-space and saved the post, and it does not appear anymore on the frontend. versteckter Link

I'll let you do the same for the "ts_sprache_polnisch" custom field to see how does it work.

Finally, just to help us help you, please share a URL whenever possible. That way we can go directly to the relevant post/view/content template/archive instead of searching for it or guessing if that's the one with the issue 🙂

#2119163

Hi Jamal,
Thanks for your support. It is working now.