Novell is now a part of Micro Focus

Form Field Visibility after a Workflow Task is Claimed

Novell Cool Solutions: Tip
By Rudy Duym

Digg This - Slashdot This

Posted: 11 Jul 2007


How can I make a form field visible only after a workflow task is claimed?


You can do this with a couple of lines of JavaScript. The trick is that until a task is claimed the action buttons like approve, deny, etc., are not present.

So, you can test for the presence of the approve buttons (they can be top, bottom, or both), and if they are not present, you can execute some form script, such as hiding a field. When the form is loaded, the field will show up for a second or so, but then it will be hidden once the script is executed.

Add this code to an onload event of one of the fields:

if (!dojo.byId("ApprovalAction") &&  !dojo.byId("ApprovalAction1") {
  // task is not claimed

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates