Skip Navigation

[Resolved] Change info when field is empty: This field is empty or does not exist

This support ticket is created 4 years, 11 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 2 replies, has 2 voices.

Last updated by samuelH 4 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1446047

Hi,
I am using conditional output to hide empty fields. How can I change the message output when field is empty?

#1446383

Nigel
Supporter

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

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

You want to not display a field if it is empty and display a message instead?

You would simply include the text of the message inside the conditional shortcodes, like

[wpv-conditional if="( empty($(wpcf-test-field)) )"]
This field is empty or does not exist
[/wpv-conditional]

Is that what you meant?

#1446419

Hi,
Appologize for throwing questions attended you! This is now solved.

I am finally getting a hang of this - love it!