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 Label Text Prope...
Power Apps
Answered

Error Label Text Property Always Blank

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

 

I'm having some trouble using form error messages. Whenever I use logic to determine the text value for the error message, I cannot use the text value outside of that label.

 

Example using logic:

 

ErrorMessage1 text:   svincent240_0-1643633523266.png

 

Another label trying to display the same text:   svincent240_1-1643633558286.png

 

Result using a second label (black "MESSAGE:"): svincent240_2-1643633614483.png

 

If I change the error message text to just "TEST", it works as expected. Any ideas on what I am doing wrong here?

 

Thank you!

 

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    If this is in your form and you are trying to access outside of the form, then what is your DefaultMode of the Form and the Item property of the form?

     

    If the form is in New mode by default, you should not see the problems you are.  If it is in Edit mode, then you need to supply a valid record for the Item property of the Form.  Same for View mode...need a valid Item record.

     

    So either set the form DefaultMode to New, or provide a valid record for the Item or set the Item to Defaults(yourDataSource).

     

    I hope this is helpful for you.

  • svincent240 Profile Picture
    6 on at

    Thank you!!! I've changed the DefaultMode to New and it is working. 

     

    My intention is to use the presence of a non-blank error message to disable the submit button as part of the form validation. Changing this allows me to use the error message text status to control that button even though it is not within the form.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

     

    Sounds good.

    Don't forget, the form already provides a .Valid property that can be used for what you are trying with the Labels!

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard