Saving Checkbox Selection When Editing Repeater Row

Hi everyone, I’ve built a repeater with add, edit, and delete functions (see my project below). However, in “edit” mode I’m struggling to make a change to the checkbox (Client field) stick when clicking Save.

Please can anyone help?

Thanks

EditRepeaterRows.rp (77.4 KB)

Hi JopSmith!

What you will want to do is add a column in the repeater to keep track of the selected state of the checkbox (True vs False) and then edit the OnItemLoad of the repeater to set the selected state of the checkbox to selected vs de-selected, depending on the value of this column.

So you can add a column, e.g. [[Item.Selected]], to your repeater. Using the OnClick of your “Save” button, update the row of the repeater to the selected option of the “Client field” checkbox using the LVAR1 local variable:

This will update your [[Item.Selected]] column to a value of either “True” or “False”. You can then use these values in the OnItemLoad of the repeater to set the checkbox to selected or de-selected:

I’ve edited your file to demonstrate this. Hope it helps!

EditRepeaterRows_EDIT.rp (79.9 KB)

1 Like