Motadata Docs

Request Form Rules

The request form rules enable you to make fields (system and custom) mandatory/non-mandatory, show/hide, enable/disable, set/clear value, or show/hide options based on certain conditions in the request form. These rules are applicable at the time of request creation, edit, or both. This helps you to fetch the required details from the user.

To view the Request Form Rules, navigate to Admin > Request Management > Request Form Rules.

Request Form Rules
Request Form Rules

The page displays a list of already created rules along with the below options:

  1. Search: You can search for the required rule using keywords.
  2. Create Request Form Rule: You can create a request form rule.
  3. Enabled: You can enable or disable a request form rule. By default it is enabled. If disabled the rule will not be applied to the Request Form.
  4. Re-order: You can re-order the rule using drag and drop.
  5. Duplicate: You can create a duplicate rule based on the existing one.
  6. Edit: You can edit the rule to make some changes in it.
  7. Delete: You can delete the unwanted rules. A confirmation message appears. Click Yes to continue or Cancel to stop the process.

Create a Request Form Rule

To create a form rule, follow the below steps:

  1. Click the Create Request Form Rule button on the top-right corner of the page. A popup appears.
Create Request Form Rule
Create Request Form Rule
  1. Enter the following details:
    • Name: Enter the name of the Request Form Rule.
    • Description: Enter a short description about the Request Form Rule.
    • Rule Execution On: Select when you want to execute the rule. The options are:
      • On Create and Edit: Select if you want the form rule to execute at the time of creating or editing a request.
      • On Create: Select if you want the form rule to execute at the time of request creation only.
      • On Edit: Select if you want the form rule to execute at the time of editing the request.
    • Rule Applicable for: Select for whom the rule should be applicable. The options are: All Users, All Technicians, All Requesters, and All Logged-in Users.
    • Rule Event: Select on which event the rule should get executed. The options are:
      • On Form Load: Select to apply the rule when the form loads.
      • On Field Change: Select to apply the rule when the value of a field changes.
      • On Form Submit: Select to apply the rule when the form is submitted.
    • Conditions: Define the conditions here that will be evaluated in the request form to apply the rule. The conditions are grouped into Request Fields, Requester Fields, and Logged-in Users Fields. You can define multiple conditions here. All the conditions work in AND form. It means the rule is applicable only when all the conditions are true.
Adding Conditions in the Request Form Rule
Adding Conditions in the Request Form Rule
    • Condition Parameter: Select a condition parameter from the dropdown list.
    • Operator: Select the operator: In/Not In from the dropdown list.
    • Value: Select the value for condition. You can select multiple values of which the first value will be displayed in full, followed by the count of all additional values selected.

You can also click the Add Condition Group button to add more conditions in the Request Form Rule. Click on Remove All Conditions to remove all the conditions of the Request Form Rule.

    • Action: Select the action and its value(s) for the selected conditions from the given list. In the below figure, the priority field will become mandatory if the Support Technician Group is selected in the request form. You can add more actions using the Add Action button.
Note: The Request Form Rule actions like hide, non-mandate, disable, and clear value may not work for System Fields like Subject, Requester, Status, etc. as their default property has higher priority.
Selecting Action and its Value
Selecting Action and its Value
    • Reverse Actions if conditions are not matched: Enable if you want to reverse the actions when the conditions do not match in the request form. This is available only if Conditions are added.
  1. Once done, click Create.