Discuss

Dynamically Check Multiple Checkboxes

On this page

In this tutorial we will show you how to check multiple checkboxes, based on a database value. This is useful if you are using an update record form, or some details page which show multiple checkboxes that rely on a dynamic value. In our case this is our update record page, which shows reservations info:

Screenshot_20|690x394

We insert the values from the checkboxes in our database in a single field, comma separated:

Screenshot_21|690x69

So, let's add the checkboxes on the page. Select where you want to add them:

Screenshot_22|690x393

Select Multiple Checkbox Group:

Screenshot_23|690x393

Change the group label to whatever you need it to be:

Screenshot_24|690x393

You can edit or remove the dummy checkboxes added in the group. Also you can add more. In order to edit a checkbox, just select it in the App Structure then add a value for it:

Screenshot_25|690x393

Then select its label and edit it:

Screenshot_26|690x393

When you are done editing the checkboxes or adding new ones, select the form group holding them(1) and click the dynamic data picker for the value(2):

Screenshot_27|690x393

Select the binding, which returns the checkbox data from your database and click the format data button:

Screenshot_28|690x393

Right click your binding, then open the Manipulation category and select Split:

Screenshot_29|690x393

Set , (comma) in the character field:

Screenshot_30|690x393

Click Select to apply the selection:

Screenshot_31|690x393

And you are done. The multiple checkbox group automatically checks the checkboxes which values are stored in the database:

Screenshot_32|690x393


WapplerPrevious|101x31   WapplerNext|77x31