Getting a button to call on a text input to update a datacardvalue

Copper Contributor

Hello All,

 

I am new to PowerApps so I am not familiar with the formulas and everything for it. I have a List that I have created an App for. It is an inventory list. What I am trying to do is create a button that will update the Quantity field of the list (DataCardValue20). I have a button for adding and removing and a text input field (TextInput1) for the user to type in a number for the buttons to call on and remove or add to the quantity field.

I have the following formulas setup for each button:

Add Button

 

UpdateContext({DataCardValue20: DataCardValue20+TextInput1});Reset(TextInput1)

 

Remove Button

 

UpdateContext({DataCardValue20: DataCardValue20-TextInput1});Reset(TextInput1)

 

Whenever the button is pressed, it does nothing. Do I have this setup correctly, am I missing something, or do I just have the formula completely wrong for what I am trying to do?

0 Replies