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 of the fiel...
Power Apps
Unanswered

Validation of the fields before submitting form

(0) ShareShare
ReportReport
Posted on by 192

Hi all,

I have a canvas app that is connected with SharePoint list and I want to do a validation if the columns are filled in the form when the user is clicking the "Submit Form" button. I have "Save as Draft" button so I need to do the validation from the power app.

I also have fields that are not visible it is depending the services that the user have so I need the validation to be only on visible fields.

I was thinking to do it with "On change" on every column but if he will change the same column again it will count it twice.

 

Thank you for your help!

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @lidor_dayan - have you considered setting the Required property for each of your DataCards to true, and then adding the below expression into the DisplayMode property of the "Submit Form" Button:

     

    If(
     'Your Form'.Valid,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    Note you can make the Required property conditional depending on which fields should be required based on the services.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    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.

    Imran-Ami Khan

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard