Associate a function with a location in the app
Summarize
Summary of Associate a function with a location in the app
In ServiceNow Mobile App Builder, each function you create for an app must be associated with a specific location within the app interface. This association defines where and how the function appears and operates for the end users, enabling tailored navigation and interactions. You can assign functions to various locations such as top menus, swipes, fields, and more to enhance user experience and functionality across different screens.
Show less
Function Locations and Their Uses
- Launcher Screen Header Functions: Allow navigation to specific parameterized record screens (e.g., user profiles, carts) from the launcher header.
- Chart Header Functions: Enable users to view records represented in a chart by tapping the chart header function icon.
- Field Functions: Allow users to change field values directly on details screens by adding functions to specific screen fields.
- Footer Functions: Add actionable buttons at the bottom of various screens (record details, embedded sections, maps, lists) to trigger functions.
- On Tap Functions: Trigger functions when users tap on records within a list, commonly used for navigation to other screens.
- Top Menu Functions: Suitable for less frequent actions or when multiple actions exceed footer capacity, added to the top menu of a screen.
- Quick Action Functions: Provide shortcuts accessible via icons on launcher screens—Android users see a plus icon, iOS users see an ellipsis icon.
- Swipe Functions: Enable swipe gestures on list or map screens to initiate actions; supports leading (right swipe) and trailing (left swipe) functions with up to three per direction.
- Top Icon Functions: Adds a single button in the app bar on record screens for quick access to an action or item.
- Custom Map Bottom Drawer Functions: Specific to Indoor Wayfinding custom map screens; provide one or more shortcut actions accessible via a button or a "more" menu icon.
Practical Considerations for ServiceNow Customers
- Functions must be uniquely instantiated for each location; previous function instances cannot be reused.
- Display labels for each function instance define the user-visible name of the function.
- Function placement details are typically auto-populated based on the screen context, ensuring accurate association.
- Configuring functions appropriately enhances navigation, user interaction, and access to key app features.
- Each function location supports specific screen types and user interactions, so choosing the right location aligns with intended user workflows.
Expected Outcomes
By associating functions with appropriate app locations, ServiceNow customers can create intuitive and efficient mobile app experiences. Users gain easy access to navigation, data actions, and shortcuts tailored to their context, improving productivity and engagement within the app environment.
For each function you create for an app, you must associate it with a specific location. You can associate most functions with a top menu, a swipe, or a specific field.
Launcher screen header functions
Launcher screen header functions allow your users to navigate to a specific parametrized record screen. Some common examples include navigating to a users profile, or navigating to a cart. For details on creating parametrized record screens, see Configure a parameterized record screen. For details on how to use these record screens in a launcher screen header, see Configure a launcher screen header. |
Chart header functions
Chart header functions enable your users to navigate to a specific set of records from a chart screen. When a user is viewing a chart, they can click on the chart header function ( |
Field functions
Field functions enable your end users to change the value of a field. Field functions only apply to items on the details screen in a displayed area.
For more information on how to create field functions, see Configure a details screen for a record screen. |
Footer functions
Footer functions enable your end users to add an action on the bottom of a record screen. Supported screens for the footer function are: record details screen, record embedded section screen, dynamic segments in a record screen, map screen, and list screens.
For more details on how to create a footer function, see Use your navigation function as a footer function. |
On tap functions
Use the on tap function instance to trigger a function when a user taps on a record in a list. This function location can, for example, navigate a user to another screen when they tap a record. On tap
functions are configured on list item config records, which are used in any screen that needs to display a list of records.
|
Top menu functions
Use top menu function location for less frequently used actions, and on record screens where you have more actions than fit conveniently in the footer.
For more details on how to create a top menu function, see Use your navigation function as a top menu selection. |
Quick action functions
Use the quick action item location to provide your users with a shortcut to an item or action in your launcher screens. Users access quick actions by tapping the quick action icon.
For details on configuring quick actions, see Quick actions. |
Swipe functions
The swipe function location applies to screens that display a list, including a map screen. Swipe functions can be initiated from two directions, swiping to the right initiates leading swipe function and
swiping to the left initiates trailing swipe functions. You can display three functions per direction.
For more details on how to create a standard function, see Configure a navigation to a screen. |
Top icon functions
|
The top icon function is a button location on the record screen top app bar. Use the top icon action to provide your users with an additional shortcut to an item or to actions in your record screen. Only one top icon function can be added to each record screen. |
|
Custom map bottom drawer functions
|
The custom map bottom drawer functions apply to the custom map screen for Indoor Wayfinding experiences. Use the custom map bottom drawer functions to provide your users with a shortcut to actions from Indoor Wayfinding experiences. One or more custom map bottom drawer functions can be added to a custom map screen. If only one custom map bottom drawer function is configured, users see the action button for the function with the configured icon and labels. If more than one function is configured, all the functions appear
under the
more
menu icon ( |
|