Skip Navigation

[Resolved] CRED Field Labels Conditional Output

This support ticket is created 3 years, 8 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Jennifer 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2074867
Image1- Creating Select Field with condition.jpg
Image2-Output.jpg

Tell us what you are trying to do?

I created a costum field (select field) and linked them with conditions, for example the field should appear if the number 3 was entered in another field (Image 1).

For the output of the selection field, however, I need a label (or a text) that is output in front of the selection field e. g "These002".


	<div class="form-group">
		<label for="%%FORM_ID%%_these002">[cred_i18n name='these002-label']These002[/cred_i18n]</label>
		[cred_field field='these002' force_type='field' class='form-control' output='bootstrap']
	</div>

However, the label of the field is not linked to the conditions that I set to the field. This means that the label of the select field is displayed even if the field does not appear. (Image 2)

Is there any other solution than setting the condition in the form editor like this:


[cred_show_group if="( $(loesungszahl01) eq '3' )  mode="fade-slide"]

<div class="form-group">

<label for="%%FORM_ID%%_these002">[cred_i18n name='these002-label']These002[/cred_i18n]</label>
[cred_field field='these002' force_type='field' class='form-control' output='bootstrap' show_name="true" select_text='--- Bitte wählen ---']

</div>

[/cred_show_group]


Since I have many such select fields, it would be clearer to define these conditions directly when creating the field and not in the form editor.

Hope my problem is clearly described. Many thanks for the help!

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

#2075039

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jennifer,

Thank you for getting in touch.

We are actually aware of this issue and have created an escalated ticket for our developers.

At the moment you're using the only workaround that is available.

Thanks,
Shane

#2079345

Hey shane,
first of all sorry that it took me so long for an answer. Nice to hear the developers are already working on it. Then I'll use the workaround I know.

Nevertheless, many thanks for your help and your quick response!

Best wishes
Jenny

#2079351

Hey Shane,

I'm happy to hear that the developers are already working on it. So for now I'll use the workaround that I know.
Nevertheless, thank you very much for your quick answer and your help.

Best wishes
Jenny

#2079353

My issue is resolved now. Thank you!