Hi everyone,
I have a repeat group with a checkbox for each row and I should handle these features:
- If the checkboxes are all unchecked the mark read button is disabled
- When I select one or more cheboxes, the mark read button is enabled and clicking it updates the field “read” for the selected rows
What is the best method to handle this scenario?
Hi there, @anyverse… if I understand your post correctly, a custom state that holds a list of the same things being shown in the repeating group should do the trick.
When a checkbox is clicked, run a workflow event that adds the current cell’s thing to the custom state list only when the thing is not already in the list (you would want to remove the thing from the list only when it is already there, and you would have a separate workflow event for that). Add a condition to the button that says when the custom state list is not empty (or its count is greater than 0), the button is enabled. When the button is clicked, make changes to the custom state’s list of things, and update those things accordingly.
Hope this helps.
Best…
Mike
2 Likes
for anyone who stumbles on this thread, here is a great video explaining this concept in further detail by @romanmg