Mobile UI Rules

  • Release version: Australia
  • Updated March 12, 2026
  • 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 allow you to customize the mobile user interface by modifying field visibility, enforcing field requirements, performing calculations, and applying styles to UI elements. These rules enhance user experience by ensuring that the mobile views and input forms are tailored to specific needs.

    Show full answer Show less

    Key Features

    • Mobile UI Rules: These rules apply to a specific mobile view and input form, enabling you to set conditions under which they activate.
    • Mobile UI Actions: Each rule must be paired with actions that dictate the changes made, including operations and defined values for these changes.
    • Calculations: Automate field value entries using calculations based on other input fields, streamlining data entry on input forms.
    • UI Styling: Use JSON code to customize backgrounds, font colors, and icons for mobile views.
    • Button Control: Conditionally disable buttons to reduce interface clutter, ensuring they only appear when necessary.
    • Visibility Management: Control which inputs or elements are visible to users, enhancing clarity and relevance.
    • Input Control: Set fields as mandatory or read-only to manage user input effectively, ensuring critical information is provided without unauthorized changes.

    Key Outcomes

    By effectively utilizing Mobile UI Rules, ServiceNow customers can create a more intuitive and efficient mobile experience, leading to improved data accuracy, reduced user errors, and a cleaner interface that better meets user needs. This customization empowers users to focus on critical tasks without unnecessary distractions, ultimately enhancing productivity.

    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