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 / In EditForm, need to k...
Power Apps
Answered

In EditForm, need to know when required fields are not filled (form is not valid)

(0) ShareShare
ReportReport
Posted on by 282

I have a long edit form, that has a few required fields.

 

Right now, if the form is not valid (missing required fields), when the user clicks "Submit" it goes nowhere.

If they scroll up, they see the field error messages.

But, there is no indication that there are errors, and so users are confused as to why it isn't submitting.

 

I would like to present an error BELOW THE SUBMIT BUTTON anytime the form is invalid and the SUBMIT button is clicked (to guide the users to scroll up).

Categories:
  • Verified answer
    Inogic Profile Picture
    1,297 Moderator on at

    Hi @rkirk2k ,

    You can follow the below steps to show an error message when all the mandatory fields are not filled:

     

    1.on the OnSelect property of the button check all the mandatory fields using IsBlank method, if all mandatory fields are filled then only form will filled otherwise it will show an error message in notification.

     

    If(!IsBlank(DataCardValue1.Text),SubmitForm(Form2),Notify("Please fill all the mandatory fields",NotificationType.Error))

     

     

    Please refer the below screenshot:

     

    Inogic_0-1692190085705.png

     

    If all fields are not filled and user tries to submit the form then he will get an error message as shown below:

     

    Inogic_1-1692190085716.png

     

    Thanks!

     

    Inogic Professional Services Division

    Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

    Drop an email at crm@inogic.com

    Services:  http://www.inogic.com/services/

    Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

  • rkirk2k Profile Picture
    282 on at

    Thank you for that. 

    The only issue with this solution is that the validation errors in the form (on each data card) do not display upon clicking SUBMIT (Only the notification shows).

     

    I really need the users to see the NOTIFICATION to get them to scroll through, AND would also like the error messages on each required data card to show. Is that possible here?

  • Verified answer
    rkirk2k Profile Picture
    282 on at

    So, I took what you provided, and applied it to the entire form instead of ONE of the required fields. I did it this way...

     

    If(NewForm.Valid, SubmitForm(NewForm), Notify("Please complete all required fields", NotificationType.Error))

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard