I am kind of new to PowerApps and will try to explain my situation below.
I have a field that is being populated on button click. The way I did this was to put VarFormStatus
under text for the field value, then OnClick
of the Submit button I have:
UpdateContext({varFormStatus: "Contracts"});Reset(Status); SubmitForm(SharePointForm1)
I then have another button that is set to visible:
If(Status.Text = "Contracts", true, false)
After I submit I see that "Contracts" did save in the Status field because it shows up in my SharePoint list. The problem is, when I go back into the form, the button that is supposed to appear is still hidden. Then when I look at the form, Contracts is not showing up in the Status field. If I hit submit again, it all works and if reopen the form without refreshing the screen everything works as it should.
It looks like refreshing the page is what is making "Contracts" disappear from the Power Apps form. Any help would be greatly appreciated in this, thank you.