Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Form Validation Not working

(0) ShareShare
ReportReport
Posted on by

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:
  • Re: Form Validation Not working

    @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!!

  • cha_cha Profile Picture
    cha_cha 4,904 on at
    Re: Form Validation Not working

    @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.

  • Re: Form Validation Not working

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

    kramer_0-1669041563797.png

     

  • Verified answer
    cha_cha Profile Picture
    cha_cha 4,904 on at
    Re: Form Validation Not working

    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));

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard