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 / Submit A clear farm
Power Apps
Answered

Submit A clear farm

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hello guys

In the new app that I’m trying to create from the scratch, in the main menu I have an “add button” Which opens an empty form and allows me to input the data .

In case of the user by accident press the submit button with no data in this form, I would like to inform the customer that he needs to input the data into the form.

Is there a Way to Notify the user?
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    Yes there are a few ways. The easiest way is to use the form's unsaved property. This returns a true or false. For the submit button on its DISPLAY MODE property: If(formname.unsaved, DisplayMode.Edit, DisplayMode.Disabled)

     

    Hope this helps.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Anonymous 

    Your suggestion worked properly.

    Thanks for that.

    Now I have two required fields (DataCards) which is showing the message "An entry is required or has an invalid value. Please correct and try again."

    After this step, i would like to reset this 2 fields and allows the user a try insert again.

    Could you please help me?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    Yes, if you have required fields, then PowerApps will display that message if the SUBMITFORM function is called and those fields are not filled in.

     

    If you do not want the SUBMIT button to be enabled until these fields are filled in then you can add some additional criteria to your SUBMIT button's DisplayMode property:

    If(AND(yourformname.unsaved, !IsBlank(datacard1), !IsBlank(datacard2)), DisplayMode.Edit, DisplayMode.Disabled)

     

    If you want to clear the form and add a new record then after your SUBMITFORM function, set the form's DisplayMode to NEW. I think the NewForm function will automatically reset the entire form.

    SUBMITFORM(yourformname); NewForm(yourformname)

     

    Hope this helps.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard