Skip Navigation

[Resolved] Conditional post fields not working in admin

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by daveM 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#547079
Screen Shot 2017-07-10 at 3.06.37 PM.png

I am trying to create 4 post fields and hide #4 if #3 is empty, hide #3 if #2 is empty, and hide #2 if #1 is empty. All of this is for the back-end admin options only—not front-end.

I'm using the post fields conditional setting: "Custom Field" "> is greater than" "0" (see attached screenshot).

The value of the custom post field will be different URLs, so there is no exact value to compare. Is this the correct setting and value("0") to show/hide a field based on whether the field is empty or not?

Thanks!

#547142
Screen Shot 2017-07-10 at 5.54.14 PM.png

Hi, the best way to set up this conditional is to use the != (not identical to) operator, and leave the value empty:
[YouTube Video #1] [!=(not identical to)] [leave the last input blank]

See the attached screenshot for an example. Let me know if this does not resolve the issue for you, and I'll take another look.

#548777

Thanks, I ended up not needing the conditional after all, but thank you very much for the reply!

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.