I have an entity form with a Submit button (as normal). I've added a Workflow button (using the ActionButtonConfiguration section on the AdditonalSettings tab of the EntityForm record). The button is configured to run a specific workflow. All works fine.
However, if a portal user opens the form, enters some data and presses the workflow button (but doesn't press the save button) then the workflow runs (as expected) but the form isn't saved, so the workflow doesn't see the new data that the user has entered (because it isn't saved).
This is confusing for the user - there's no obvious indication that the form needs to be saved before they can run the workflow.
Is there a way to either (a) have the workflow button save the record before running the workflow, or (b) determine if the form is dirty and if so then disable the workflow button?
Thanks
Mike