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 / show error message in ...
Power Apps
Unanswered

show error message in label if field is empty

(0) ShareShare
ReportReport
Posted on by 525

Hello Community Member 

 

@WarrenBelz  or  @BCBuizer glad to get support from you 

 

I want to display error message on create record screen as well my data source from SP list and on form data field I have error message label . 

 

how do I show this error label when someone hit save button without filled data and also don't navigate success screen if user not filled data?

I enabled require property on every DataCard true and also from SharePoint list i make as an require 

 

also I set the message on label text property which I want to show. 

 

mbhatt_0-1681888712989.png

 

Categories:
I have the same question (0)
  • JohnM86 Profile Picture
    590 on at

    You could use something similar to this :

     

    If(IsEmpty('Inputexample.text'), Notify("Please complete this inputexample", NotificationType.Error)

     

    be sure to change out the relevant sections to reflect your input values

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

    Hi @mbhatt ,

    As I mentioned in your previous post, if you change any value in a card where the Required is true, then YourFormName.Valid  (use actual form name) is false until the Form is submitted.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • mbhatt Profile Picture
    525 on at

    Hello 

    @WarrenBelz 

     

    mbhatt_0-1681897262838.png

    its take me to the other screen and i don't want to navigate until data not field not filled .

  • mbhatt Profile Picture
    525 on at

    hello @JohnM86 

     

    do i need to use this on visibile property of data-card error label ? 

    and on save button what should i apply ? and on visible screen do i need any code ? 

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

    @mbhatt ,

    Please take some time to understand the fundamentals of formula construction or you will struggle here.

    If(
     Form1.Valid,
     SubmitForm(Form1);
     Navigate('Success Screen),
     Notify("Compulsory field not completed", NotificationType.Error)
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

    @mbhatt ,

    Please tag who you want to respond to this - three way-conversations are not productive for anyone.

  • JohnM86 Profile Picture
    590 on at

    To give you an insight my error notification is as such : 

     

    If(
    IsBlank(TextInput8.Text) || IsBlank(TextInput8_1.Text) || IsBlank(TextInput8_3.Text) || IsBlank(TextInput8_4.Text) || IsBlank(TextInput8_8.Text) || IsBlank(TextInput8_9.Text) || IsBlank(TextInput8_10.Text) || IsBlank(TextInput8_11.Text) || IsBlank(TextInput8_12.Text),
    Notify("Please fill out all required fields", NotificationType.Error),
    Patch(
    Accounts,
    Defaults(Accounts),
    {
    '🏢 Account Name': TextInput8.Text,
    '☎️ Main Phone': TextInput8_1.Text,
    '👤 Primary Contact': LookUp(
    Contacts,
    '👤 Full Name' = ComboBox8.Selected.'👤 Full Name'
    ),
    '📧 Email': TextInput8_3.Text,
    '🌐 Website': TextInput8_4.Text,
    '🏢 Parent Account': LookUp(
    Accounts,
    '🏢 Account Name' = ComboBox10.Selected.'🏢 Account Name'
    ),
    '🔖 Category': Dropdown5.Selected.Value,
    '📋 Description': TextInput8_7.Text,
    'Address 1: Street 1': TextInput8_8.Text,
    'Address 1: Street 2': TextInput8_9.Text,
    'Address 1: City': TextInput8_10.Text,
    'Address 1: State/Province': TextInput8_11.Text,
    'Address 1: ZIP/Postal Code': TextInput8_12.Text
    }
    );
    Notify("New Account has been Successfully submitted", NotificationType.Success);
    Set(varaddnewaccount, false)
    );

    Reset(TextInput8_1);
    Reset(TextInput8_3);
    Reset(TextInput8_4);
    Reset(TextInput8_7);
    Reset(TextInput8_8);
    Reset(TextInput8_9);
    Reset(TextInput8_10);
    Reset(TextInput8_11);
    Reset(TextInput8_12);
    Reset(Dropdown5);
    Reset(ComboBox10);
    Reset(ComboBox8);

     

    this brings up an error like this and prevents the screen from navigating or in my case setting the varaddnewaccount to false / this is also using the gallery as a form rather than a form, its how I prefer to do it.

     

    JohnM86_0-1681907409940.png

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard