7 Posts
tigsphn
7 years ago
3
Topic

Hello, 

I need some help with the dynamic checkbox 

I created a form that shows the name of all registered students in a list so I can select only approved. For this I used the dynamic checkbox.

The problem is that when submitting the form, it registers a maximum of ten items. If I select, for example, 20 checkboxes, it records and displays the content only the first ten. 

I've done tests on different templates, I've done testing on localhost and even asked my hosting increase the max-input-vars PHP. Nothing worked. 

Please, I really need to make this process work.

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

Checkbox dynamic stores all values in single field like abc,cde,ffg,ggg etc, so if your values are long, you easily get over 255 characters limitation. In the field configuration click on "Alter" checkbox at the bottom and change column type to e.g. Varchar 1024 or 2048

7 Posts
tigsphn
7 years ago
1
Level 1

Excellent, it worked perfectly
Thank you very much

Is there a limit? I'm currently working with about 60 names, but if you apply for rooms or larger groups can exceed 200, I changed to VarChar 2048. Is it enough? or is there another way?

4229 Posts
Kadministrator
7 years ago
0
Level 2

You need to calculate how long your string will be - 200 names * average name length (plus one character for comma after each name). If 2048 is not enough you can use text or longtext.

Get a VIP membership