Hi guys,
I have requirement.
I have gallery it show the data in label. If the value is wrong I show the error message below the label. If any row has a error, submit button must be disabled. how to achieve this please help me.

Hi guys,
I have requirement.
I have gallery it show the data in label. If the value is wrong I show the error message below the label. If any row has a error, submit button must be disabled. how to achieve this please help me.
If you are working with a gallery of items and want to determine outside of the gallery if there are issues in it (as you mention the submit button), then you can use the items of the gallery to determine this.
You will need a helper method to determine if there are any labels shown as you cannot determine label visibility outside of the gallery.
So, I would recommend instead of using the Visible property of the error label, to instead use the Text property of the label for your condition.
Ex. Instead of something like this on the Visible: ThisItem.someColumn <> "something" which would make your error label visible if the condition was met. Instead set visible to true and use this in the Text property:
If(ThisItem.someColumn <> "something", "Error", Blank())
NOW - you can reference the Text property of the label outside of the gallery.
So, for your DisplayMode property of the button, set it to:
If(CountRows(Filter(yourGallery.AllItems, yourLabel.Text="Error"))>0, Disabled, Edit)
This would give you what you are looking for.
I hope this is helpful for you.