I have a button named "Buy Stock" that take me to another page to answer some questions, once it is answered they click the Submit button. I want when they submit the button to Disable the "Buy Stock" so they can't go back and click again to answer again.
On the Start APP:
Set(
varBuyingStocks,
!IsBlank(
LookUp(BuyingStocks,
EmployeeEmail=VarUserEmail
)
)
);
On The Buy Stocks Button - Display Mode
If(varBuyingStocks,DisplayMode.Disabled,DisplayMode.Edit)
And on the Submit Button I added
Set(
varBuyingStocks,
true
);
Once I click on it it works great for the first time and disabled the button. However, we I delete the info from the SharePoint and refresh the connecter from PowerApps, the button suppose to be enabled cause there is no data. However the button still be disabled. What I am doing wrong? Thanks in advance for your help
Solved! Go to Solution.
You refresh the data source but your variable is on App.OnStart so in play mode you need to reopen the app and in edit mode you need to click "Run On Start" to initiate the variable
You refresh the data source but your variable is on App.OnStart so in play mode you need to reopen the app and in edit mode you need to click "Run On Start" to initiate the variable
Thank you so much. That was easy.
glad it worked
User | Count |
---|---|
156 | |
94 | |
82 | |
77 | |
58 |
User | Count |
---|---|
195 | |
175 | |
103 | |
96 | |
89 |