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

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: rduym
Jul 11, 2007
1:57 am
Active Directory Authentication Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management IT Security Knowledge Depot LDAP Monitoring Open Enterprise Server Passwords Reporting Secure Access Supported Troubleshooting Workflow