Create a dynamic user option

  • The later steps (after Step 6) in this guideline may vary somewhat, depending on which rules and conditions you have selected. For example, if you select a Pick List, the screen on which you specify the Mandatory and Visible conditions appears after the screen on which you specify the values of the Pick List. However, the functionality remains the same.
  • The fields condition and query fields leverage Service Manager's Dynamic View Dependency (DVD) mechanism. Through this mechanism, you can enter an expression to evaluate some value, and determine whether the Mandatory or Visible condition is met. For example, suppose you have a check box (CheckBox1). Depending on whether that check box is selected, you want a text box to appear, so that a user can add additional information. To do this, you would set the Visible Condition to an expression that evaluates the selected status of the check box. For more information on how to write these conditions and their behaviors, see Notes on expressions in dynamic fields and see the Dynamic View Dependencies entry in the Service Manager Help Center.

To specify a mandatory or visible condition on a dynamic field, follow these steps:

  1. In the Service Manager client, navigate Service Catalog > Administration > Manage Items.

  2. Enter the name of the catalog item you wish to modify and then click Search.

  3. Select the catalog item from the list.

    You must select an item of the "item" type. You cannot select a bundle or category.
  4. In the Catalog Item Definition, click User Selections.

  5. Click Add User Selection.

  6. Specify a Name, a Label, and the Display Type and then click Next.

  7. Specify the Type (if present), Mandatory Condition, and Visible Condition as required by your business needs.

  8. Click Next. If you have specified the Display Type as Text and the Type as String, you are brought to the Validation Rule screen. Here, you may specify no validation or a validation based on a query run on some table ( "Record in Table").