Working with checkboxes and arrays

Hi there,
I have the following task that I want to accomplish.

I have three groups of checkboxes

When a checkbox of group one in clicked I want the user to be able to click on one of the other two groups checkboxes.

If he clicks on the checkbox of the second group, the checkbox of the third group will disappear (this is ok I can figure out how to do this).

The main issue is that I want to do this with arrays or another way but not save to a database.

I was thinking to have three arrays (one for each checkbox group). Somehow repeat through each array and display a relative number of checkboxes for each group.

When clicking on group one, to add an element on the other two arrays, and then based on the checkbox group that it was clicked (second or third) to remove an element from the other array. I mean if I click on the second group checkbox to remove an element from the third group, and if click on the third to remove from the second.

The concept is: First group represents a human action.
Second and third group represent the result of the action.
We want to count actions (first group) and results of it (second and third group)

We dont want to store this in a database this is why I thought of n array, but if database easier then I will go with it.

Thank you in advance

1 Like

@t11 good question !!!

Not sure if I understand you, sounds like kinda tree…but maybe you can do that with some nested rows or queries?

Row Group 1 with Checkboxes
– Row Group 2 with Checkboxes
---- Row Group 3 with Checkboxes

Maybe thats possible with database queries which are nested. But I’m sure with arrays or nested queries even if you dont save any values back (read only) it should be possible…

1 Like

Thank you for your reply. Yes finally developing it with the use of a database, where I actually save values but when user is logged in I just delete them. Although I am sure that client will really apprecieate the fact data can be saved for future reference and analysis. He mostly wants not to use a database in order to make it easier to implement and cut down costs. But unfortunatelly he does not yet know about Wappler. So he still thinks that creating beauty combiined with data through an excellent UX without leveraging costs is impossible.

Thank you