[Resolved] Conditional form labels are showing

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.

Related documentation: Front-end Content Submission and Editing Forms

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Cox 11 months, 1 week ago. The support staff assigned to this topic is Christian Cox.

Viewing 4 posts - 1 through 4 (of 4 total)

I am trying to: Hide the labels when using conditionals

Link to a page where the issue can be seen: hidden link

I expected to see: Hidden labels until option is selected

Instead, I got: Labels showing


Christian Cox
Forum moderator

Supporter languages: English (English )

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

Hi, you can accomplish this with a cred_show_group conditional wrapped around the input and label. In your CRED form editor, use the mouse to select the elements you want to hide. Then click the Add Generic Fields button and choose "Conditional Group". Set your conditional criteria using the wizard, or write your conditions manually.

More information about CRED conditionals:

Let me know if you have any additional questions about this.


Yes, that seemed to do the trick. The only other issue, related to the conditional, is in the Filter area in the archives template, it doesn't seem to allow me to use conditionals in the filter. For example, in the screenshot, if the user selects Office, I would like to then show the office filters, rather than have them always show. I added the conditional, but it didn't seem to work.



Christian Cox
Forum moderator

Supporter languages: English (English )

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

Yes that's correct, the conditional group code only works in a CRED form. In a View, there's no simple way to control the display of some filters or filter groups based on the selection in others. Setting this type of functionality up would require custom code. The closest thing we offer is the ability to only show the available filters, based on the User's current selections.

For example, let's say your user selects "Type of Location: Meeting / Event Space". At this point the results will update and the other filters will update as well. If no results are found for Meeting / Event Spaces with Direct Leases, the Direct Lease filter will not be shown, and so on for other filter options.

We have some information about this here:

You can also see this in action on our Real Estate demo site's main search form. The State and City inputs use this type of setup. You can access those demos over at discover-wp.com, and take a look at how they are set up in the back-end.

Let me know if you have questions about this and I'll be glad to take another look.

Viewing 4 posts - 1 through 4 (of 4 total)