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 / Power App Data Validat...
Power Apps
Answered

Power App Data Validations

(0) ShareShare
ReportReport
Posted on by 12
urgent Support Power App Data Validation
In power app I have different field with Error Message shown  i want only to show/display these “Error Message” only if user try to hit “submit” Button when field are empty under each field.
Spoiler (Highlight to read)
Spoiler (Highlight to read)
1Capture.PNG

 

Categories:
I have the same question (0)
  • Himanshu90677 Profile Picture
    2 on at

    Can you try

    If(IsBlank(labelAge),Notify("Please enter the value, reason",NotificationType.Error))

  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Berihun1 ,

    I assume you are referring to the red labels under the text controls. You need  Variable here - firstly initiate it at screen OnVisible

    UpdateContext({varError: false})

    Now on your Save button OnSelect put this

    If(
     Value(YourAgeBoxName.Text) > 0 && Value(YourFamilySizeBoxName.Text) > 0,
     UpdateContext({varError: false});
     SubmitForm(YourFormName),
     UpdateContext({varError: true})
    )

    The last bit is the Visible on your error labels

    varError && !(Value(Self.Text) > 0)

    I am assuming here that a number must be entered. Also (if you have not already) set the format to Number

    WarrenBelz_0-1653177869785.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • Berihun1 Profile Picture
    12 on at

    t

    hank you but where do I initiate variables? you mean from the error message visible property?

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Berihun1 ,

    Exactly as per the code I posted.

    • Screen OnVisible
    • Button OnSelect
    • Visible of your error labels
  • Berihun1 Profile Picture
    12 on at

    thank you i got

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 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard