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 / Collection record vali...
Power Apps
Unanswered

Collection record validation

(0) ShareShare
ReportReport
Posted on by 67

Hello, I have a collection showing in a gallery where users have two fields (amount & date) to populate.

How to validate each row to ensure that both fields have been populated on change?

Thanks. 

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Prav 

     

    When user tries to change the fields in the gallery you would have a button where they click to initiate the save

     

    Disable that button if any of those fields are empty

     

    Example: If you have 2 text fields then you can set the displaymode of the button as

     

    If(IsBlank(TextBox1.Text) || IsBlank(TextBox2.Text),Disabled, Edit)

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Prav Profile Picture
    67 on at

    @RezaDorrani,
    I have something like that setup on Change for both fields.

    If all the records are updated then that would work.

    I would like to enable the Patch button whenever one or a few records has/have been updated i.e not the whole collection?
    I'm thinking to add a flag in the collection when a record has changed then do ForAll to check for incomplete records before doing the Patch.

     

  • RezaDorrani Profile Picture
    12,145 on at
    Yes you would have to do something lile that

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard