Hiding Options in Workbrain Form Approvals

When working with forms and workflows in Workbrain, defining the workflow is as easy as drawing a line between two nodes in the Workflow Editor. We call this a branch. A text caption must also be defined for each branch, as that will be the command used to direct the workflow down that branch. When user input is required at a node in the workflow, such as an approval or rejection, these text captions are displayed to the user as options. The options typically would be "Accept" or "Deny".

Occasionally, we will need additional branches that the workflow could take. One example could be "Escalate", in which we want the form to route to a different user if no action is taken after a set time. I won't address how to actually time the form out in this scenario, but we certainly don't want that "Escalate" option to be displayed to the user. While there is not a configurable field for this in the Workflow Editor, it is a quick Javascript hack to hide this from the user. Let me explain how.