Hi ,
when i click the button i created, it want work because the form is not in edit mode
is there any way to get the form to go into edit mode when i click the button i created,
I tried this
SharePointForm1.Mode=FormMode.View;
SubmitForm(SharePointForm1);
Patch(
'list name',
LookUp('List name', ID = SharePointForm1.LastSubmit.ID),
{Status3: "Yes"}
);
Kind Regards
that is amazing thanks you is there way to have the SharePoint list refresh when it goes back ?
if you want to change an existing record, you use FormMode.Edit
but if you want to create a new record, you use FormMode.New
For more information, you can refer https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-form
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional