You should be able to do that using the
UpdateContext
function to create a context variable that tracks the status of the flow.
In the
OnSelect
property of your
Submit
button:
UpdateContext({conFlowComplete: YourFlow.Run(parameters).Success})
The result of the flow gets assigned to
conFlowComplete
.
In the
DisplayMode
property of your button:
If(conFlowComplete = "Yes", DisplayMode.Edit, DisplayMode.Disabled)
This will disable the button if the flow has been triggered correctly.