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 / Form Validation Not wo...
Power Apps
Answered

Form Validation Not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a basic form that is connected to a sharepoint list. I have marked all the required fields as required and their cards do have the property of required equals true.  Second screen shot shows the Submit button code. Not sure if that is correct or not but from examples found online, I believe that it should.

Current Behavior: When the submit button is clicked there is no error message and no red border applied. Form isn't submitted to the sharepoint list.

Expected Behavior: When the Submit button is clicked all required fields that aren't filled out should have an error message and red border. Form is not submitted.

 

kramer_0-1669040722192.png

kramer_1-1669040849328.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Anonymous 

     

    Actually, you can just use the SubmitForm(Form3) directly.

     

    Power Apps has a built-in function to check if all the required fields have values.

     

    May I know why you are checking on whether the Form is valid? Cause the code you are using will never run because of Form3.Valid will always return false.

    If(Form3.Valid,SubmitForm(Form3));

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I swear I tried that before and it didn't work, but now it is working. Thank you!!

    kramer_0-1669041563797.png

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    @Anonymous I would suggest that when you spend too long hours on the PowerApps, try to give yourself a break. And also close the whole browser and relaunch the editor again. Sometimes a cache refresh and brain refresh fixes a lot of issues in PowerApps.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @cha_cha That is actually prolly what happened. I had this open for a very long time and did a reboot over the weekend. I appreciate the advice and I am going to have to keep that in mind moving forward. Thank you!!

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 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard