Skip Navigation

[Resolved] can i use if condition to check if field is empty or not?

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

Problem:

The issue here is that the user wanted to know how to check for empty fields.

Solution:

Yes this is possible.

Have a look at our documentation below for instructions on how to do this.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

This support ticket is created 6 years, 5 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)

This topic contains 2 replies, has 2 voices.

Last updated by teganK 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#951249

how can i use if fielda = null?
i want to change view if the field is not blank

#951441

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tegan,

Thank youf or contacting our support forum.

Yes this is possible.

Have a look at our documentation below for instructions on how to do this.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

Please let me know if this helps.
Thanks,
Shane

#952088

thanks