Hi @Anonymous ,
A better approach is using Edit Form but only set DisplayMode of the status and Attachments Data Cards be Edit, others set to View.
Your formula need a little modification:
OnSelect of the submit button:
SubmitForm(DetailForm1_2);;
Navigate(...)
OnSuccess of the Edit Form:
Switch(BrowseGallery1_1.Selected.Estado.Value;
"Abierto";
Patch(DataSource;
EditForm.LastSubmit;
...
);
"Progreso";
Patch(DataSource;
EditForm.LastSubmit;
...
)
)
Doc of Switch function for reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if#syntax
Switch( Formula, Match1, Result1 [, Match2, Result2, ... [, DefaultResult ] ] )
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.