web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display custom text if...
Power Apps
Answered

Display custom text if field is blank

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I am having trouble configuring custom text to display if a field is left blank.

 

I've tried several variations of:

If(Parent.Error="Input number.","Please enter....","")

If(IsBlank(Parent.Error); ""; "Your custom error message")

 

But so far I haven't had any success. All I'm trying to do is basically display "Input number" if a field is left blank and the form is submitted. I realize this probably isn't super difficult, but try as I might, I haven't been able to figure it out.

 

Thanks in advance for your help! Please let me know if more details are required.

Categories:
I have the same question (0)
  • Verified answer
    Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    How about something more like:

     

    Visible = If(IsBlank(InputNumberField.Text), "false", "true")

     

    I covered it in this video Conditional Formatting in PowerApps.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    If you are working with a text input box, the simplest approach is to use the Hint Text property.  

  • Anandavadivelan Profile Picture
    21 on at

    Thank you Shane, and you could do this also if it’s a gallery in place of the text field?

  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Sure. A gallery doesn't show up when it is blank and it also has a Visible property. 

     

    This video covers a lot of these concepts. Conditional formatting in PowerApps. Maybe give it a watch, give it a try, and let us know if you get stuck. Everything you want to do seems to be there. 🙂 

  • Anandavadivelan Profile Picture
    21 on at

    Thanks Shane,  I already subscribe and follow your videos, will check this video. great work by the way!

  • Community Power Platform Member Profile Picture
    on at

    Hi @Shanescows,

     

    Thanks for the input! I'm still a bit confused as to how what you suggested will allow me to change the text that is displayed on error. Am I missing something? 

     

    Thanks so much!

  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Hi Neal - Let's see if we can make sure you get this figured out.

     

    Maybe I misunderstood? I thought your goal was to show a message that says something like "This isn't a valid email address, please try again" or "Name is a required field". Is that your goal? 

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi Shane,

     

    First, thank you so much for taking the time to get back to me on this and for your help in figuring this out. I really do appreciate it!

     

    My goal is to display the error message, "Input number" if a field is left blank and someone tries to submit the form. Currently, the default error message is displayed, and I can't figure out how to change it to what I want.

     

     

     

     

  • Verified answer
    Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Sorry, I was out all afternoon. Can I recommend you do it slightly different? Leave the submit button disabled until the form is filled out. 🙂 I think this video on PowerApps conditional formatting should be exactly what you are looking for. If not happy to help more.

  • Community Power Platform Member Profile Picture
    on at

    Thank you, @Shanescows!

     

    Apologies for the lengthy delay in response! I understand what you're saying, and I think I understand how to implement that. Thank you for your help. 🙂 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard