HI @Anonymous,
Do you want to display the error message when multiple Checkboxes have not been selected within your Gallery?
Based on the needs that you mentioned, I think the CountRows function and Filter function could achieve your needs.
I have made a test on my side, please take a try with the following workaround:
Set the OnSelect property of the "Detect" button to following:
If(
CountRows(Filter(Gallery1.AllItems, Checkbox1.Value=true)) <= 1, /* <- Checkbox1 represents the Checkbox control within my Gallery*/
Notify("Question Unanswered", NotificationType.Error)
)
On your side, you should type:
If(
CountRows(Filter(YourGallery.AllItems, Checkbox7_2.Value=true)) <= 1, /* <- Checkbox7_2 represents the Checkbox control within your Gallery*/
Notify("Question Unanswered", NotificationType.Error)
)
In addition, if you want to display an error message when a single or multiple checkboxes haven't been selected inside your gallery, please take a try with the following formula:
If(
CountRows(Filter(YourGallery.AllItems, Checkbox7_2.Value=true)) < 1, /* <- Checkbox7_2 represents the Checkbox control within your Gallery*/
Notify("Question Unanswered", NotificationType.Error)
)
Or
If(
CountRows(Filter(YourGallery.AllItems, Checkbox7_2.Value=true)) = 0, /* <- Checkbox7_2 represents the Checkbox control within your Gallery*/
Notify("Question Unanswered", NotificationType.Error)
)
Please check the attached GIF screenshot for more details:
Best regards,
Kris