Forms - Chcekbox Behaviour - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Forms - Chcekbox Behaviour

DM

Dennis McFern

SP Page Builder 1 year ago

I have a form with a field that contains 5 checkboxes allowing the user to select from a list of services the customer is interested in. There doesn't sem to be any way for me to let the user pick between 1 and more check boxes. I do require that they check at least one checkbox. The checkbox item allows me to define a member of the list as mandatory, but this would force the user to select every checkbox. There seems to be a piece missing where we can define that the field "Select a service from the list below" as required, controlling that the user must select at least one checkbox. What am i not understanding about the form checkbox field? What I am asking for is not unusual. Joomla 5.0.1 SP Page Builder Pro 5.2.3 Template Helix Ultimate 2.0.18

0
8 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #141875

Hi Dennis, On my demo template I checked 60sec ago, and looked like that:

info_1995_2023.jpg

My dummy settings

info_1994_2023.jpg

0
DM
Dennis McFern
Accepted Answer
1 year ago #141879

Hello Paul, my issue is not with the inability to define an item with multiple checkboxes. I need to be able to control that the user selected at least 1 of the checkboxes before accepting the form. The user needs to be able to select 1 or more checkboxes. I can't seem to get that working. Thanks for your time!

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #141881

It looks that your form has two separate checkbox fields and both are required.

Check its html code if they have required Attribute.

0
DM
Dennis McFern
Accepted Answer
1 year ago #141900

If I make any of the checkboxes as required, then the user must check all boxes in order to proceed. I need the ability to require that the user selects at least 1 check box. This is not unusual for a website to allow a user to select 1 or multiple entries from a list. SP Page builder forms addon doesn't seem to allow this. If so, please describe how I could achieve that goal. Thanks again

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #141906

Oh, I will check on my demo, and let you know...

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #141909

I think our addon is working properly, please check that you have the correct settings.

here.gif

then it works as it should, I tested on my own site.

0
DM
Dennis McFern
Accepted Answer
1 year ago #141912

Hi Paul. Thanks for your patience This is exactly what I have set up. A unique name for each item and each item is defined as not being required. The effect of this particular arrangement is that the form can be submitted without the user having picked any of the services. There needs to be a parameter in the parent field "Pick a service" that allows the designer to specify the minimum number of checkboxes required in order to proceed. A value of 0 would mean that the these checkboxes are all optional. A value greater than 0, means the user must check at least that many boxes from the list. In your example, if we were to set this new parameter to 2, the user would have to check at least 2 items in order to pass the reuirements test allowing the form to be submitted.
Note: I spoke with a couple of developers here, and they all seemed to think that is how it should work. Let me know what you think Thanks again !

0
DM
Dennis McFern
Accepted Answer
1 year ago #141913

FYI - This is what the form looks like right now:

0