title: Setting textbox text value on button click
body: <p>I have a from in PowerApps with labels and textboxes. By default textboxes are empty. There is a Button named "Copy last row" when use will click on this button some sample values should be displayed in textboxes. </p>
  
  <p>I checked on internet and the following solution was suggested by PowerApp support. </p>
  
  <p>You need to set the text box' text property to this:  </p>
  
  <pre><code> If(HasBeenPressed, "Hello", "GoodBye")  
  </code></pre>
  
  <p>You also need to set the button's onselect property to this:  </p>
  
  <pre><code>UpdateContext({HasBeenPressed: true})
  </code></pre>
  
  <p>or for more fun,     </p>
  
  <pre><code>UpdateContext({HasBeenPressed: !HasBeenPressed})
  </code></pre>
  
  <p>But when I go to the properties of my textbox there is no such property like 'TEXT'.  </p>