Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1376
  • Last Modified:

How to add a button to start workflow in DispForm in WSS sharepoint?

I want to add a custom button in the DispForm to run a specific workflow which similar if you click "Workflow" button from the FormToolBar, then select specific workflow, then click "Start" button.

Any advise?
Thank you.

1 Solution
1. Try creating a custom action for the list item for every workflow you need. Not exactly a button, but the feel will be similar. http://www.codestore.net/store.nsf/unid/BLOG-20100811-0741

2. Create a custom field and change the display logic so that it displays a button with the WF name. http://sharepointmagazine.net/articles/customizing-the-user-experience-of-sharepoint-custom-fields-deep-dive-part-5-of-6

3. Edit the page and create a html button that calls a Javascript function. The function can then call a Webservice to start your WF. http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx http://darrenjohnstone.net/2007/05/28/querying-a-sharepoint-list-with-javascript/

dickchanAuthor Commented:
I ceated a hyperlink at DispForm.

It will load a workflow initiate page as below.


But i still need to click "Start" Button to run the workflow, any idea can i run the workflow directly after click the hyperlink?

I am new to javascript, could you advise some sample code?
Thank you.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now