Skip Navigation

[Escalated to 2nd Tier] Conditional block: incomplete condition

This support ticket is created 4 years, 9 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.

Our next available supporter will start replying to tickets in about 0.07 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 6 replies, has 3 voices.

Last updated by stirea 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1539123
incomplete condition.jpg

Hello,

I am trying to setup a conditional block when designing a wordpress archive template for a custom post type.
I am getting an error message, saying "INCOMPLETE CONDITION" (see screenshot)

It turns out I have sucessfully implemented the very same condition in another part of the site (in a standard page I inserted a view displaying the same custom type post content)

(I did some other testing and it seems like no matter what condition I will setup when selecting the field group for that custom post type as "source" I will get this "incomplete condition" statement)

I have recorded a quick screencast to show you what it is all about:
hidden link

Thanks

#1540045

Hi,

Thank you for contacting us and I'd be happy to assist.

I was able to reproduce this behavior on my test website too, and it seems to happen only with the conditional block used inside the WordPress Archives and not the post views.

The good news is that despite this message in the conditional block's preview in the admin area, the block's output shows correctly on the front-end.

Thank you for bringing this forward. I've passed on these findings to the concerned team and will keep you updated through this ticket.

regards,
Waqar

#1540217

I can't see this issue, unfortunately

Would you mind providing me with a copy of that site?
https://toolset.com/faq/provide-supporters-copy-site/

Thanks!

#1540723

I can see the issue on the site, but I can't confirm this happens locally, and the online site is too slow for debugging, it does not complete to save the archive, as it is stuck at "server requests"

Waqar was able to replicate this, I'll ask him for a copy.

#1541815

Ok, I've found it.

You can solve this issue for now by unassigning the Custom Field Group, of which you use the fields in your Conditional, from any Post type.

This means, in Toolset > Custom Fields > The Group with the Fields you use in Conditionals > Edit, just remove any Post type where this field groups should appear on.
This means the group will then appear on all Post types, but also, it will then work properly in the GUI when adding conditionals.

Or, you can leave this as is, as the actual conditional works, and await our update to fix the backend GUI

I've re-assigned this ticket to Waqar, he's on vacation, but we will keep you in the loop either way.

Thanks!

#1544087

Thanks Beda, I have unassigned the custom field group and it works.
And thanks for keeping me in the loop too!

#1544145

The side effect I have just noticed is that I need to set up some fields as "not required", otherwise I have to input dummy values in order to be able to save the post (I am referring to saving posts whose post type is not the custom post type that the custom field group was used to be assigned to).