Form Rules

Form Rules allow you to define rules to automate certain actions on form fields based on custom conditions.

Supported Form Types: Incidents request forms, service request forms, change forms,  problem forms, and release forms.

Form Rules are executed at the client-side only.

Creating a Form Rule

You can create form rules under  Setup > Templates & Forms > Form Rules or from the respective incident, service, or change templates.

Incident/Service Request Form Rules

1. Go to Setup > Templates & Forms > Form Rules.

2. Choose the preferred type from the dropdown: Incident Request or Service Request.
 

3. Click New Rule.

4. Under the Rule Definition section,

        i. Provide relevant Name and Description.

        ii. Rule Applies for: Select the preferred users to whom the rule should be applied. The available options are All Users, Requesters, and Technicians.

       iii. Rule Applies to: Choose the preferred option.

        iv. Execute when a request is:

              a. Choose the preferred checkbox(es):

              b. Also, use the dropdown to choose the preferred option:

Note: On Form Submit event supports only the actions Set Value to Field and Clear Field Value.

5. Under the Conditions section, configure the criteria based on which the rule should be applied.

  1. Use the dropdown to select the preferred field.
  2. Select the preferred condition: is, is not, is empty, or is not empty.
  3. Choose the relevant field value.

 

You can create multiple criteria. To add a new criterion, click the plus icon and repeat the above steps. To remove a criterion, click the minus icon against the preferred criterion.

6.  Under the Actions section, configure the action to be performed. The available options are as follows.

# - These options are available only when Rule applies to is set to Selected Templates.

7. Finally, click Save

Alternatively, you can also create rules in the template editor under Form Rules tab. To access it, go to Setup >> Templates & Forms >> Select the preferred template (Incident Template or Service Template) and then go to Form Rules tab by creating a new template or editing an existing template.
 

Note: Use the toggle under Rule options to enable/disable the rule if required.
Form Rules cannot be executed upon spot editing of request fields in the Details page. However, users have the option to disable spot editing in requets when Form Rules are created, using the Advanced Portal Settings.

Sample Request Form Rule:

Change Form Rules

1. Go to Setup >> Templates & Forms >> Form Rules.

2. Choose Change from the drop-down.
 

3. Click New Rule.

4. Under the Rule Definition section,

       i. Provide relevant Name and Description.

      ii. Rule Applies for: Select the preferred users to whom the rule should be applied. The available options for are All Users, Requesters, Technicians, and All Users Except Change Manager, Change Owner, and SDChangeManager. 
     
     iii. Rule Applies to: Choose the preferred option.

     iv. Execute on:

          a. Choose the preferred checkbox(es):

     v. In the event of: Use the dropdown to choose the preferred option:

Note: Form Submit event supports only the actions Set Value to Field, Clear Field Value, and Execute Custom Script.

5. Under the Conditions section, configure the criteria based on which the rule should be applied.

  1. Use the dropdown to select the preferred field.

  2. Select the preferred condition: is, is not, is empty, or is not empty, and etc.

  3. Choose the relevant field value.

You can create multiple criteria. To add a new criterion, click the plus icon and repeat the above steps. To remove a criterion, click the minus icon against the preferred criterion.


6.  Under the Actions section, configure the action to be performed. The available options are as follows.

7. Finally, click Save

Alternatively, you can also create rules in the template editor under Form Rules tab. To access it, go to Setup >> Templates & Forms >> Select Change Template and then go to Form Rules tab by creating a new template or editing an existing template.

Note: Use the toggle under Rule options to enable/disable the rule if required.
Form Rules cannot be executed upon spot editing of Change Fields in the Details page. However, users have the option to disable spot editing in changes when Form Rules are created, using the Advanced Portal Settings.


Sample change form rule:

 

Release Form Rules

1. Go to Setup >> Templates & Forms >> Form Rules.

2. Choose Release Form Rules from the drop-down:

3. Click New Rule.

4.Under the Rule Definition section,

  1. Provide a relevant Name and Description.

  2. Rule Applies for: Select the preferred users for whose actions the rule should be applied. The available options are:

  1. Rule Applies to: Choose the preferred option.

  1. Execute when a release is:

  1. Choose the preferred checkboxes:

v. In the event of: Use the dropdown to choose the preferred option:

 

On Form Submit event supports only the actions Set Value to Field and Clear Field Value.

 

5.  Under the Conditions section, configure the criteria based on which the rule should be applied.

  1. Use the dropdown to select the preferred field.

  2. Select the preferred condition: is, is not, is empty, or is not empty.

  3. Choose the relevant field value.

You can create multiple criteria. To add a new criterion, click Add  and repeat the above steps. To remove a criterion, click Remove  against your preferred criterion.

6.  Under the Actions section, configure the action to be performed. The available options are as follows:

7. Finally, click Save

Alternatively, you can also create rules in the template editor under the Form Rules tab. To access it, go to Setup >> Templates & Forms >> Select the preferred template (Incident Template or Service Template) and then go to the Form Rules tab by creating a new template or editing an existing template.

Use the toggle under Rule Options to disable the rule if required.
Form Rules cannot be executed upon spot editing of Release Fields in the Details page. However, users have the option to disable spot editing in releases when Form Rules are created, using the Advanced Portal Settings.


Sample release form rule:

  

   

Operations performed on Form Rules from List View page

Action on Rules

On clicking the gear icon next to a rule, you get to choose actions like Edit, Delete, Disable/ Enable a rule.

 

The actions Delete, Disable, and Enable can also be performed on multiple rules simultaneously. To perform bulk actions, select multiple rules and choose the preferred option from the Actions drop-down