Showing results for 
Search instead for 
Did you mean: 
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.

Responsive Resident
Responsive Resident

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



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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,502)