Re: Power App change value of a button when click on the other button
@etharAli
Yes, you cannot set values like that in PowerApps, everything is done via formulas that evaluate their values.
So, what I was looking for with my questioning was context - what was the context of your record. I can see now at least that it appear to be that you are referencing ThisItem, so you are in the Context of the Gallery and therefore, you most likely have the primary key of the record - the ID.
In that case, your Submit button OnSelect action formula should be:
Patch(yourDataSource,
{ID: ThisItem.ID,
Status: {Value: "Approved"}
}
)
This will set the value to approved.
Incidentally, you were trying to use the Pressed property of the button control...it is only true when the button is being pressed...once released, it is false!