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 / error message when mis...
Power Apps
Answered

error message when missing information

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I am trying to put an error message when the text is missing. 

 

UpdateContext({varInitialBlankError:
If(IsBlank(Int_Text.Text),true,false)});

If(varInitialBlankError,Notify("Please enter initial",NotificationType.Error), Patch(ColTryagain, ThisItem,{blowholecheck :Blow_Tog.Value, visualinspection:Visual_Tog.Value, dent_x002c_damage:Dent_Tog.Value, Initial:Int_Text.Text}));


Collect(ColTryagain, {Initial:""})

 

 

With the above, I wished that the boarder line is highlighted in red and "Please enter initial" label pops up when clicking "Save" button.

 

I have 3 issues 

 

Issue 1. Red line and error message are already shown even before clicking "Save" button. Is it possible for them to be active upon clicking?

Screen Shot 2021-09-25 at 2.01.06 am.png

Issue 2. Even though the text is not entered and error is still shown, once I click the "Save" button, it creates a next row. How can I set the button such that it creates next row only if the text is entered?

 

Issue 3. When creating 3rd new row (for example) and the text is not entered, followed by clicking "Save" button, red boarder line and error message are displayed in all rows.

Screen Shot 2021-09-25 at 2.04.43 am.png

 

Thank you

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @dogbural 

     

    1. Label Control

    Set Visible property of Label (Error Message) to 

    IsBlank(Int_Text.Text)

    2. Create New Item - After Save (Means when text found)

     

    If(IsBlank(Int_Text.Text),Notify("Please enter initial",NotificationType.Error), Patch(ColTryagain, ThisItem,{blowholecheck :Blow_Tog.Value, visualinspection:Visual_Tog.Value, dent_x002c_damage:Dent_Tog.Value, Initial:Int_Text.Text});
    Collect(ColTryagain, {Initial:""})
    );
    
    

     

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @dogbural 

     

    Please let us know if anything needs on your post. We can help with this.


    Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

     

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard