Validate entered durations

Validation of entered duration

You can set the rule which validates the entered duration. Let's create the example rule which validates, if the value a user entered for total work exceeds the maximum duration or not.

To add the rule:

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

2. Create the Maximum Duration field (ID: Maximum_Duration) of the Duration 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:

 

GREATER(

   $Maximum_Duration, duration(

       ""PT12H""

   )

)

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 type the duration value in appropriate box. 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 you set the invalid duration. You must type the valid duration to continue moving through workflow.

 

Validate that entered duration matches specified restrictions

You can set the lower and upper bounds for duration entered by user.

To add the rule:

1. Create one more field of the Duration type for the lower bound and drag it to the form (name: Duration, ID: Duration).

2. Go to Workflow and click required step or transition.

3. Click Add to create a new rule and type the following rule expression:

 

OR(

   GREATER(

       $Maximum_Duration, DURATION(

           ""PT24H""

       )

   ), LESS(

       $Duration, DURATION(

           ""PT1H""

       )

   )

)

4. Type the rule name and the validation message text. Click Save.

To check how it works, create a new workflow task and set the minimum and maximum duration values are out of bounds. 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. Enter the valid duration values to go further.

Attachments
There are no attachments for this article.
Feedback
Security Code
Related Articles
Literals
Viewed 44 times since Wed, Dec 5, 2018

Configuring subtasks initiated by a workflow
Viewed 73 times since Wed, Dec 5, 2018

Sales FAQ
Viewed 118 times since Wed, Dec 5, 2018

Creating a Related Task Or Document
Viewed 43 times since Wed, Dec 5, 2018

How To Log Time Spent On a Task
Viewed 45 times since Wed, Dec 5, 2018

Installing Comindware Tracker for Outlook
Viewed 50 times since Wed, Dec 5, 2018

Using gmail as an outgoing server for Email Notifications in Comindware Tracker
Viewed 45 times since Wed, Dec 5, 2018

Adding And Configuring Widgets
Viewed 78 times since Wed, Dec 5, 2018

Adding a Wide/Small Logo
Viewed 45 times since Wed, Dec 5, 2018

Return the list of the items the current item is referenced by
Viewed 49 times since Wed, Dec 5, 2018