I want no more checkboxes in my gallery to be selected if there are already 10 selected. However, I want the user to be able to unselect checked boxes if they want to change their answer. This formula does not let the user make changes once they hit 10. How can I fix this? If(Value(Label6.Text) = 10, DisplayMode.Disabled, DisplayMode.Edit)
Can you show us the formula for the label?
I think there may be a complexity in the way the Gallery and Checkboxes will work. You can try
On the oncheck to the Checkbox:
Collect(vCount,ThisItem)
On the uncheck:
Remove(vCount,ThisItem)
Formula for Label:
CountRows(vCount)
I am not sure what that is supposed to do. My count label works. I just can't have all the checkboxes disbaled, I only want the unchecked boxes to be disabled so the user can make changes. @leyburn19
Try
If(Value(Label6.Text) = 10 And Checkbox?.Value=false, DisplayMode.Disabled, DisplayMode.Edit)
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
181 | |
137 | |
96 | |
83 |