Skip Navigation

[Resolved] New Form Editor – Bugs? Checkbox Values and Conditional Group

This support ticket is created 5 years, 10 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 – 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 8 replies, has 2 voices.

Last updated by Waqar 4 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1201735

I am trying to:

1) Get a checkbox selected / unselected value / text to the front end.

2) Using the 'Marked / Checked as standard' checkbox in the checkbox field options.

3) Hiding the 'Label' if conditional is blend out as well.

4) Avoid that the 'Conditional Group' don´t pushes more and more conditions inside.

Link to a page where the issue can be seen:

You have to be logged in.

Instead, I got:

1) The following 2 links show what has been set and what don´t work. I have a checkbox field and set 2 values / text for selected and unselected. Using the new Front Editor Drag n Drop feature - these values don´t show up in the form.

Fields : hidden link

Form Frontend : hidden link

2) Shouldn´t this option mark the checkbox by default?

Fields : hidden link

Form Frontend : hidden link

3) It works - but it don´t hide the 'Label' that is set in in the new Form Editor.

Fields : hidden link

Form Editor : hidden link

Form Frontend : hidden link

4) In some cases - if safing the form again and again - it pushes more and 'Title' conditional fields in a Conditinal Group. But only in the first one. We changed in another tab some settings for the fields and reload the Form Editor.

Form Editor : hidden link

#1202133

Hi Sascha,

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

To troubleshoot around your report in more detail, access to the website's admin area will prove useful. This will allow me to see how the fields and the form are set up and I'll be able to reproduce it on my test website more accurately.

I've set your next reply as private so that you can securely share the temporary admin login details.

Important note: No changes will be made on your website, but still it is recommended to make a complete backup copy of the website, before sharing the access details.

regards,
Waqar

#1202935

Hi Sascha,

Thank you for waiting and for sharing the login details.

1). The values that we add for the "Not selected" and the "Selected" option in a checkbox field's settings ( hidden link ) are returned when that field's value is called.

When that field is viewed in the admin area's edit screen or in a front-end Form, its label is generated from the value added in the field's "Field name" option.

It was like this even before the latest improvements in the front-end forms editor.

Note: if you'd like the custom values to be visible in the form, perhaps it would be better to replace the "Checkbox" type field, with a "Select" type field.

2). The option "Set checked by default (on new post)?" is only applied when a new post is added, through either the back-end post edit screen or through the front-end form.

The "Shop . Premium" form that is shown in your screenshot ( hidden link ) is for editing an existing post and not for adding a new one.

3). This is also something, that hasn't changed with the latest visual form builder. The conditional check that is added in a custom field's settings only applies to the field's markup and not for the field's wrapping div and the label tags.

To properly hide/show a front-end form field, it should be wrapped inside a "Conditional group", as explained at:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

4). I was able to reproduce this issue on my test website.

Appreciate you brought this forward and I've passed this on to the concerned team. I'll keep you updated with the progress through this ticket.

For future reference, please note that as per our support policy ( https://toolset.com/toolset-support-policy/ ), only one question or issue can be addressed through a single ticket.

You're welcome to open a new ticket for each new question or concern.

regards,
Waqar

#1205395

Hi Waqar.

Thanks for Your time & the detailed answer!

1) O.k. - I understand. But in this case I need a checkbox (conditional) for our customer that says 'Use the same text as in option A'. So a 'select field' isn´t an option. And who wants to name this field like 'Use the same text as in option A'?! 😉
I think I remember that it is possible to name / overwrite the checkbox label in the 'expert mode'. This should def. an option in the new form editor - some kind of an 'Overwrite the Label' field.

2) O.K. - got this.

3) Yep - but as these fields are already in a conditional group - which is shown / or hided by checkbox settings above - it don´t seems to be possible to have conditional groups nested. Not by the editor. Or did I missed something?

4) Glad I could help! 🙂

I will split my upcoming ticket apart - promissed.

Thank You / Sascha

#1205993

Hi Sascha,

Thanks for writing back.

1) O.k. - I understand. But in this case I need a checkbox (conditional) for our customer that says 'Use the same text as in option A'. So a 'select field' isn´t an option. And who wants to name this field like 'Use the same text as in option A'?! ?
I think I remember that it is possible to name / overwrite the checkbox label in the 'expert mode'. This should def. an option in the new form editor - some kind of an 'Overwrite the Label' field.

- You can show a custom label for the checkbox fields in the form, through the visual or expert mode, as shown in these screenshots:

Visual mode: hidden link
Expert mode: hidden link

Point to note here is that this label won't be dynamic or linked to what is set in the field's "Not selected" and the "Selected" options.

Note: you can print the values from the field's "Not selected" and the "Selected" options using the "Types Fields API" ( https://toolset.com/documentation/customizing-sites-using-php/functions/#checkbox ) in the form's expert mode, but again this won't be dynamic and won't change if the state of the checkbox is changed.

3) Yep - but as these fields are already in a conditional group - which is shown / or hided by checkbox settings above - it don´t seems to be possible to have conditional groups nested. Not by the editor. Or did I missed something?

- I apologize as I missed that your form already includes the conditional groups. I couldn't reproduce this issue on my test website and also couldn't find the page on your website with the form.

In case the issue with the field's label still persists, you're welcome to share the link to the page, where the form can be tested.

regards,
Waqar

#1206116

Hi Waqar.

Thanks again for Your time! Here comes my feeback:

1) We should take care about the wording. Where to edit the 'Label' is no prob. But the label is not the text beside the checkbox. It´s what is shown above the checkbox. Like here:

hidden link

So - in the end I have no chance to edit the text beside the checkbox in the visual editor. The only way to do this is to name the field itself with the text I want to see. But as written in my last reply this couldn´t be the final solution.
If I want the text beside the checkbox show something like 'Check here - to use the text of something' - that´s a weird name for a field. I would call it something like 'Text Clone A/B' - to give it a reasonable function description.

With the login I already send You can check this here:

Fields : hidden link

Form Visual : hidden link

Frontend - please use the tab 'Premium' : hidden link

Long text for a small thing. 🙂 But I hope to give a bit of constructive feedback to make thinks a even bit better and smarter. As Your visual editor as new - there is surly a little space for optimization. Just a second field to overwrite the text beside the checkbox.

3) Please follow the link to see our setup:

Backend : hidden link

Frontend : hidden link

It is very simple. We use radiobuttons (Premium) with 4 options. Every option 'unhides' more fields in a group. Think of... an advertisment booking and with the next abo option You get more advertising space - that can be filled. With text and a picture.

But to keep it smart for our customers - it´s possible to use the text and picture of advertising A for B and C as well.

As we use the groups for conditional showing advertisment A, B and C - there seems no more use of conditional groups inside these groups. The last line in Your docs say that should work - but not how. 'Display conditions may also be nested. You can select a section inside an already-conditional section and add another condition to it.'

https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs

Thanks again / Sascha

#1207068

Hi Sascha,

Thank you for your message.

1) Sorry about the confusion and your observation about the text, next to the checkbox field is correct. It can only use the value from the "Field name".

Your feedback and suggestions are very important to us, as they help us improve in the right direction. You're weclome to submit this as a feature request, through the dedicated form:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

2) The nesting of conditional groups is possible but, it will require switching to the expert mode and constructing the conditional block(s) manually.

At the moment this is not supported through the visual form builder and we've plans to introduce this in future releases, but I'm afraid, we don't have a time estimate to share at the moment.

Here is an example case. Suppose you have 3 fields in a form:

- Title
- Field 1
- Field 2

If you'd like to show "Field 1" only if "Title" is not empty and likewise "Field 2", only if "Field 1" is not empty, the conditional blocks can be set like this:


[cred_show_group if="( $(post_title) ne '' )" mode="fade-slide"]

	<div class="form-group ">
		<label>Field 1</label>
		[cred_field field='field-1-slug' class='form-control' output='bootstrap']
	</div>

	[cred_show_group if="( $(field-1-slug) ne '' )" mode="fade-slide"]

	<div class="form-group ">
		<label>Field 2</label>
		[cred_field field='field-2-slug' class='form-control' output='bootstrap']
	</div>

	[/cred_show_group]
	
[/cred_show_group]

Here is a guide on using the advanced conditional code blocks:
https://toolset.com/documentation/user-guides/cred-conditional-display-engine/

Note: I'll internally pass on the feedback to make this point more clear on the document that you refered to:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs

regards,
Waqar

#1207215

Hi.

Just some short closing feedback:

1) I will send a request soon. What poped up my mind was to use the checkboxes (plural) field instead - there You can name the title of the field and just use one checkbox. Should do it.

2) Thx for that. Yep - You should update that description a bit. And - while we´re here. Please also take look at this message in a visual editor conditional group 'Tip : Make a selection in the...'. As far as I can see - this makes no sense at that place and is just for the expert mode as well. Confusing! 🙂

Thx again for Your perfect support / Sascha

#1515781

Hi Sascha,

Sorry about the delay in the update, as this ticket was somehow missed from my follow-up earlier.

I just wanted to make sure that you're aware that the issue of additional conditions being added to the first conditional group, has been fixed since Toolset Forms release 2.3.1.
( ref: https://toolset.com/errata/saving-a-form-adds-an-additional-condition-to-the-first-conditional-group-if-subsequent-conditional-groups-feature-more-than-one-condition/ )

Thank you for reporting this.

regards,
Waqar