cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HN
Helper I
Helper I

Toggle or interchange the text

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.

1 REPLY 1
bdodu
Responsive Resident
Responsive Resident

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.

 

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (5,081)