Skip Navigation

[Resolved] Check the existance of repeatable photo field

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

Problem:
How to check whether an image field (in this case a repeating field) is empty or not?

Solution:
You can check if the field is empty, as described here: 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, 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by kelvinL-2 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#953270

Dear Sir/Madam,

I have a repeatable photo field which is an optional field, if a user inputs the field, then I will show some preset information, otherwise, nothing to be showed.

How can I check whether the repeatable photo field contain data input or not and put it in [wpv-conditional]...[/wpv-conditional] for further action?

Best regards,

Kelvin.

#953492

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Kelvin

You can check if the field is empty, as described here: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

That is for an individual field (that can have multiple values), yes?

We are not talking about fields inside a repeatable field group?

#953607

Thanks Nigel.