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 / validation inside a form
Power Apps
Unanswered

validation inside a form

(0) ShareShare
ReportReport
Posted on by 61

Hi,

 

When validating your forms, documented approach states to you use

ValidateDataSourceColumn, DataCardValue_123)

 

Does the data source object is stored locally inside my app instance - or does Validate calls the source (datasource) to validate with?

 

My question is about performance optimization during validations, I would like to avoid multiple calls due to multiple validations. The way Validate arguments are written suggest to me it might be calling for pattern to the source - I would like to avoid that especially with forms with dozens of fields  to be validated.

 

Hypothetically, would some kind of alternative approach be possible e.g Validate(formBeingUsedThisItem.FormAttribute, DataCardValue_123)

 

Kind regards,

 

Categories:
I have the same question (0)
  • vaubeee Profile Picture
    533 on at

    Hi @DariuszSzwabo ! You're right: The validation calls the datasource. You could use local validation to prevent database performance issues. I recommend this article by Matthew Devaney Data validation for power apps forms 

    Super insightful on this topic. Maybe Debouncing or triggering validation with OnChange could also work for you.

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up. 

  • DariuszSzwabo Profile Picture
    61 on at

    Hi VauBee,

     

    I have scanned through this article, it suggests 'Data Validation With Logical Expressions' which some people could call 'ifology '. I was hoping to find easier way to support validation of higher number of input attributes than writing if statement for each of them. 

    Using Validate seems to be easier solution form this perspective as the function even returns restriction you created in e.g Dataverse column,

     

    I would like to stay with Validate, but the question is how to avoid bounding and reuse single object I already fetched when opening a new form,

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard