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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,493)