Mobile UI Rules

  • Release version: Yokohama
  • Updated January 30, 2025
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Mobile UI Rules

    Mobile UI Rules enable you to customize the mobile user interface in ServiceNow by modifying mobile views and input form screens. These rules help tailor the mobile experience by hiding or showing fields, making fields mandatory or read-only, performing field value calculations, disabling buttons, and applying UI styles. To implement these changes, you create a mobile UI rule and associate it with one or more mobile UI actions that define specific modifications.

    Show full answer Show less

    Key Features

    • Mobile UI Rules: Apply to individual mobile views or input form screens and are triggered based on specified conditions for target records.
    • Mobile UI Rule Actions: Define the specific operations performed, such as calculations, UI styling, disabling buttons, visibility control, and setting fields as mandatory or read-only.
    • Calculations: Perform field value calculations on input form screen fields using values from other fields to automate data entry and reduce errors. (Applicable only to input form screens.)
    • UI Styling: Customize mobile view elements using JSON to set background colors, font colors, and text decorator icons. (Applicable only to mobile views.)
    • Disable Buttons: Conditionally disable buttons to simplify the interface and prevent unintended actions. (Applicable only to mobile views.)
    • Visibility Control: Hide or display inputs and mobile view elements based on relevance to users, maintaining a clean and user-friendly interface.
    • Read-Only and Mandatory Inputs: Enforce input requirements by making fields mandatory or read-only to ensure data integrity and prevent unintentional edits. (Applicable only to input form screens.)

    Practical Use for ServiceNow Customers

    By leveraging Mobile UI Rules, customers can create dynamic and context-sensitive mobile interfaces that improve user experience and data accuracy. These rules help streamline mobile workflows by presenting only relevant information, enforcing data entry standards, and enhancing visual appeal. Implementing these rules reduces user errors, simplifies mobile forms, and optimizes mobile UI for specific business needs.

    Use Mobile UI rules to build rules that modify the mobile UI. These modifications can include hiding and displaying fields, making fields mandatory, performing field value calculations, and applying UI styles to different UI elements.

    Mobile UI rules and actions

    To modify the appearance of your mobile views and input form screens UI, you must create a mobile UI rule, and at least one associated mobile UI action.

    Mobile UI rules
    A mobile UI rule applies to a single mobile view and input form screen. When you create a rule, you select a record to apply the rule to, as well as conditions that define when your rule applies.
    Mobile UI rule actions
    Each mobile UI rule uses mobile UI rule actions. These actions define the changes made to your target record. When you create an action, you select an operation, which defines the kind of change you want to make. You then define a value, which gives the rule more detail on the specifics of the change you're making.

    For more detail on the kinds of changes you can make with mobile UI rules, see the next section. For detailed steps on creating mobile UI rules and actions, see Create a mobile UI rule.

    Available mobile UI rule operations

    Allow calculations on input form screen inputs
    Use calculations to quickly and accurately fill in field values based on calculations you define. These calculations can include values from other fields. These rules can save time and reduce complexity on your mobile screens.
    Note:
    Calculations can only be applied to input form screens.

    Demonstration of a UI rule performing a calculation.

    Apply UI styling to mobile view elements
    Use mobile UI rules to apply UI styling to your screens. Using JSON code, you can set a background color, font color, and text decorator icons.
    Note:
    UI styling is only applicable for mobile views.

    Example UI styles.

    Disable buttons
    Use mobile UI rules to conditionally disable buttons. De-clutter your interface and avoid mistakes by ensuring buttons are only available in situations where your users need them.
    Note:
    The disable buttons option is only applicable for mobile views.

    Disabled buttons in the mobile interface.

    Hide or display inputs or mobile view elements
    Use mobile UI rules to control the visibility of your inputs or elements on your mobile views. Present a clean UI and avoid confusion by displaying inputs only when they are relevant to your users.

    Fields made mandatory using screen UI policies.

    Make inputs read-only or mandatory
    Make your inputs read-only or mandatory to control which inputs are required and which are uneditable. With these rules, you can ensure that required information is added and prevent unintentional editing of fields that do not require updates.
    Note:
    The option to make inputs read only or mandatory can only be applied to input form screens.

    Demonstration of a UI rule performing a calculation