You can use a call to StartWorkflow to improve the user experience with starting a workflow.
Example:
1 2 3 4 5 6 7 |
startWorkflow({ listName:"My List", itemID:258, workflowName:"My workflow", parameters:[{Name:"Param1", Value:"Something"}, {Name:"Param2", Value:"Something Else"}], after:function() { alert("OK") } } |
Reference
GIT Hub Link – spservices-startworkflow.js
Another GIT Hub Link – http://sympmarc.github.io/SPServices/core/web-services/Workflow/StartWorkflow.html