Hi,
I have a Powerapps form which is feeding into a Sharepoint list - one of the fields is a Choice field on Sharepoint with "New", "Submitted", "Rejected" etc as options.
I have the Default of this field setup as follows :
If(
Request.Mode = FormMode.New,
{Value: "New"},
{Value: ThisItem.Status}
)
This sets the field to "New" if the form is opened in New Form mode. I have a submit button which I am trying to make change this value to "Submitted" prior to submitting the form, then other buttons which will come later (Approve and Reject buttons) which will change this value to Rejected or Approved. Not sure exactly how to do this though. I've tried the following on the "Submit" button :
Set(Status, "Submitted")
+
SubmitForm(Request);
Now I understand why this isn't working - basically all I'm doing here is updating a Global variable called "Status" and not my Datacard called Status. I'm just not sure on the correct code to update the Status Datacard.
Had a bit of a dig but can't find anyone with this exact issue. Any help appreciated 🙂