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 / Display label OnChange...
Power Apps
Answered

Display label OnChange of data card text value

(0) ShareShare
ReportReport
Posted on by 2

I have a datacard with a text control that displays the Title of a record from a list. I would like to display a label if the Title is changed in the edit form to an existing title. I'm attempting to use the LookUp function below in the OnChange event for the text control, but when I enter a duplicate Title and navigate to another control on the edit form the label still doesn't display:

 

LookUp('MyList', Title = DataCardValue1.Text, MyLabel.Visible = true)

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Jerald 

    Set the visible property of the label to 

     

    !IsBlank(LookUp('MyList', Title = DataCardValue1.Text)) && //the datacardvalue is in your list
    DataCardValue1.Text<>ThisItem.Title) // the datacardvalue has been changed,

    and forget about the OnChange event.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard