Hey im trying to have onbutton press take text from 2 textboes add them and display it into textbox 3.
i can do it in everyother language but power apps is baffling me.
something like in vb
on button press
textbox3.text = textbox1.text + textbox2.text
or
var txtb1
var txtb2
txtb1 = textbox1.text
txtb2 = textbox2.text
textbox3.text = txtb1 + txtb2
i cant figure out how to get power apps to update a textbox from a button without assigning the textbox text to a dynamic variable.
Thank you
Solved! Go to Solution.
PowerApps doesn't provide a way to directly set the formulas for control properties, but you can achieve your desired behavior by using context variables:
button.onSelect = UpdateContext({textboxSum: textbox1.text + textbox2.text})
textbox3.text = textboxSum
Hi
Allowed me to share.
- Sum(TextInput1.Text, TextInput1_1.Text)
https://powerapps.microsoft.com/en-us/tutorials/function-aggregates/
You can use either:
- Sum( Table, NumericalFormula ), or
- Sum (value1, value2, value3, ...)
Is that what you want?
PowerApps can be quite straightforward instead of declaring either local variable or global variable as of other programming language.
Hope this helps.
PowerApps doesn't provide a way to directly set the formulas for control properties, but you can achieve your desired behavior by using context variables:
button.onSelect = UpdateContext({textboxSum: textbox1.text + textbox2.text})
textbox3.text = textboxSum
Hi
Allowed me to share.
- Sum(TextInput1.Text, TextInput1_1.Text)
https://powerapps.microsoft.com/en-us/tutorials/function-aggregates/
You can use either:
- Sum( Table, NumericalFormula ), or
- Sum (value1, value2, value3, ...)
Is that what you want?
PowerApps can be quite straightforward instead of declaring either local variable or global variable as of other programming language.
Hope this helps.