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 Apps
Answered

Data Validation

(0) ShareShare
ReportReport
Posted on by 76

.

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

    @Anonymous33 - assuming the Required property on the DataCards for your mandatory fields have been set to true, a simpler option would be to apply the below to the Visible property of the submit Button:

     

    Form1.Valid
  • Anonymous33 Profile Picture
    76 on at

    Thanks Amik, I added it in the Visible property already of the submit button. However, is my formula correct? there are still errors popping up 🙂 

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

    @Anonymous33 - no idea, I cannot see your app.

  • Anonymous33 Profile Picture
    76 on at

    .

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Anonymous33 - you can also check use Valid property on your Submit Button. 

     

    1. Remove all the code your using to check for blanks, none of it is needed. Replace with:

     

    If(
     Form1.Valid,
     SubmitForm(Form1),
     Notify(
     "Required information is missing",
     NotificationType.Error
     )
    )
    

     

    2. It is not wise to assume the SubmitForm will always be successful. This section belongs on the OnSuccess property of the Edit Form:

     

    Notify("Success");Navigate(Screen3)

     

  • Anonymous33 Profile Picture
    76 on at

    Thanks, it worked! However, i cant find the onsuccess property 

     

    Anonymous33_0-1712620303941.png

     

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

    @Anonymous33 - the OnSucess property is a property of the Edit Form control.

  • Anonymous33 Profile Picture
    76 on at

    Everything is fixed and working! Thank you very much for your help! 

  • Becky2210 Profile Picture
    53 on at

    Hey this works for me however I have a multi tab form so form1,form2,form3,form4 which I then patch together and submit on the last tab… 

     

    how would I add validations into this code to accommodate the rest of the forms and not just form1? 

    this is my code so far.. 

     

    If(Form1.Valid,

    If(currentTab < 4, UpdateContext({currentTab:currentTab + 1})),

    Notify("Please Complete all Mandatory Fields",NotificationType.Error, 10000))

     

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard