cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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"

1 REPLY 1
Highlighted
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:

TextInputText

 

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,002)