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 / PowerApps: Get Text of...
Power Apps
Answered

PowerApps: Get Text of ErrorMessage Label

(0) ShareShare
ReportReport
Posted on by 7

Hello everyone, 

I am building a PowerApp with a form to enter Data into a Sharepoint list. This is working fine. However, I want to validate the input, before I submit the form. I am happy with the validation and as soon as the input is not valid anymore, the app automatically displays the corresponding error message below the form input. 

 

Now I am trying to disable the Submit-Button as soon as the error-message is shown. I added the following code to the DisplayMode of the button: 

 

 

If(
 !IsBlank(ErrorMessage8.Text);
 DisplayMode.Disabled;
 DisplayMode.Edit
)

 

 

Even though the ErrorMessage8 has Text in it, in the button it is saying the ErrorMessage8.Text is empty:

schucht_0-1641918068257.png

 

schucht_1-1641918087041.png

schucht_2-1641918105010.png

 

What do I need to do in order to access the text of the ErrorMessage (or any other) from the Button? 

 

Thanks for your help!

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @schucht ,

    It is not an elegant solution, but it is efficient in your situation:

    If(
     Len(ErrorMessage8.Text)>0;
     DisplayMode.Disabled;
     DisplayMode.Edit
    )

    Hope it helps !

  • schucht Profile Picture
    7 on at

    Unfortunately this does not work. It seems like I cannot access the Text Property of ErrorMessage8. It is always empty or the length is always 0.

    schucht_0-1641929589273.png

     

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

    @schucht @gabibalaban ,

    This is a bug that still is not fixed - see this post

  • schucht Profile Picture
    7 on at

    Thank you very much! 

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard