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 III
Super User III

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

User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (44,692)