Announcements
I want to do data validation for all text inputs field in a gallery. if any text input is blank the submit button should be disable.
@whykay1029
!IsBlank(Textinput1.Text)&&!IsBlank(Textinput2.Text)&& etc in the Visible property of the button.
@Drrickryp, i have tried what you solution, it only work the first item in gallery not all items in the gallery.
@whykay1029 Use the following formula in the Display mode property of u'r Button,
If(CountIf(myGallery.AllItems, IsBlank(TextInput1) || IsBlank(TextInput2))>0, DisplayMode.Disabled, DisplayMode.Edit)
Replace myGallery with u'r gallery name and TextInput1, TextInput2 etc., with the names of the TextInputs in u'r gallery.
It appears that your save button is inside the gallery. If that is the case, add ThisItem.IsSelected to the string. It works fine in my screenshots:
@CNT, your solution work fine. I want to check with date field too.
The save button is not in the gallery. I want to check with date field too.
@whykay1029 just add one more condition || IsBlank(DatePicker1) and it should work.
@CNT, thanks for your help,it is working as you suggested.
@whykay1029 Glad to help. 😊
Please remember to give a 👍 and accept the solution so that it will be helpful for others.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 345 Most Valuable Professional
11manish 207 Super User 2026 Season 2
Mohsin Ali 177