Skip Navigation

[Resolved] Hiding the output if stored value is 0

This support ticket is created 5 years, 10 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
- 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 1 reply, has 2 voices.

Last updated by Minesh 5 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1237985

Under the post type i have a list of features that can be checked if required.
On the front end i list all items that have been marked with a checkbox so the database stores them with a 1 for checked and 0 if not selected.

I can show the conditional output if the value is equal to 1 and hide it if the value is false - no issues here.
[wpv-conditional if="( $(wpcf-remote-garage) eq '1' )"]REMOTE GARAGE[/wpv-conditional]

What I need is to hide the blank space if the value is 0 rather than show a blank space where the item is equal to 0.

Example of output:-

Swimming Pool - Value
Air Conditioning - Value

Carport Value

#1238017

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - can you please tell me what you mean by blank space? Can you please share a few screenshots where you see the blank space or problem URL?