'Start Workflow' Workaround (Another option, not server side)

jpetkus01's Avatar

jpetkus01

06 Apr, 2011 07:35 PM

If you have read the other 2 posts on this work around, 'Start Workflow' Workaround and Unset the "Start Workflow" on a submit?, there is also another work around that does not involve putting a script on the server side.

We found that using firefox and the plugin greasemonkey, you can do the same thing from the browser side.

Of course you still need to have the rights to Bypass the workflow for this to work.

  1. If you are using Firefox, get the greasemonkey plugin
  2. Create a new file uncheck.user.js (must end in .user.js)
  3. Paste the following code in the file

// ==UserScript==
// @name Auto Uncheck Workflow
// @namespace me
// @description automatically unchecks the create workflow box when editing a page in cms
// @include http://cms.your.path/entity/edit.act?*
// ==/UserScript==

document.getElementById('doWorkflow').checked = false;
document.getElementById('doWorkflowStateChange').value = 'off';

  1. Make necessary edits to change the path of @include, @namespace can be anything you want. (unique to each script in greasemonkey) & save the file.
  2. In firefox, right click the monkey in the lower right corner and then click manage user scripts.
  3. drag the file to the manage window and the script will be installed and activated.

Optionally, you may want to put in a check to make sure that the element exists before applying the changes, but we have not found it necessary as of yet.

Should be working now, try it out.

You can disable the script from the same menu at any time, or delete it from the manage menu.

This was tested on non admin accounts and they cannot bypass the workflow if they do not have permissions to do so.

Enjoy
Jim

  1. Tim closed this discussion on 21 Jun, 2011 03:39 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac