Skip Navigation

[Resolved] Conditional display in Forms is not hiding labels

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.

This topic contains 5 replies, has 2 voices.

Last updated by beatR 1 year, 9 months ago.

Assigned support staff: Luo Yang.


I am trying to: have conditional display logic on custom field

Link to a page where the issue can be seen: hidden link
changing the "Prüfung" to Eignungsprüfung, the fields "Eignungspruefung Wann" and "Eignungspruefung Wo" are displayed/hidden. but it doesnt display/hide the labels.

I expected to see: not only the input field to be displayed/hidden but also the label for it

Instead, I got: only the input field gets hidden

visually this function is kind of pointless, if it doesnt hide the labels. or what am i missing?


Luo Yang

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)


I have tried the URL you mentioned above, I can see only blank content in that page.

I assume we are talking a form for creating/editing post, if it is, you can try to follow our document to displaying those specific fields and labels conditionally:

For example, you need to make sure both the field input shortcode and labels are wrapped insider [cred_show_group] ... [/cred_show_group] shortcode.


This works as solution in this case, for now. But i was hoping that i can globally control display condition in the custom-fields declaration. but this is not really the case, since this function does not hide the the label/parent form-group but only the input field.

i guess defining it on custom-field level is only useful for backend entry of data, while defining it using your mentioned shortcodes is the way to go on frontend-forms?

but this is not really what it says on your link:
"Each of the fields in your --->form<--- can be displayed based on a condition. This can be controlled directly from Types. You can set a condition for your field in the following way:"

so, i think i dont understand it quite yet: if i want to define globally, on custom fields level, how do i make the labels disapear?


adding here: this is not really satisfying already since i have to duplicate code for entry as well as edit form. and i think there must a misunderstanding (on my side).

it seems to be rather pointless to have only the input-fields hide/display when defining the logic in the custom-fields. how do i solve this?



Luo Yang

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

No, there isn't misunderstanding.

Here is the feedback from our developers:

No, it is not possible. As you describe, labels and wrapping HTML are not direct part of the field in Toolset Forms plugin, and they are indeed hardcoded in the form editor, so they can not be part of what is shown and hidden, because they are open to user manipulation.

You can add a feature request for it:

And currently, you will need to wrapped the field input shortcode and labels insider [cred_show_group] ... [/cred_show_group] shortcode, see my answer above:


My issue is resolved now. Thank you!