Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

How to Reference Self.Name

(1) ShareShare
ReportReport
Posted on by 206
Building a PA Canvas screen.
 
I saw a search come back stating that Self.Name was valid, but I don't see it in my environment.  Is this Self.Name a real function? 
 
I can do a workaround calling the tooltip something meaningful related to the text input, and I'm not looking to return the text VALUE, just the name of the control for a variable.
 
Thanks!
Categories:
  • Suggested answer
    Ravindra Jadhav Profile Picture
    Ravindra Jadhav 240 on at
    How to Reference Self.Name
    Not understand your question please share some more info
    You can use self.text property 
     
  • Suggested answer
    FLMike Profile Picture
    FLMike 27,710 on at
    How to Reference Self.Name
    Hi
     
    Sorry, not sure what you mean by you don't see Self.Name
     
    Self.Name is an expression that can be used within ANY of the Properties of a Control.
     
    It references itself, not other controls
     
    ToolTip
    Self.Name
     
    Would make your tooltip the name of the control.

    But you said you want it as a Variable, that part doesn't make sense.
    You want to set it where?

    Just to be clear though, Set is a behavioral function, so you can only put it into things like
    OnSelect
    Reset

    So it would NOT set your variable except in those.
    But if you want it in the tooltip, then you just need to do what I said up there.

    Self.Fill.Color is another example of using Self

    Again, it can only be used to reference properties of the control, whos property HAS this expression/Function in it. 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard