Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Button to add text to a TextInput field

I'm trying to add text to a TextInput field when a button is pressed.


So if the button is pressed and TextInput1 = "text" then TextInput2 would = "text"


Then if the button is pessed again TextInput2 would equal "texttext" then click again and TextInput2 would equal "texttexttext"

Super User
Super User

Re: Button to add text to a TextInput field

Hi @JakeGardner


The way to do this is to build the text that you want to display into a variable and to set the Default property of Textput2 to the value of this variable.


Here's the formula you would add to the OnSelect property of your button to build the text into a variable called TextInputText.


UpdateContext({TextInputText: TextInputText & TextInput1.Text})

Next, set the Default property of TextInput2 to:




Helpful resources


Microsoft Ignite

This will be a conference that you do not want to miss!


New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,703)