Hi @Sriku
I would add a button in the gallery like your picture. Then in the OnSelect property of that button I would do this:
Add a Switch to check the status for that Line using ThisItem.Status
In the Switch depending on the Status, Navigate to where you want to go.
I made an assumption that Create, Update and View would go to the Same Screen and show the Same Form,
But you would pass in the FormMode (this is a property ON the Form Control) and I would do that by passing a Context Variable called _FormMode.
Switch(ThisItem.Status,
"New Request",
Navigate(FormScreenName, Transition.None, { _FormMode: New })
,
"Form on Draft",
Navigate(NotSureWhere)
,
"Awaiting SignOff",
Not Sure what to put here
,
"PLB Signoff Deferred",
Navigate(FormScreenName, Transition.None, { _FormMode: Update })
,
"PLB Signed Off",
Navigate(FormScreenName, Transition.None, { _FormMode: View})
);
In your Forms DefaultMode property
Switch(_FormMode,
"Update",
FormMode.Edit
,
"View"
FormMode.View
,
"New",
FormMode.New
);
And Bingo what you asked for.
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey