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 / Toggle or interchange ...
Power Apps
Unanswered

Toggle or interchange the text

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to toggle and interchange the text between two text boxes for example if i have the textbox1 text=hello and textbox2 text=world then i want that the interchange the values mean textbox1 text=world and textbox2 text=Hello.

Categories:
  • bdodu Profile Picture
    399 on at

    i suppose you would like to do it when a button is pressed or may be a different event.

    Therefore:

     

    On form -  OnVisible: UpdateContext({text1:"Hello",text2:"World"})

    On each textinput - Default: text1 and Default: text2

     

    On button OnSelect: UpdateContext({text1:text2,text2:text1})

     

    I've tested and it works fine. Of course we can place the command from OnSelect on a different controls'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

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard