web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery Repeating Tabl...
Power Apps
Unanswered

Gallery Repeating Table - Data Validation

(0) ShareShare
ReportReport
Posted on by
Form1.Mode = FormMode.New && IsBlank(Input_1), Notify( "Source Name requires a value", Error ), Form1.Mode = FormMode.New && IsBlank(Input_2), Notify( "Server Name requires a value", Error ), Form1.Mode = FormMode.New && IsBlank(Input_3), Notify( "Source IP requires a value", Error )

 

 

indhaa_1-1628964960374.png

 

So it just submit the form after validating the second row. It prompt error msg for the row I'm in if it doesn't meet the validation.

If I edit the first row it validate it and submit the form even if second row is incomplete.

 

It just validate the row my mouse is in.

Can help to validate all the rows in my code @RandyHayes 

Hi

 

I have created a repeating table and have set data validation on the columns. During testing found that it is only validating the gallery row I'm currently editing, I want it to verify all the rows.

 

So if I'm editing the second row it does not check the first row. Hope I'm clear

 

indhaa_2-1628965111886.png

 

 

 

If( 
Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @indhaa ,

     

    Please check if something like below code with help in your case ?  You might need to change the code according to your logic.

     

     

     

    if( Form1.Mode = FormMode.New
     ForAll(
     gallery.AllItems,
     Collect(
     colTemp,
     IsBlank(Thisrecord.Input_1) || IsBlank(Thisrecord.Input_2) || IsBlank(Thisrecord.Input_3)
    		 )
     )
     );
    	If(
     !IsEmpty(colTemp),
     Notify(
     "Blank data present",
     NotificationType.Error
     ))

     

     

     

  • indhaa Profile Picture
    on at

    Hi,

     

    So each row is saved to a collection before it can be submitted. So I just check the collection if any row is blank or prevent saving if blank?

     

    How the code will be to check collection row. Same logic

  • indhaa Profile Picture
    on at

    So I will apply the same code to the save button. I think that will do it

    I will let you know 

     

    Thanks 

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @indhaa ,

     

    This code will collect the rows having blank input_1 or input_2 or input_3 values in each row. You just need to check if this collection is empty or not. If empty all the rows have values in the mentioned controls else it will display error message. 

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @indhaa ,

     

    Just to check. Is this issue fixed ? 

  • indhaa Profile Picture
    on at

    Hi,

     

    I wont know how many rows will be there. How do I apply that.

     

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @indhaa ,

    Did you tried add the code which the mentioned previously ? 

     

    attached here for your convivence.

     

    if( Form1.Mode = FormMode.New
     ForAll(
     gallery.AllItems,
     Collect(
     colTemp,
     IsBlank(Thisrecord.Input_1) || IsBlank(Thisrecord.Input_2) || IsBlank(Thisrecord.Input_3)
    		 )
     )
     );
    	If(
     !IsEmpty(colTemp),
     Notify(
     "Blank data present",
     NotificationType.Error
     ))

     

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#2
Haque Profile Picture

Haque 69

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard