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 / If statement: Form sub...
Power Apps
Unanswered

If statement: Form submit and gives message if info is valid

(0) ShareShare
ReportReport
Posted on by 35

Hello!

 

I am working on a registration app and looking at writing an if statement on my submit button. 

 

I am looking for something that will go along the lines of

If required fields on form are completed - Notify "Success!" ELSE Notify "Fail!"

I wrote out the below statement on my submit button but all it will return is Fail no matter what is or is not filled out on the form.

thatonechick10_0-1684166375726.png

 

Example of the form: (fields marked with * are required fields.)

thatonechick10_1-1684166484363.png

 

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    I would use:

    If(Form1.Valid, SubmitForm(Form1))   -> on the submit button.

    Notify("Success"); Reset(Form1)          -> in the OnSuccess property of the form

    Notify("Failure")                                   -> in the OnFailure property of the form

     

    Let us know how this funcitons for you!

  • thatonechick10 Profile Picture
    35 on at

    everything seems to be working on the above mentioned BUT the failure message. 

  • mmollet Profile Picture
    3,187 on at

    And to be clear that should only work if the submission fails. To test that I assume you can just leave out a required field and try to submit. What happens when you...

    ...submit a valid entry? Does it show up in SP?

    ...submit an invalid entry? Does it show up in SP?

     

    What is still missing for your app solution to be where you want it to be at?

     

  • thatonechick10 Profile Picture
    35 on at

    If I leave the form fully blank even though I have 5 required fields set, nothing goes to the SP List this form is tied to. Also no error message is given.

    The form just sits there and by default previously, the required text fields would get a red border to highlight which ones failed but now that is not happening either. 


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

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard