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 / Required field validat...
Power Apps
Answered

Required field validation not working properly

(1) ShareShare
ReportReport
Posted on by 96
I have a powerapp new form where i have set few fields as required to true. When i click on submit button which uses SubmitForm(Form1) code, the required field validation triggers and it shows correct validation error message as below. 
 
 
Once i change the error message Text property from Parent.Error to something meaningful as below, the error message doesn't go away even though i reset the form on Cancel button Click using ResetForm(Form1). May i know why? If i set it back to Parent.Error and then click Cancel button, the form resets properly. 
 
I have the same question (0)
  • Verified answer
    11manish Profile Picture
    2,126 on at
    The error message doesn’t clear because replacing Parent.Error breaks its connection to the form’s validation state.
     
    To fix this, keep Parent.Error in your formula (or control visibility via a variable) so that ResetForm() can properly reset the error messages.
     
    try below :
     
    Keep Parent.Error and enhance it:
     
    If(
        !IsBlank(Parent.Error),
        "Please fill this field",
        ""
    )
  • Suggested answer
    oyepanky Profile Picture
    527 on at
    Hi Bro,

    This happens because you replaced Parent.Error with static text, so it no longer depends on form validation state.

    Keep Text dynamic and control visibility instead:
     

    Error Label → Text 

    "Finance type is required"

    Error Label → Visible

    !IsBlank(Parent.Error)

    Alternative (Best Practice) - Use default
    Text = Parent.Error

    Why Issue Happens
    Parent.Error auto-clears on ResetForm()
    Static text does NOT reset → stays visible

    Use Visible property for control
    Don’t hardcode validation logic in Text

    Best Regards,
    Pankaj Jangid (OyePanky)
    Power Platform Developer
    Website: https://dialforit.com
    YouTube: https://www.youtube.com/@Oyepanky
     
     

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
Vish WR Profile Picture

Vish WR 936

#2
11manish Profile Picture

11manish 628

#3
Valantis Profile Picture

Valantis 604

Last 30 days Overall leaderboard