Checkbox multiple select

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

Checkbox multiple select

#1

Postby kotinkarwak » Sun Apr 17, 2016 3:33 pm

Hi,
Have created a field of type checkbox
Display type: Checkbox
with a static list but when run on a page, the control behaves as a radio button only allowing one item selection.
Any other setting required?
Regards
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Apr 18, 2016 8:19 am

If you want multiple choice checkboxes, you have to add one field for each checkbox. If you don't know in advance how many you need, use a Repeater.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#3

Postby kotinkarwak » Mon Apr 18, 2016 9:15 am

Jon,
Can't wrap my head on this so far.
I seem to be able to assign a static list to a field marked as a checkbox and on display I get it showing these as 'options' but the behavior is of a radio button when you do the selections.
This is a bit misleading since this is not what is expected of a checkbox where I would be able to toggle my selection on each line item.
A small example would be appreciated especially using a list and not tied to a table, this will help understand this construct.
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Mon Apr 18, 2016 10:09 am

I seem to be able to assign a static list to a field marked as a checkbox and on display I get it showing these as 'options' but the behavior is of a radio button when you do the selections.
This is a bit misleading since this is not what is expected of a checkbox where I would be able to toggle my selection on each line item.
Yes I agree it's misleading. The problem is that each field can only have a single value so there is currently no way that one field can support multiple values. Therefore you have to implement it differently i.e. one separate checkbox field for each selectable option, not using a list.
0 x


Who is online

Users browsing this forum: No registered users and 21 guests