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 / Text assign on button ...
Power Apps
Answered

Text assign on button click

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

If I click a button then it should assign some text for ex: "Hi" to a text box.

 

How can I achieve this?

 

Capture.PNG

 

If I click this button that "Text" should change to "Hi".

Categories:
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Gopi,

     

    About the button control, set its Onselect property to UpdateContext({Test:"Hi"})
    About the Text box control, set its Text property to Test.

     

    Then when the button is clicked, “Hi” would be in the Text box. Hope this can be a reference for you.

     

    More details about PowerApps UpdateContext function, please refer to this article:
    https://powerapps.microsoft.com/en-us/tutorials/function-updatecontext/

     

    Best regards,
    Mabel Mao

  • shahidsaud Profile Picture
    5 on at

    I dont understand this statement "Then when the button is clicked, “Hi” would be in the Text box. Hope this can be a reference for you." Coz when I try to add TextInput1.Text=Test, it says circular reference.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard