Tab widget mapping form

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 3 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 Tab Widget Mapping Form

    The tab widget mapping form in Employee Service Management allows users to display and control the visibility of widgets on a tab. This feature is essential for tailoring the Employee Center experience to meet specific needs and user access levels.

    Show full answer Show less

    Key Features

    • Name: Identifies the widget mapping record for use in widget options.
    • Application: Designates the application associated with the tab, such as Employee Center Pro.
    • Active: Enables the widget on the tab.
    • Order: Sets the display order of the widget on the tab.
    • Tab: Defines the unique name for the associated tab.
    • Accessible by: Specifies user access levels, including options for employees, managers, and others.
    • User criteria: Controls widget visibility based on defined user groups, with precedence given to the "Not Available For" group.
    • Allow employee to control visibility: Lets employees modify the visibility of their profile information.
    • Widget: The actual widget displayed on the tab, requiring mapping to show on the employee profile page.
    • Widget parameters: Comma-separated list of parameters for specific widget configurations, such as enabling email/SMS notifications.

    Key Outcomes

    By utilizing the tab widget mapping form, ServiceNow customers can effectively manage widget visibility and arrangement according to user roles and preferences. This customization enhances user experience by ensuring relevant and appropriate information is readily accessible. Additionally, limiting the number of associated widgets optimizes load times, improving overall performance of the employee profile page.

    You can use the tab widget mapping form to display widgets on a tab and control their visibility.

    Table 1. Tab widget mapping form
    Field Description
    Name Name of the widget-mapping record that is available in the widgetTitle variable of the widget options object. Use this variable value as the widget title.
    Application Application of the tab. For example, you can select one of the applications such as Employee Center Pro or Employee Center Pro Kiosk.
    Active Option to activate the widget in the tab.
    Order Order number in which you want the widget to appear on the tab.
    Tab Unique name of the tab that you want to associate with.
    Accessible by Users who can view the widgets.
    • Employee only
    • Manager only
    • Employee and manager
    • Everyone
    • Manager and Other Managers
    • Employee, Manager, and Other Managers
    • User criteria: Provide the access only to specific users, groups, and roles with the user criteria. The widget is visible to users based on the following:
      • Available For: User group for whom the widget is visible. Define and select the user group based on your business needs.
      • Not Available For: User group for whom the widget isn’t visible. Define and select the user group based on your business needs.
      Values that are defined in the Not Available For group take precedence over the values defined in the Available For group. If both aren’t defined, the widget is visible to all users. For more information on widget visibility based on user criteria, see User Criteria output.
      Note:
      Use the user criteria cautiously because the profile page load time can take longer based on your criteria.
    Based on your selection, the profile visibility is either locked or made available for editing by the employee.
    Allow employee to control visibility This field appears only when you select one of the Employee only, Employee and manager, or Everyone options.
    Note:
    To view and change the visibility setting, embed the Public Profile Visibility widget inside the configured widget.
    When you select the value as true, employees can see the edit option used to modify the visibility settings. The modified visibility setting (employee_profile.widget_visibility) is stored in the user preference table.
    Note:
    Settings configured in the Allow employee to control visibility field take precedence over the settings configured in the Accessible by field to display the information. Employees can change the admin configuration and determine how much of the profile information is visible to the public.

    Here’s a sample code for invoking the Public Profile Visibility widget. data.publicProfileWidget = $sp.getWidget("public_profile_visibility", { tabWidgetMappingId: options.tabWidgetMappingId ? options.tabWidgetMappingId : "", isUserSelectionEnabled: options.isUserSelectionEnabled ? options.isUserSelectionEnabled : "", widgetTitle: options.widgetTitle ? options.widgetTitle : “” });

    To embed it in your widget use the sp-widget directive. For example, <sp-widget widget="data.publicProfileWidget"></sp-widget>

    This field value is available in the isUserSelectionEnabled variable of the widget options object.

    Widget Widget to display on the tab.
    Note:
    Only when you map a widget to the tab, the information displays inside the tab on the employee profile page.

    When the widget is visible on the UI, set the isVisible variable value to true in the server script data object to indicate the widget visibility. For example, data.isVisible = true.

    For optimal tab load time, use a max of seven associated widgets, which can take 250 ms or equivalent.

    Note:
    If the widget type is Employee Profile Overview, you can select the set of sections to be displayed under this widget.
    Widget parameters Comma-separated list of widget parameters auto-populated with default values.

    For the Employee Schedule widget, to send Email or SMS, specify the following widget parameters enable_send_email and enable_send_sms values to true. For more information, see Configure the mail and SMS send to self.

    For default calendar view, specify default_calendar_view value to day or week or month.