Checkbox does not remember my choice when reloading the page

Hi,
I have created a repeated group with text in it.
I have formatted it as a checkbox.

My problem is that the users choice of the checkboxes is not saved, so when I reload the page they are all blank again.

Any clue?

Cheers

@vyork state is refreshed with page. You need to store it in Data base if you want to stay there and then have it populate once the page comes back with initial content in element.

Okay, do you mean state the checkbox state in a database?

Hi there, @vyork… yes, you need to store a value in a field so you can reference the field’s value in a condition on the checkbox element that says when the thing’s field equals a certain value, set the checkbox to checked. Make sense?

Best…
Mike

@vyork Yup, that is what I meant. So states are temporary as page is “alive”. So you need to save that piece of information somewhere. That said, the easiest way would be in a bubble database and then search it back on some condition.

Thanks @mikeloc for adding up.

1 Like

Okay, it makes a little sense I think. :slight_smile:
Right now, my database for the todo’s is like this:

When you say value, can that be a Yes / No or what do you mean?
Best

Okay, it makes a little sense I think. :slight_smile:
Right now, my database for the todo’s is like this:

Can I add a value field to that? or what do you mean?
Best

Yes,
Create a “marked” attribute type boolean (yes/no) and
on checkbox click should trigger and action to set yes the attribute in there.

Then set initial value or autobinding for it.

I think I almost got, but I get a privacy error?
I haven’t tried that before?
have I done it Correctly?


@vyork go to data, privacy, set some rule and mark autobinding of attributes.

Wow it worked!!
Thank you so much!

@vyork you can mark last comment as solved so it helps future searchers with same issue.