Mobile UI Rules
Summarize
Summary of Mobile UI Rules
Mobile UI Rules enable ServiceNow customers to customize the mobile user interface by modifying how fields and elements behave and appear on mobile views and input form screens. These rules help streamline mobile workflows by dynamically controlling visibility, editability, styling, and calculations based on defined conditions.
Show less
Key Features
- Mobile UI Rules and Actions: Each rule targets a specific mobile view or input form screen and requires at least one associated action that defines the specific UI modification.
- Calculations on Input Forms: Automate field value calculations using inputs from other fields, enhancing accuracy and reducing manual effort. (Applicable only to input form screens.)
- UI Styling: Apply customized styles such as background colors, font colors, and icons via JSON code to mobile view elements to improve visual clarity. (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: Show or hide inputs or elements dynamically to present a clean, context-relevant UI on mobile views.
- Read-Only and Mandatory Inputs: Set inputs as read-only or mandatory to enforce data integrity and prevent unwanted edits. (Applicable only to input form screens.)
Practical Benefits
By leveraging Mobile UI Rules, customers can deliver intuitive, efficient, and error-resistant mobile experiences tailored to user context. This improves data accuracy, reduces clutter, guides user input, and enhances overall mobile usability.
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.- 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.- 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.- 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. - 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.