Creating a form rule

 

Form Rules management enables users to define specific, automated behaviors within K Inventory forms, offering adaptability for each company’s business processes.

 

This feature is not available on the Mobile version.

 

1. In the menu on the left of the screen, click on Settings then on Form rules.

 

List of form rulesList of form rules

 

2. Click on Create a form rule.

 

3. Go to Informationfill in the information required to create your new form rule:

  • Form rule name
  • Select the type of form
  • Select whether the form rule is Activated or Disabled

 

For the moment, only the Quick Update form is configurable. Other form types will soon be customizable.

 

4. In the Conditions tab section Conditions tab, fill in the information needed to define the criteria for applying the form rule:

  • Field: Field selection field on which the form rule will be based
  • Selection of application criteria
  • Definition of the value to be applied

 

5. Go to Actions to be carried out, enter the actions to be taken if the criteria defined in section Conditions section are validated:

  • Type of action : selection of the action to be carried out if the criteria are validated
  • Field : Field in which the action will be carried out
  • Value : Value to be updated (not applicable if action type is Empty field)

 

List of available action types :

  • Display an error
  • Make field mandatory
  • Hide field
  • Empty the field
  • Make the field read-only

 

In the example below, we’re going to set up a new form rule on quick update forms to dynamically display or not the “Project” field in relation to the value of the “Project mode?” field.

 

6. Go to Informationfill in the information required to create your new form rule:

  • Form rule name : Dynamic display of Project field
  • Trigger action : Quick update
  • Form rule status : Activated

 

Creating a form rule

 

7. In the Conditions tab section Conditions tab, fill in the information needed to define the criteria for applying the form rule:

  • Select the relevant field: Project mode ?
  • Criteria selection : Equal to
  • Value applied : No

 

8. Go to Actions to be carried out, section, enter the actions to be taken if the criteria defined in the Conditions section are validated:

  • Type of action : Hide field
  • Field : Project
  • Value: No action required

 

Creation - Form rule Dynamic display of project field - informationCreating form rule conditions

 

9. To check that the form rule has been correctly applied, click on Quick updateto select a folder and the appropriate form.

 

Result of automatic display of the Project field

 

In the example below, we’ll set up a new form rule to make the Description field mandatory if the Status field value is “In transit”.

 

6. Go to Informationfill in the information required to create your new form rule:

  • Business rule name : Make the Description field mandatory on transfer
  • Trigger action : Quick update
  • Form rule status : Activated

 

Creation - Make the Description field mandatory - information

Creating a form rule

 

7. In the Conditions tab section Conditions tab, fill in the information needed to define the criteria for applying the form rule:

  • Field selection: Status
  • Criteria selection : Contains
  • Value applied : In transit

 

8. Go to Actions to be carried out, section, enter the actions to be taken if the criteria defined in the Conditions section are validated:

  • Type of action : Display error
  • Field : Description
  • Value : The Description field is mandatory

 

Creation - Make the Description field mandatory - Conditions

Creating form rule conditions

 

9. To check that the form rule has been correctly applied, click on Quick updateto select a folder and the appropriate form.

 

Creation - Form rule Make the Description field mandatory - VerificationResult of error message display on Description field

Dynamic display of the Project field

In the example below, we’re going to set up a new form rule on quick update forms to dynamically display or not the “Project” field in relation to the value of the “Project mode?” field.

 

6. Go to Informationfill in the information required to create your new form rule:

  • Form rule name : Dynamic display of Project field
  • Trigger action : Quick update
  • Form rule status : Activated

 

Creating a form rule

 

7. In the Conditions tab section Conditions tab, fill in the information needed to define the criteria for applying the form rule:

  • Select the relevant field: Project mode ?
  • Criteria selection : Equal to
  • Value applied : No

 

8. Go to Actions to be carried out, section, enter the actions to be taken if the criteria defined in the Conditions section are validated:

  • Type of action : Hide field
  • Field : Project
  • Value: No action required

 

Creation - Form rule Dynamic display of project field - informationCreating form rule conditions

 

9. To check that the form rule has been correctly applied, click on Quick updateto select a folder and the appropriate form.

 

Result of automatic display of the Project field

 

Display a customized error message

In the example below, we’ll set up a new form rule to make the Description field mandatory if the Status field value is “In transit”.

 

6. Go to Informationfill in the information required to create your new form rule:

  • Business rule name : Make the Description field mandatory on transfer
  • Trigger action : Quick update
  • Form rule status : Activated

 

Creation - Make the Description field mandatory - information

Creating a form rule

 

7. In the Conditions tab section Conditions tab, fill in the information needed to define the criteria for applying the form rule:

  • Field selection: Status
  • Criteria selection : Contains
  • Value applied : In transit

 

8. Go to Actions to be carried out, section, enter the actions to be taken if the criteria defined in the Conditions section are validated:

  • Type of action : Display error
  • Field : Description
  • Value : The Description field is mandatory

 

Creation - Make the Description field mandatory - Conditions

Creating form rule conditions

 

9. To check that the form rule has been correctly applied, click on Quick updateto select a folder and the appropriate form.

 

Creation - Form rule Make the Description field mandatory - VerificationResult of error message display on Description field

To continue browsing, here are a few articles related to this page: