How To: Show Different Information on the Same Form to Different Users

The objective of this example is to use one Form with different Form states for different events of the Workflow. Note that the SmartObject properties as displayed in the Views below are only for illustrative purposes and the only properties used in this scenario will be ID, Name, Surname, Manager Comments, Employee Comments and Rating.

For this example, we are using the Performance Appraisal Workflow. We want to achieve the following with this Workflow:

The Workflow is a simple Workflow where the employee completes the Appraisal Form to start the Workflow and is then routed to the manager to view and complete the Performance Appraisal Workflow as shown below

We've created a SmartObject with the Performance Appraisal properties required and used the SmartObject to create the following Item Views:

Create Performance Appraisal View

Performance Appraisal View

We then created a Form containing both Views and added a Submit Action button as shown below:

Performance Appraisal Form

Following is an explanation of the steps that are performed on each View and on the Form:

The employee opens the Performance Appraisal Form and see only the Create Performance Appraisal View as the other View and the Submit button are hidden from this event.

Once the Performance Appraisal Form is initialized, the following happens:

The user will therefore only see the Create Performance Appraisal View. The employee completes the details on the View and click Create Form.

Once Create Form is clicked, the following happens:

The employee is now able to see the Performance Appraisal View on the same Form. He is however unable to see the Manager comments field or the Rating field as these are hidden. The employee completes the Form and click on Submit.

Once the Submit action button is clicked, the following happens:

The manager receives a worklist item in his worklist and opens the item. When opening the worklist item, the following happens:

The manager is able to view the appraisal details of the employee and capture comments and other details. He is also able to see the Manager comments field and the Rating field as these are not hidden from his view.

The application and runtime experience of this scenario are explained in the related topics

For a similar scenario using Workflow Task states, see the following article:

How to use the Workflow Task state in Workflow Integration

K2 smartforms Product Documentation: User Guide4.6.10
Video Links Learn Support
No videos found for this article
K2 on YouTube
No Additional links found for this article
No self-learning content for this article
Try some scenarios...
No relevant support links available for this article