Validate selected users

Validation of selected user

You can create the rule to check if a valid responsible person is assigned to an item.

To add the rule:

1. Open a workspace, open a workflow app inside a workspace and click Fields.

2. Create the Responsible Person field (ID: Responsible) of the User type and drag it to the form.

3. Go to Workflow and click a required step or transition.

4. In the Validation Rules tab, click Add Rule to create a new rule and type the following expression:

 

EQUALS(

   $Responsible, ID(

       ""account.2""

   )

)

5. Type the rule name and the validation message that will be displayed if entered data don't match the rule conditions. Click Save.

To check how it works, create a new workflow task and select a user as responsible. Move the workflow task through workflow. On entering the required step or on performing the required transition the validation message will be shown to you, if the selected user cannot be assigned as responsible person. You must select another user to enter the step or perform the transition.

 

Limiting the choice of users to several possible variants

Expand our previous example so that the rule sets the list of possible variants. The syntax of the modified expression is as follows:

 

NOTCONTAINS(

   list(

       ID(

           ""account.1""

       ), ID(

           ""account.2""

       )

   ), $Responsible

)

Type the rule name and the validation message text for the new rule and click Save.

If selected user is not valid the following message will be displayed.

Attachments
There are no attachments for this article.
Feedback
Security Code
Related Articles
About Single Sign-On
Viewed 84 times since Wed, Dec 5, 2018

Using custom email notifications
Viewed 56 times since Wed, Dec 5, 2018

Reporting
Viewed 48 times since Wed, Dec 5, 2018

Creating Steps
Viewed 44 times since Wed, Dec 5, 2018

How to set up Document Review process in Comindware Tracker
Viewed 43 times since Wed, Dec 5, 2018

Synchronizing Tasks
Viewed 44 times since Wed, Dec 5, 2018

Registering Products at Comindware Website
Viewed 81 times since Wed, Dec 5, 2018

Before you start
Viewed 46 times since Wed, Dec 5, 2018

Creating a Task Or Document By E-mail
Viewed 48 times since Wed, Dec 5, 2018

Sаving Or Printing The Workflow Scheme
Viewed 74 times since Wed, Dec 5, 2018