Xanadu Now Platform Administration 11-7-2024
Xanadu Now Platform Administration 11-7-2024
Company Headquarters
2225 Lawson Lane
Santa Clara, CA 95054
United States
(408)501-8550
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
List administration
Form administration Field administration
Control who
Configure Create and
views and uses data
forms and customize maintain individual
in your instance,
their functions to best data items in your
and how they use
suit your enterprise records on the Now
it, with ServiceNow
demands. Platform.
administrative options.
Form administration
Create and modify forms with a wide variety of tools on the Now
Platform. Give users roles to configure forms with Form Personalization.
Include supplemental info with Annotations, Attachments, and
Formatters. Populate forms automatically with Form Templates, to add
data based on configurable settings. Form UIs are fully customizable, with
desired UI actions, UI policies, and more advanced form configuration
options.
Field administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
List administration
Form configuration
Form configuration involves changing the form layout and the related
list layout. The form layout changes what appears on the form and the
related list layout changes which related lists appear at the bottom of the
form.
Important: Try configuring your forms with Form Builder instead. Form
Builder has all of the Form Designer and Form Layout options. It also
has other robust features that help you configure each aspect of the
form. For more information, see Accessing Form Builder .
Administrators or users with the personalize_form role can use the form
design feature to quickly create new or change existing form views.
Important: Try configuring your forms with Form Builder instead. Form
Builder has all of the Form Designer and Form Layout options. It also
has other robust features that help you configure each aspect of the
form. For more information, see Accessing Form Builder .
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
With form design, you can accomplish the same tasks that you can with
form layout in a graphical tool called the form designer. You can also
access field properties and add information from macros or previously
scripted UI elements.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The page header displays the current table and view being designed.
Each form is tied to a unique table and view combination. For example,
there can only be one form for the incident table default view. Select a
different view to modify different form layouts for a table.
The field navigator allows you to manage fields on the form. It contains
the following elements:
• Fields: Displays a list of existing fields you can add to the current form.
• Field Types: Displays a list of field types you can add to the current form.
Adding a field type to the form layout creates fields in the selected
table when the form layout is saved.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field properties are accessed by clicking the gear icon that appears
when you point to a field in the form layout.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Form layout
The form layout displays a separate cell for each field, section,
annotation, UI element, and related list that is on the form. Each cell has
an identifying label and a handle icon to aid in selecting and moving it.
The location of the cell in the form layout represents its relative position on
the form. Only fields visible on the form layout are displayed on a form.
Form layout
You can move fields to and from the form workspace to display the fields
on the form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. From the list of fields in the Field Navigator, select the field you want
to display from the list of available fields.
5. To remove a field from the form layout, select the field and click the
Remove this field (X) button beside the field label.
6. Click Save.
Procedure
5. Point to the Annotations field and click the gear icon to open
Properties dialog box.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
7. Click Save.
Move sections to and from the form layout to display or remove the
sections on the form.
Procedure
3. Click the (+) button beside the section label to add a section.
6. To delete a section, click the (x) button beside the section label.
7. Click Save.
The following GIF shows how you would use form designer to add
and then delete a form section.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Click Save.
Adding a field creates a dictionary entry for the new column in the
current table. You can create a custom table and then use the form
designer to add fields to the form.
Use the filter to quickly find field types in the field navigator.
Procedure
4. Drag the field type to the location you want it to be on the form.
6. (Optional) Point to a field in the form design area and click the gear
icon to access properties.
7. Click Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Important: Try configuring your forms with Form Builder instead. Form
Builder has all of the Form Designer and Form Layout options. It also
has other robust features that help you configure each aspect of the
form. For more information, see Accessing Form Builder .
Configure form layout to change what appears on the form. You can
perform tasks like changing what fields are visible, embedding lists, and
adding sections and annotations.
Procedure
1. Navigate to a form.
2. Click the form context menu icon ( ) and select Configure > Form
Layout.
3. Using the slushbucket, select the fields and the order in which you
want them to appear.
Available items that appear in green followed by a plus (+) sign
represent related tables. To access fields on these tables, use dot-
walking.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
In Core UI, Form Layout is not responsible for the order of the
Additional Comments and Work Notes fields. For more information on
how to determine the order of these fields, see Customize activities.
4. Click Save.
Warning: Do not add the same field to more than one section
of a form unless the field displays read-only data. Having two
or more instances of an editable field can cause data loss and
prevent the proper functioning of UI and data policies.
What to do next
Through form configuration, you can also add new fields to the form,
which creates columns to the table that underlies the form. See Add and
customize a field in a table for more information.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related lists display records in another table that have a relationship with
the current record.
Procedure
2. Click the form context menu icon and select Configure > Related
Lists.
3. Using the slushbucket, select the related list to display on the form.
4. Click Save.
Related lists appear at the bottom of the form.
Procedure
1. Navigate to a form.
2. Click the form context menu icon ( ) and select Configure > Form
Layout.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
7. Select either Plain Text or HTML for the data type and enter the
annotation in the text box.
For example, select the Text annotation type, the HTML data
type, and enter <span style="color:red">Select the primary
location:</span>. The text appears red on the form.
8. Click Save.
Toggle annotations
Procedure
1. Navigate to a form.
Users can expand or collapse form sections to show or hide the fields
they need. If you have tabs enabled, each form section appears on a
separate tab. The default Change Request form is an example of a form
with multiple sections as shown in the following image.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Right-click the form header and select Configure > Form Layout.
2. In the Form view and section area below the slushbucket, click New
in the Section list.
3. In the Section caption field, give the new section a title, then click
OK.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
b. Filter for the table that contains the section you want to delete.
For example, the Incident table. The name of the form section to
be deleted is displayed in the Caption field.
c. Select the check box beside the form section to delete, and then
select Delete from the Actions on selected rows menu.
Change the place where fields split on a form by moving the split section
indicators in a slushbucket.
Procedure
1. Navigate to a form.
2. Click the form context menu icon ( ) and select Configure > Form
Layout.
• |- begin_split -|
• |- split -|
• |- end_split -|
4. Click Save.
Tabbed forms offer a useful way to make forms and related lists take up
less space by reducing the scrolling that must be done to navigate the
form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Tabbed forms
Form sections and related lists are tabbed separately, each with their
own tab line. A user always sees the first form section. All sections after
that can be tabbed. Tabs are enabled by default for new instances.
Tabbed forms are enabled by default for new instances. A system user
preference with the name tabbed.forms specifies whether the tabbed
UI is used by default for all users. Users can change this preference as
described in this procedure.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can embed lists within a form. When a list is embedded in a form,
any changes made to the contents of the list are saved when the form is
saved.
This allows the embedded list to be treated just like another element on
the form. In addition, users can create records in the list view. After a row
is added to the list, double-click any cell in the list to edit its value. You
can add the same lists to a form as embedded lists or as related lists,
depending on the path selected in the form context menu.
You can also modify embedded list controls, such as the name of the
related list and the roles required to create records in the embedded list.
Procedure
2. Right-click the form header and select Configure > Form Layout.
The slushbucket shows the available fields and the lists that can be
embedded in the form. Lists appear in red at the bottom of the
Available list.
4. Use the up and down arrow buttons to position the list in the form.
5. Click Save.
Lists adjust to fit the frames of the adjacent fields.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can configure the indicator for customer updates, which are
changes that update sets, scripts, service catalog items, and other
configuration tables track.
You can configure this indicator to appear for all or for specific
administrators using the owned_by_indicator.form user preference.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Option Description
• Name:
owned_by_indicator.
form
• Value: true
Add a chart to a form to show your users graphical data related to the
form. For example, you could show an incident SLA-related chart on the
Incident form so your users can see how well service level agreements
are being met.
Note: The following report types are not supported on forms: List,
Pivot, Multilevel Pivot, Calendar, and Single Score.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Chart on a form
Procedure
3. Click the form context menu icon ( ) and select Configure > Form
Layout.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
9. Click Update.
Form administration
Administrators can configure several settings that control form
functionality.
Form personalization
Control how users configure forms. You can also change the role that is
necessary to configure a form and disable the form configurations that
specific users already made.
Form annotations
Choose the types of annotations that are available on forms and save
localized versions of form annotations.
Attachments
Formatters
Create and edit formatters, such as the activity formatter, which displays
information on the form that is not a field in the record. You can also
configure formatter settings such as the maximum number of formatter
entries.
Form templates
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
UI actions
Add buttons, links, and context menu items on forms to the UI more
interactive, customizable, and specific to user activities.
UI policies
Configure advanced form features, such as form focus, form splits, and
derived fields.
Note: Personalizing a form in this way modifies the form for you only.
To make changes to a form that are visible to all users, you must
configure the form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Navigate to All > System Applications > All Available Applications >
All.
You can search for the plugin by its name or ID. If you cannot find a
plugin, you might have to request it from ServiceNow personnel.
By default, the itil role is required to personalize forms, but you can
change this requirement with a system property.
Procedure
3. In the Value field, specify the roles that can access form
personalization.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
If you do not want your users to customize forms, you can disable form
personalization.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. On the Message form, set the Key field to a unique identifier for the
annotation text.
The annotation text is a good key. The key must be the same for
each translation message for the annotation.
6. Edit the form annotation and reference the message key with a
gs.getMessage call.
For example, if the message key is Message key text, enter $
{gs.getMessage("Message key text")} in the form annotation.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can define the form annotation types to control their appearance.
Procedure
2. Set the Active field to false for any types you do not want to use.
Administering attachments
Administrators can configure system properties for how files are
uploaded and attached to records. Uploading, viewing, and deleting
file attachments triggers a single event that can be used for notifications
or in scripts.
Attachment tables
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Maximum dimensions for thumbnails using this property are 525 pixels
width by 350 pixels height. The system favors the pixel height first, so you
can end up with images that are wider than 525 pixels.
Field Description
com.glide.attachment.max_get_si
Name
ze
Type integer
Value 5242880
The value field represents the size in bytes.
• The base system value is 5242880 bytes (5 MB). You can change the
value as necessary.
• With this property set, images that are larger than 5 MB are not scaled
and the system creates a link instead. Images smaller than 5 MB are
scaled down.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
even when the record has multiple attachments. The following events are
provided.
Attachment events
Event Description
Attachment logging
When an attachment is downloaded, the attachment.read event record
is written, and you can do something with this event. For example, you
can record when and by whom certain attachments are downloaded.
For this functionality, current is a sys_attachment record, and the event
record uses the following parameters:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can disable the drag-and-drop feature. (Users can still upload
attachments by browsing to the file.) You can also limit the attachment
file size, restrict who can upload attachments, and restrict what file
extensions can be uploaded.
You can enable attachment indexing for a table so text searches can
return matches from the record and its file attachments.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Users can open an attachment by clicking either the file name or the
[view] link. The [view] link opens the file from within the browser, which
executes JavaScript code as part of the attachment. You can hide the
[view] link. Users can still view attachments by clicking the file name.
Procedure
2. Clear the check box for the Allow attachment drag and drop in
supported HTML5 browsers property.
3. Click Save.
You can specify the maximum size allowable for attachments to avoid
issues with the user's active session on the instance. The maximum
attachment size for email attachments is configured separately.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Click Save.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click Save.
Procedure
2. In the Attachment limits and behavior section, locate the List of file
extensions (comma-separated) that can be attached to documents
via the attachment dialog property.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. In the list of dictionary entries, select the first record in the list (the
record with no Column name entry).
Procedure
2. Edit the record for the table that you want to enable attachment
indexing for.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. In the Text Index Table Attribute Maps related list, select New.
4. On the Text Index Table Attribute Map form, fill in the fields.
Field Value
Value true
5. Select Submit.
A message appears indicating that the attachment index attribute
change will not take effect until you reindex the selected table.
7. On the Text Index Configuration form, select the Generate Text Index
related link.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Result
The system begins text indexing for the table. When it is complete,
attachments can be searched on that table.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
Formatters
A formatter is a form element used to display information that is not a
field in the record. Add formatters to a form by configuring the form.
Formatter Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Formatter Description
Create the formatter after creating the UI macro that defines the
content.
• Activity formatter
The activity formatter provides an easy way to track items not saved
with a field in the record, for example, journal fields like comments and
work notes.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can set a system property to limit the number of entries allowed in
an activity stream.
Procedure
2. Click New.
4. In the XML script field, enter Jelly script to define the content to be
displayed by the formatter.
Note: The UI Macro for the formatter represents a row in the UI. It
must begin and end with <TR></TR> tags.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
This Jelly script is reproduced below in plain text that you can copy
into the Macro form as a basis for your macro script.
5. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related tasks
Related concepts
• Activity formatter
Related reference
With the UI macro in place, create the formatter that references it, and
add it to the form.
Procedure
2. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. In the Formatter field, enter the name of the UI macro with .xml
appended to it.
5. In the Table field, select the table in which the formatter will be used.
7. Click Submit.
8. To add the formatter to a form, configure the form design and add
the formatter.
The formatter appears on the form according to your selections.
Related tasks
Related concepts
• Activity formatter
Related reference
Activity formatter
The activity formatter provides an easy way to track items not saved with
a field in the record, for example, journal fields like comments and work
notes.
The activity formatter is enabled by default on the Task [task] table and
other tables that extend the Task table, such as the Incident [incident]
table. It is also enabled on the Approvals [sysapproval_approver] table.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can filter the content that appears on the activity formatter and
participate in the record feeds on the record. You can create an activity
formatter for any form and configure properties that control what fields
appear in the formatter. The number next to activities indicates the
number of entries in the record feed. The number updates when users
use the filter.
Activity type and a time stamp display in the top of each entry.
In Core UI, the activity formatter shows updates in real time so you can
see the latest information without refreshing the form. User presence
enables you to see when other users are entering comments.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
4. Select a Table.
7. Click Submit.
Result
Note: You can create more than one activity formatter for a table,
however, the system does not allow you to add more than one
activity formatter to a form.
What to do next
Add an activity formatter to any form to track journal fields on the form.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field styles are not applied to comments and work notes fields
used with the activity formatter. Styles for these fields can be
set using the glide.ui.activity_stream.style.comments
and glide.ui.activity_stream.style.work_notes system
properties located on the sys_properties table.
Use live feed to interact with other users on a record by posting messages
and adding attachments to the feed. Use the activity formatter to see an
overall summary of activity for the record.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Verify that the live feed and record feed plugins are active.
2. If the activity formatter is not visible, configure the form to add it.
b. Enable the Toggle the display of the live feed tab in the activity
formatter option (glide.ui.show_live_feed_activity property).
Customize activities
You can customize which fields appear in the activity formatter. You can
add or remove fields from the list of activities that users can select when
they open the activity filter.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
4. Select Save to add them to the activity formatter and the filter.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
In the activity formatter, users see activity only for fields they have
permission to read. For example, self-service users might see the activity
formatter on the self-service view of the Incident form, but they do not
see work notes, unless security rules have been customized to allow this.
Procedure
2. Locate the property labeled List of roles (comma separated) that can
view emails in the Activity Formatter when "Emails-autogenerated" or
"Emails-correspondence" are included.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
These are the only roles that can see email in the activity formatter.
All other roles are prevented from seeing email. If no roles are listed,
all users can see email. The itil role is on the list by default.
4. Click Save.
The default size for an activity is 100 * 1024, which causes large amounts
of content to be hidden in the Activity Formatter. You can change the
default value by adding the glide.max_activity_size property.
Procedure
Field Description
Name glide.max_activity_size
Type integer
102400
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Name glide.ui16.emailStreamResponse
Actions
3. Select Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
a. Select New.
Field Description
glide.ui.activity_stream
Name
.style.comments
Type string
c. Select Submit.
c. Select Update.
a. Select New.
Field Description
glide.ui.activity_stream
Name
.style.work_notes
Type string
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
c. Select Update.
When any formatter stages are defined for a table, they appear on
the form associated with that table in the order specified, assuming the
formatter has been added to the form.
Procedure
1. Navigate to All > System Applications > All Available Applications >
All.
2. Find the plugin using the filter criteria and search bar.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can search for the plugin by its name or ID. If you cannot find a
plugin, you might have to request it from ServiceNow personnel.
Procedure
2. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
does not appear in the flow
display.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
show only six levels of parents. If more levels exist, the breadcrumbs
display an ellipsis ('''...''').
The Parent reference field also has to contain a value for the
breadcrumbs to appear. You may need to configure the form to contain
the Parent field as well.
Breadcrumbs
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
pc.setTitleField("fieldName")
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The Reject button allows the approver to deny one or more requested
items in a multi-item request, before approving the overall request. If a
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
requested item is denied, the workflow for that item never starts. The
approver can then choose to Accept the item.
Note: When the overall request is approved, you must ensure this
Reject button is hidden. If this button is used after request approval,
the requested item workflow is canceled, leaving the stage in
an inconsistent state. Similarly, the Accept button on requested
items should only appear before the overall request is approved or
rejected.
Procedure
2. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. In the Name field, enter the same name as the formatter you want to
override, but omit the .xml extension.
5. Click Submit.
Example
This example shows the form that defines the existing approval
summarizer formatter:
Here is the form for the UI macro that overrides the approval summarizer
formatter:
Related tasks
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Edit the Value property to set the maximum number of entries that
users can view in an activity stream.
Note: New entries do not count towards the max number until
the form is refreshed.
Option Description
Name glide.history.max_entries
Type integer
Related tasks
Form templates
Templates simplify the process of submitting new records by populating
fields automatically.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Create templates for the forms that you use frequently, such as incident,
problem, and change. There is no limit to the number of templates that
you can create or access, but having many templates for each form
makes the templates more complex to manage.
Automatic templates are always global. They do not honor the User and
Groups fields on the Template form. Automatic templates do not apply
to records created by the system, such as those records generated by
business rules, UI actions, or workflows.
Administrators can create a template for a Task table record that also
creates one or more related records in the child Task table.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Template bar
• Scripted templates
Related tasks
https://players.brightcove.net/6274575390001/nUx4EKfUz_default/
index.html?videoId=6329916712112
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The video above shows you how to complete the procedure below to
create a template using the Template form.
Procedure
2. Select New.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
4. Select Submit.
What to do next
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related tasks
Related concepts
• Template bar
Related reference
• Scripted templates
Procedure
1. From the parent Task table template, configure the form layout to
add these fields.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Link element
Field Value
• [Assignment group][Hardware]
Field Value
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Value
Field Value
5. From the parent Task table template, set Next Related Child Template
to the first related child task.
For example, in the Add server to network template, select Order
server in the Next Related Child Template field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. For each child related task, set Next Related Template to the next
related task template.
For example, in the Order server template, select Install server
on network in the Next Related Template field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note: The last related task template does not have a value
for Next Related Template. For example, the Install server on
network template does not have a value in Next Related
Template.
What to do next
Create a module for the parent Task table template so that child
templates can be applied to related task records. For example, create a
module for Add server to network.
Related tasks
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• Template bar
Related reference
• Scripted templates
Procedure
1. Navigate to a form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Click Save.
Related tasks
Related concepts
• Template bar
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related reference
• Scripted templates
Related topics
Procedure
3. Click Schedule.
The Scheduled Entity Generation form appears.
6. Click Submit.
Related tasks
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• Template bar
Related reference
• Scripted templates
Child templates are only applied if the parent template is applied from
a module. Child templates are not applied by applying a template to a
new form.
Procedure
1. Point to the application menu, such as Self-Service, and click the edit
application (pencil) icon.
4. In the Link Type form section, in the table field, select the table you
want to create the form in.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The <table> is the name of the table you selected for the table
field, for example incident. The <templatename> is the name of
the template you want to use to pre-populate the form, for example
Incident call type.
7. Click Submit.
Related tasks
Related concepts
• Template bar
Related reference
• Scripted templates
Template bar
Use the template bar to apply, edit, and create templates.
When toggled, the template bar appears at the bottom of the form.
Select a template title to apply the template to the form. Use the
buttons at the bottom-right to add, edit, and access the complete list
of templates.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Element Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Element Description
For non-admins, see KB0711956 for more information on enabling the Edit
button.
Related tasks
Related reference
• Scripted templates
You can toggle the template bar, which hides or shows it for all forms. The
template bar is shown by default.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Navigate to a form.
Related tasks
Related concepts
• Template bar
Related reference
• Scripted templates
Scripted templates
You can apply an active template to a record using JavaScript.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
action.setRedirectURL(change);
action.setReturnURL(current);
When using applyTemplate with a template that has one or more child
templates, the system creates the parent record before applying the
child templates. This behavior ensures that any references or dot-walked
fields from the child record to the parent have a valid target.
For example, if a template for the Change Request table has a child
template for the Change Task table, applying the Change Request
template inserts a Change Request record into the database. It assigns
this record as the Change request for the Change Task record, then
applies the child template to the Change Task record.
Related tasks
Related concepts
• Template bar
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
UI actions
UI actions include the buttons, links, and context menu items on
forms and lists. Configure UI actions to make the UI more interactive,
customized, and specific to user activities.
UI action controls
You can create a UI action to provide any of these controls:
• A button on a form.
• A context menu item on a form that appears when you open the form
context menu or right-click the form header.
• A context menu item on a list that appears when you open the list
context menu or right-click the list header.
• A menu item for the action choice list at the bottom of a list.
Note: To hide or restrict the New or Edit UI action on the related list,
use list control.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Form UI actions
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
List UI actions
• Create a UI action
Create a UI action
You can create a new UI action or edit an existing one.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can add UI actions to tables and database views that are in the
same scope as the UI action and tables that allow UI actions from
another application scope to run on them.
Procedure
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
A JavaScript conditional
statement that restricts when a
UI action appears. Conditions
always run on the server.
Note:
Workspace
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
Requires role
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
does not appear on that
view.
Example
As part of a UI action script, you can redirect a user to a URL. For
example, you might add links to a form or open a new record after it
is created from a UI action. To redirect a user to a URL from a UI action,
use this syntax in the Script field to define the redirect link:
action.setRedirectURL ( 'http://www.mysite.com/mypage.htm
' );
To direct a user to a record, use this syntax, where new_record is the
variable name for the GlideRecord:
action.setRedirectURL (new_record );
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When a UI action is defined for the Task table, it applies to all tasks,
including incidents, changes, problems, and any other tables that extend
the Task table. Similarly, a global UI action applies to every table.
However, you can override a UI action for a specific table. This example
demonstrates how to override or remove a UI action on the Task [task]
table for only the Incident [incident] table.
Procedure
UI policies
UI policies dynamically change the behavior of information on a form
and control custom process flows for tasks.
For example, you can use UI policies to make the number field on a form
read-only, make the short description field mandatory, and hide other
fields. Basic UI policies do not require any scripting, however for more
advanced actions, use the Run scripts option.
You can also use client scripts to perform all of these actions, but for
faster load times use UI policies when possible.
Create a UI policy
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
A UI policy condition evaluates all fields even if they are not visible on
the form. This function removes the requirement that a field must be on a
form for it to be evaluated.
Note:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
The UI Policy [Advanced view] form opens
Field Description
When to Apply
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
the condition builder. To set
conditions using a script, use a
client script instead.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
specified actions are taken and
when they are false, the actions
are undone.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
When a child table has an
inherited UI policy from its parent
table, the UI policy on the child
table always runs first. This event
is true regardless of the Order of
the UI policies.
Script
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• This feature is not available
outside the scope or in
global scope.
Other fields
• Leave alone
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• True
• False
• True
• False
• True
• False
Related Links
5. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
Name Input
Table Incident
4. Right-click the form header and select Save from the context menu.
The UI Policy Actions related list appears.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Name Input
Mandatory True
7. Click Submit.
Any scripts you create for UI policies run on the client side.
You can use different options in the UI Policy form to control when and
how the UI policy is applied. These options include client scripts, OnLoad
execution, and view-specific UI policies. Administrators can use the UI
Policy form to create client scripts that run onChange when the UI policy
conditions are met (Execute if true) or not met (Execute if false).To display
these scripting fields in the UI Policy form, in the Script section, select the
Run scripts check box.
For example, to display an alert to the user when the incident State field
changes to Resolved, create the following script in the Execute if true
field.
function onCondition(){
alert('You changed the "Incident state" to Resolved. Plea
se enter your comments in the "Close notes" field.');
}
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
variable set. For more information about using UI policies for service
catalog items, see Service catalog UI policy
The Insert and Insert and Stay options are disabled by default for task
records such as incidents and change requests. You can set a system
property to show these options for task records.
Procedure
2. Locate the property Allow the use of the "Insert" and "Insert and Stay"
options on task derived tables (glide.ui.task.insert).
3. Select the check box to enable or clear the check box to disable
(default) the options for tasks.
4. Click Save.
By default, forms set focus on the first writable field on the form. An
administrator can disable form focus with a system property to make the
form more accessible to users who use screenreaders.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Result
With first field focus disabled, the form focuses on the first element on the
page instead. Focusing on the first element, instead of the first writable
element, helps orient users who use screen readers so they can find all
the elements on a form.
Procedure
1. Navigate to sys_properties.list.
Property Value
glide.ui.show_template_bar.<TAB
Name
LENAME>
Value false
3. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
By default, when you press the Enter key in a simple one-line text field, a
choice list, or a Boolean field, the form is submitted.
You can use a system preference to deactivate this feature if you do not
want the Enter key to submit the form.
Procedure
1. From the left navigation pane, select User Administration > User
Preferences.
4. Click Update.
The change does not take effect until user preferences are reloaded
either at login or when a session is created.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When you organize fields in this manner and the user is viewing the form
on a small mobile device, the fields within the first split are listed before
the fields in the second split. In this example, the Asset tag, State, Serial
number, and Substate field are listed before any of the fields below them.
You can also create elements that span the form at the top of the form.
Procedure
Name glide.ui.form_multiple_splits
Value true
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Click Save.
The System Property form reopens and the new property appears in
the UI Properties page.
You can specify which form fields are required in forms. This action
prevents users with the personalize_form role from removing the field by
configuring the form layout.
The expected (although not the only) use case for this feature is as
part of a delegated administration scheme. For example, you can grant
branch offices the rights to modify forms by granting the personalize_form
role, but not allow them to remove certain fields which are critical to
overall business processing.
Procedure
1. Navigate to sys_properties.list.
4. Click New.
5. Select the table and field, and then select the Required check box.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The following example sets the Short description field on the Incident
form to be required.
If you decide later that you do not want to make the field required,
clear the Required checkbox. This action is preferable to deleting the
record.
6. Click Submit.
Result
If the table specified has extension tables, then the Required Form
Field record applies to forms of all extended tables. For example, if an
administrator specifies that the Short description field is required for the
Task table, then this configuration applies to the Incident form, Change
Request form, Problem form, and so on.
An extended table can override the Required Form Field rule of its base
table. For example, if the Short description field is required for the Task
table, but not required for the Incident table, it is required for all Task
tables except Incident.
You can configure the type of label that appears for derived fields.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
An example would be displaying the email address for the caller when
looking at an incident record. The email address is not stored in the
Incident table, but is obtained by following the caller reference from the
incident to the User table. You control the label type by setting a system
property. For example, the field label for an incident email address can
be either of the following strings.
• Email which is the label for the target field. This label is not unique on
the form if, for example, you are also displaying the email address of
the person assigned to the incident. However, usually the placement of
the field on the form makes it clear what the field represents.
Caller fields
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Locate the Use short labels for all fields. For example, if a form
contains the caller's email address, use the "Email" label rather than
the full label of "Caller Email" (glide.short.labels) property.
The default value is true, meaning that the short label is displayed in
all forms.
3. If you want to display the complete label in forms, clear the check
box.
4. Click Save.
Field administration
The individual pieces of data in a record are called fields. You enter data
in fields on the form or by using the list editor. Administrators can create
new or modify existing fields.
You can enter data in fields by using the list editor or by using a form. In
form view, fields appear as fields in the form, and in list view they appear
as columns of data in the table. Administrators can create new fields or
change the type of existing fields.
• If you edit a field on a child table that is present on the parent table, it's
also changed in the parent table and all other child tables.
• When you create a custom field, use one of the supported field types
described in Field types. Other field types, such as User Input, are for
internal use only and aren't supported for custom fields.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• The Field Name and Table Name field types have a built-in
dependency relationship. For example, Field Name fields don't exist
independently; they require a Table Name field. Also, Field Name fields
always contain a value, which is sys_id by default. You can't set the
value for a Field Name field to None, even if you apply the attribute
allow_null=true.
• If you need to change the data type for a field, create a new column
using the new data type, copy the data from the old column to the
new column via a background script, and then rename the original
column label.
• Fields may not display on forms as expected. For more information, see
the Troubleshooting fields not appearing on forms [KB0547219] article in
the Now Support Knowledge Base.
• Field types
Administrators can add new fields to a table to store and display data.
• Data policy
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Dynamic Schema
Field types
These field types are available to administrators when creating new fields
or changing the type of existing fields.
Field types
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• String
• Integer
• Decimal
• Object
• Array
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Danger: Modifying or
deleting a Sys ID results in bad
or lost data.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
A choice list is a type of field that lets the user select from a pre-defined
set of choices.
You can only change a dictionary entry's data type when the change
does not result in data loss. Use the following guidelines to change a
dictionary entry's data type.
• Document ID field
The dynamic attribute store field type stores one or more dynamic
attributes and their values.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Function field
The geo point data type stores longitude and latitude coordinates.
Configure HTML fields to use TinyMCE or the legacy htmlArea editor. The
TinyMCE editor provides better stability and more editing functions than
the legacy htmlArea editor.
The IP Address (Validated IPV4, IPV6) [ip_addr] field type stores valid
IPv4 and IPv6 addresses.
You can access the values stored in a name-value pairs field in scripts
using the name.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
To help users find what they are looking for, you can add a suggestion
field to any form.
Wikitext fields use the basic wiki markup language and support links to
external URLs and to sources within the system.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When you write a script that references a choice list, you need to know
the value that is associated with each choice.
State fields are a subset of choice list fields. Keep the following
information in mind when you configure choice values for the state
field.
The Choice Set [sys_choice_set] table contains a record for every field
that uses a choice list.
If more granular control is desired, you can also create a custom ACL
(security rule) governing the personalize_choices operation either for
a particular field or for all fields (.*) on a particular table. However,
access to the personalize_choices operation on a particular field does
not confer the ability to add new choices for that field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When you write a script that references a choice list, you need to know
the value that is associated with each choice.
The Type field on the choice list dictionary entry determines the data
type of the values.
• For server-side scripts, such as business rules: "0" (string of the number
zero)
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• System dictionary
Some common choice lists use integer values that do not match the
string labels. For example, the Problem table uses these default values for
the State field.
Value Label
1 Open
2 Known Error
3 Pending Change
4 Closed/Resolved
These integer values are also used in several default business rules. For
example, a business rule on the Incident table sets the active flag to
false when the State field changes to 7, which is the default value for
the Closed. If you change the values of your Incident state options, this
business rule may no longer behave as desired or expected.
On the Incident table, the Active, State, and Incident state fields are
affected by the following default business rules.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
State fields are a subset of choice list fields. Keep the following
information in mind when you configure choice values for the state field.
• Search for and study the business rules that use a state number filter on
the Script and Conditions fields. You can use the Debug tool to trace
the order of the business rule execution.
You can define any of the following attributes for a state field by
configuring the dictionary. If the attributes are not defined, the system
uses the default values. The TaskStateUtil API uses the following attributes.
For more information on the TaskStateUtil API, see TaskStateUtil.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related Attributes
Attribute Definition
Follow these examples for modifying the states of incidents and change
requests.
Procedure
2. At the top of the list, construct a list filter like the following:
• Table: incident
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Element: incident_state
Notice that the Closed state has a value of 7 and the Resolved state
has a value of 6. Any state greater than or equal to 7 is assumed to
be inactive. Therefore, you should use a positive integer greater than
7 if you want to add a new inactive-type of state. Use a negative
value like -1 or -2 if you wish to add a new active-type of state field,
such as Awaiting Vendor.
5. At the top of the list, construct a list filter like the following:
• Table: change_request
• Element: phase_state
Notice that the Complete state has a value of 8. Any state greater
than or equal to 8 is assumed to be inactive. Therefore, you should
use a positive integer greater than 8 if you want to add a new
inactive-type of state, such as Cancelled. Use a negative value like
-1 or -2 if you wish to add a new active-type of state field, such as
Pending.
Business rules in the system make assumptions about state values. You
can troubleshoot business rules to see the order in which they run and see
how it affects changes you make to State field values.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
2. Construct a filter like this one to view the scripts and conditions
that pertain to the Resolved incident_state of 6 or the Closed
incident_state value of 7:
What to do next
See Debug Business Rule for information on how to trace the order of
business rule execution. You can click Debug All, resolve an incident, and
then check the trace at the bottom of form to watch the business rules
execute. These two line examples show that the mark_closed business
rule code is entered ==> and then exited <==.
The Choice Set [sys_choice_set] table contains a record for every field
that uses a choice list.
The choice set record is associated with an application file, which allows
update sets and team development to track and transfer all choices for
a field in a single update record.
Procedure
1. Right-click the choice list field label and select Show Choice List.
To view other choice list values, modify the filter at the top of the list.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can personalize the options that are available in a choice list.
Procedure
5. Click Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
After defining a set of choice list values, you can reuse the values for
another field in a different table.
Procedure
2. Add the desired choice list values in the Choices related list.
3. To reuse the choice list values for another field (Field B) in a different
table, right-click the label for Field B and select Configure Dictionary.
4. In the Choice table field, select the table where Field A resides.
6. Click Update.
You can remove the None option from a choice list if it is not necessary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
You can change the default display label of the None option for a
choice field.
Procedure
3. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Value
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Value
Enter NULL_OVERRIDE.
Note: You must enter
NULL_OVERRIDE as the
Value
value, or the new label
appears in addition to the --
None -- option.
Leave blank.
Note: When field type is
Hint
set to List (Glide List) the hint
won't display.
5. Click Submit.
You can delete all choices for a choice field from the Choice Set record.
You may want to use this method when you are developing a new
application and the business requirements change. If you are updating a
choice list that is already in use, consider deactivating the options you no
longer use to avoid conflicts with existing data or scripts that may rely on
the previous options.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For example, to locate the choice set for the incident subcategory,
filter by [Table] [is] [incident] AND [Element] [is] [subcategory].
3. Check the box beside the choice set record to delete and select
Delete from the Actions choice list below the list.
You can create a choice list for a field with another type, such as an
integer, string, or reference field.
You can use this configuration to standardize data entry and limit
available options for a field while still maintaining the original field type.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• If records on the table contains data for the field, a choice list
value for each unique field value is created. For example, if three
records exist on the table and each record has a unique value in
the field, then three choices are created.
Procedure
2. Clear the check box for the Display missing choice list entries
property.
Add a search field to choice fields that have a long list of options.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. From a choice field on the form, for example State, right-click the
field and select Configure Dictionary.
3. Switch to the advanced view for the dictionary entry form using the
context menu by navigating to View > Advanced.
5. Update the Dictionary Entry form and reload the page containing
the choice list.
Result
The choice list contains a search field that users can use to filter the list of
choices.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
To find dictionary attributes that affect condition fields, see Altering tables
and fields using dictionary attributes.
In Core UI, you can update a conditions field to display the version 2
condition builder.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. Submit.
Result
Condition count
The list shows that there are 112 records with Network as its category.
To view details of the results, click the number of records to open the list
view of the results:
In Core UI, you can update a conditions field to display the version 2
condition builder.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
4. Click Update.
The form reloads with the v2 version of the condition builder.
This table shows field types and corresponding MySQL database types.
Typically, it isn't necessary to perform any actions at the database level.
To learn about changing a field type, see System dictionary.
Database field types
Dictionary XML
Field types Options MySQL DB type
type
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Dictionary XML
Field types Options MySQL DB type
type
Decimal (15,2)
Decimal decimal older instances
may have (12,2)
<reference
Reference reference VARCHAR(32)
table>
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• A string field defined in the platform with a max length of 256 and
upwards → MEDIUMTEXT.
Condition Restrictions
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Condition Restrictions
a MEDIUM database type to a
VARCHAR(100) database type if
none of the existing data is greater
than 100.
Document ID field
You can create document ID fields to reference any record on any
table.
You can select the document ID type when creating a new field.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Type: String
• Name: Label for your document ID field (for example, Model ID)
• Type: Document ID
5. Click Save.
11. Click Update. When users click the reference lookup for the
document ID field, a dialog appears that allows them to select the
table and then the record. The sys_id of the selected record is stored
in the document ID field and the table name is stored in the table
reference field.
12. (Optional) Configure the form to remove the table reference field.
Related concepts
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Function field
Create function fields and scripts in the Now Platform to perform
common database transformations and calculations.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The values of the calculated fields are stored in the database. The values
of function fields or function scripts are not stored in the database, but
are calculated at the time of retrieval. Function field values are always
up to date.
Rather than calling Rhino to perform string transformations, you can use
a function field or function script to perform the transformations for you.
Function fields and function scripts are more efficient and result in up-to-
date values that do not have to be stored or maintained.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
APIs Description
GlideDBFunctionCaseBuilder -
Build case statements.
Global
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
glidefunction operations
Function fields can perform the following operations using the
glidefunction:<operation> syntax. When providing a field as
an argument, you can dot-walk to related fields. For example,
cmdb_ci.name.
Note: The function field type must be compatible with the return
type of the glide function. For example, integer, longint, string, and
so on. If the returned type cannot be converted to the dictionary
type, you get exceptions.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
glidefunction:coalesc
e(closed_at,
resolved_at,
sys_updated_on)
If the value of
closed_at is empty,
Takes any number
the function returns
of comma-separated
the value of
coalesce() fields as input and
resolved_at. If the
returns the first non-
value of resolved_at
empty value.
is also empty,
the function returns
the value of
sys_updated_on.
glidefunction:concat(i
ncident_number, '/',
short_description)
Takes any number
of comma-separated
Returns "INC0001 / My
fields and constants as
client needs a new
concat() input, concatenates
laptop." if the value
the input, and returns
of the number field
a single string as a field
is 'INC0001' and the
value.
short_description is 'My
client needs a new
laptop'.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
glidefunction:datediff(
closed_at,
Takes two date/ sys_created_on)
time fields as
input, calculates the Returns the duration of
difference between an incident from the
datediff() the dates in days, creation date to the
minutes, and seconds, close date. Example
and returns the results result: 10 days, 8 hours
as a duration field 23 minutes 11 seconds
value.
Return type: Duration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
glidefunction:distanc
e_sphere(u_location,
'80.206458',
'25.767242')
•
glidefunction:distanc
e_sphere(location1,
location2)
•
glidefunction:divide(
distance_sphere(loc
ation1, '-0.189937',
'51.473584'), '1000')
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
glidefunction:get_lati
tude(u_geo_point_fi
eld) Returns the
latitude value in the
u_geo_point_field.
Takes any geo point
column or numeric •
field or numeric glidefunction:get_lati
get_latitude() constant and converts tude(u_numerical_c
it to a valid latitude olumn)Returns the
value within the latitude value in the
[-90,90] range. u_numerical_column
within [-90,90] range.
•
glidefunction:get_lati
tude('305.767242')
Returns -54.232758
latitude value.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
glidefunction:get_lo
ngitude(u_geo_point
_field) Returns the
longitude value in
the
u_geo_point_field.
• glidefunction:get_
Takes any geo point longitude(u_numeric
column or numeric al_column)Returns
field or numeric the longitude value
get_longitude() constant and converts in the
it to a valid longitude u_numerical_column
value within the within [-179,180]
[-179,180] range. range.
•
glidefunction:get_lo
ngitude('380.206458')
Returns 20.206458
longitude value.
glidefunction:greatest(
10,100,1000)
Takes two or more
values as input and
Returns 1000
greatest() returns the greatest
value of the list of
Possible numeric
arguments.
return types: Decimal,
Floating Point Number,
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
glidefunction:least(10,
100,1000)
Returns 10
glidefunction:length(sh
ort_description)
Takes a string field
Returns 37 if
as input, calculates
short_description =
the field length
length() "This application is
in characters, and
performing a test".
returns the results as a
field value.
Return type: Whole
number
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
glidefunction:to_geo
point(u_long_column
, u_lat_column)
Returns a
geo_point field with
the coordinates
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
glidefunction:concat(short
_description, ' ',
caller_id.name)
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. Click Submit.
You return to the Dictionary Entry [sys_dictionary] table.
Result
Use the function field like any other field. For example, add it to a form,
use it in a filter, or use it in the condition builder.
You can store longitude and latitude coordinates by adding a geo point
data type field to any table. For example, you can define a geo point
field to store a longitude and latitude pair to help technicians find the
location of a part in a warehouse.
glidefunction:get_longitude(u_geo_point_field)
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The HTML field editors available depend on your version of the UI.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
While HTML fields can be added to split pane forms, they can behave
unexpectedly because of the limited width available in split pane forms.
If accessibility is enabled, a help icon appears with the HTML field. The
help icon indicates how to use keys to access and escape the HTML field
toolbar.
• TinyMCE: A field that displays text as readers would see it on the screen.
TinyMCE is the default editor.
• htmlArea: The legacy editor, which offers a more basic interface as well
as a mode that shows only HTML markup.
Note: htmlArea only works in Core UI, not configurable workspace.
Procedure
4. Select Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
There are multiple system properties that are used to configure the
behaviour of the HTML editor field type. Learn about the system
properties available in the TinyMCE rich text editor.
You can configure the TinyMCE HTML editor for a specific table by
configuring the dictionary attributes.
There are multiple system properties that are used to configure the
behaviour of the HTML editor field type. Learn about the system
properties available in the TinyMCE rich text editor.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
A valid (supported)
button list for html
glide.ui.html.editor.tool
String fields. Use this to limit
bar.valid_buttons
what buttons CAN BE
added to the toolbar.
Paste formatting
behavior for HTML. This
setting controls how
content from sources
glide.ui.html.editor.pas
Choice list other than Microsoft
te.html_import
Word is filtered when
being pasted on
html-editor. Note that
this includes content
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Merge: Preserves
the inline formatting
and structure
of the original
document. Invalid
and proprietary
styles, tags and
attributes are still
removed ensuring
that the HTML is
valid while more
closely matching the
original document
formatting.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Paste formatting
behavior for word. This
setting controls how
content from Microsoft
Word is filtered when
being pasted on
html-editor. Note that
this includes content
copied from TinyMCE
itself. The supported
values are:
• Merge: Preserves
the inline formatting
and structure
of the original
document.Removes
invalid and
proprietary styles,
tags and
attributes.This
ensures the HTML
is valid while more
closely matching the
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
<pre>
Arial=arial,helve
tica,sans-serif;
</pre>
Note: More
glide.ui.html.editor.fon than one font
String
t.collection value should be
separated by a
semi-colon with
no space or line-
break.
<pre>
Andale Mono=andal
e mono,times;
Arial=arial,helve
tica,sans-serif;
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
</pre>
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
glide.ui.html.editor.rela
tive_urls is used to set
glide.ui.html.editor.rela
True | False the relative_urls config
tive_urls
of TinyMCE. Default:
true.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note: This is
related to the
document_base_
url which is not
configurable in
ServiceNow and is
set to the
window.location.
origin (the base url
of the instance).
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note: This
property isn't
added OOTB (out
of the box) but
can be added by
an admin.
Related tasks
Related concepts
The TinyMCE HTML editor is a powerful, flexible, and customizable rich text
editor. You can configure and extend the editor by using plugins.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related tasks
Related concepts
Related reference
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Type Plugins
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Type Plugins
tableofcontents visualblocks
visualchars wordcount
4. Select save.
If there's a custom plugin added to enabled plugins its not
recommended unless critical.
Procedure
1. Update the toolbar options for your preferred HTML field editor.
Option Description
htmlArea toolbar
a. Navigate to the System
properties [sys_properties]
table by entering
sys_properties.list in
the application navigator.
b. In the Name
column, search for
glide.ui.html.toolbar.
c. Select the
glide.ui.html.toolbar
property.
TinyMCE
a. Navigate to the System
properties [sys_properties]
table by entering
sys_properties.list in
the application navigator.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Option Description
c. Select the
glide.ui.html.editor.toolbar
property.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For the htmlArea toolbar, use the buttons listed in the htmlArea
button options table. Use separator to add a section separator.
createlink, inserthorizontalrule,
Extended functions insertimage, insertvideo,
inserttable, htmlmode
3. Select Update.
What to do next
See Change the TinyMCE default toolbar for more detailed information.
The formatting table displays how to control the way text appears.
TinyMCE version 6.8.3 uses menus and menu selections to create and
edit tables.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
Related reference
The formatting table displays how to control the way text appears.
The following table displays icons that are available in the TinyMCE and
the htmlArea editors. Names marked with an asterisk (*) aren’t available
with the htmlArea editor.
Formatting table
Applies center
alignment to
the current
paragraph.
Align Center
Code reference:
text-
align:center
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Applies left
alignment to
the current
paragraph.
Align Left
Code reference:
text-
align:left
Applies right
alignment to
the current
paragraph.
Align Right
Code reference:
text-
align:right
Applies
background
color to the
current word
or selected
text. Select
the button
Background
to use the
Color
current color.
Select More
Colors... to view
various color
options and the
hexadecimal
codes.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Toggles the
visibility of block
level elements
in the editable
area. It’s similar
Blocks
to WYSIWYG
hidden
character
functionality, but
at block level.
Applies block
quote format
*Block quote to the current
block level
element.
Applies bold
formatting to
the selected
text or current
Bold word.
Keyboard
shortcut: CTRL +
B
Applies or
removes
unordered list
tags for
the selected
Bullet List
paragraphs.
Select the arrow
to choose a
different bullet
type.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Applies a font
family to the
Font Family
selected text or
current word.
Applies a font
size to the
Font Size
selected text or
current word.
Applies
indentation to
the current
or selected
paragraphs,
Increase Indent
adding 30 px of
left padding.
Code reference:
padding-left
Applies italic
formatting to
the selected
text or current
Italic word.
Keyboard
shortcut: CTRL +
I
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Applies justified
alignment,
which stretches
the lines to be
equal widths,
Justify to the selected
paragraph.
Code reference:
text-
align:justify
Sets the
*LTR (Left to directionality of
Right) contents to from
left to right.
Creates a
document
*New document
without any
formatting.
Inserts a non-
Non-breaking breaking space
into the editor.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Applies or
removes
ordered list tags
for the selected
Numbered List paragraphs.
Select the arrow
to choose a
different number
type.
Removes
indentation from
the current
or selected
paragraphs,
removing 30 px
of left padding.
Outdent
Note:
Padding
can’t be
less than 0.
Code reference:
padding-left
Inserts a page-
*Page-break break into the
editor.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Removes the
formatting from
*Remove format
the selected
text.
Sets the
*RTL (Right to directionality of
Left) contents to right
to left.
Applies
strikethough
Strike through formatting to
the selected
text.
Applies subscript
formatting to
*Subscript
the selected
text.
Applies
superscript
*Superscript formatting to
the selected
text.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Applies text
color to the
selected text.
Select the
button to use
the current
Text Color color. Select
More Colors...
to view various
color options
and the
hexadecimal
codes.
Applies
underline
formatting to
the selected
text or current
Underline
word.
Keyboard
shortcut: CTRL +
U
On the bottom bar of TinyMCE, the path of HTML tags for the text at the
cursor position is displayed.
When you use the Enter key, the editor creates a paragraph element
(<p>) tag, which appears as a double space.
On the bottom bar of TinyMCE, the path of HTML tags for the text at the
cursor position is displayed.
Click a tag in the path to highlight the text affected by the tag.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When you use the Enter key, the editor creates a paragraph element
(<p>) tag, which appears as a double space.
TinyMCE version 6.8.3 uses menus and menu selections to create and edit
tables.
UI element Action
Table menu
Select the table icon ( )
to access the TinyMCE version 6.8.3
table menu. Use the table menu
to:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
UI element Action
After you insert the table, you can
modify the size by selecting and
dragging the handles at the table
edges.
Table of Contents
The Table of Contents plugin
generates a basic table of
contents (ToC) and inserts it into
the editor at the current cursor
position. ToC entries are generated
from header elements in the
content.
• General tab:
Table properties
• Set table width and height
• Advanced tab:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
UI element Action
• General tab:
Cell properties
• Width and height
• Advanced tab:
• Cell style
• Border color
• Background color
• General tab:
• Row type
• Alignment
• Height
• Advanced tab:
• Row style
• Border color
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
UI element Action
• Background color
You can also paste tables into HTML fields from table-based editors.
In this task, you create and format a table in either htmlArea or TinyMCE
v6.8.3. The resulting tables should look similar to one of the following
images.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
If you enter alternative values for aspects such as width, cell spacing,
cell padding, border, and alignment, the resulting table varies from the
examples given.
Procedure
1. Navigate to All > Knowledge > Edit and select the knowledge article
that you want to edit.
2. In the HTML field, position the cursor at the location where you want
to add the table.
3. Select the table icon, select Insert table, and then select the number
of rows and columns.
a. Position your cursor in the table, select the table icon, and select
Table properties.
• Width: 75%
• Cell spacing: 3
• Cell padding: 3
• Border: 1
• Alignment: Left
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
c. On the Advanced tab, select the text field next to Border color
and enter Gray.
The color picker box turns gray to indicate the color that you
entered. You can also select the box and select the colors in the
palette.
d. Select Ok.
a. Select the cells in the first table row, select the table icon, and
select Row > Row properties.
• Alignment: Center
d. Select Ok.
a. Select all table cells in the first column except the cells in the
header row.
b. Select the table icon and select Cell > Cell properties.
• H Align: Left
• V Align: Top
d. Select Ok.
e. Repeat these steps for the table cells in the second column.
a. Position your cursor in the middle table row, select the table icon,
and select Row > Row properties.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
c. Select Ok.
a. Select the first column of the table, select the table icon, and
select Cell > Cell properties.
c. Select Ok.
9. Select and hold (or right-click) the form header and select Save.
10. Enter data in the table cells and then save the article.
You can add more edit functions to TinyMCE v6.8.3 using the
glide.ui.html.editor.toolbar property and properties on the UI Properties
page. For more information on configuring the edit functions, see
Configure the HTML toolbar.
Editing functions
TinyMCE v6.8.3
Name Icon Description
Icon
Cuts the
selected text.
Not supported
in all browsers;
use keyboard
Cut*
shortcut.
Keyboard
shortcut: CTRL +
X
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name Icon Description
Icon
Copies the
selected text.
Not supported
in all browsers;
use keyboard
Copy*
shortcut.
Keyboard
shortcut: CTRL +
C
Enables you to
replace the next
(Replace) or all
(Replace All)
occurrences of
a text string in
Find/Replace
the HTML field.
Keyboard
shortcuts: CTRL +
F, Cmd + F
Pastes the
selected text.
Not supported
in all browsers;
use keyboard
Paste*
shortcut.
Keyboard
shortcut: CTRL +
V
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name Icon Description
Icon
Enables you
to paste as
Paste as Plain
plain text
Text*
without source
formatting.
Opens a new
window that
enables you to
copy and paste
Paste from Word
content from
Microsoft Word
into the HTML
field.
Reverts the
Undo*
previous edit.
Reapplies the
Redo* last reverted
edit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Result
• Pasting tables: Pasting tables into Safari doesn't always work correctly.
Pasting tables into Internet Explorer only works from Microsoft Excel.
Extended functions
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Executes the
InsertAccordi
on command,
Accordion* adding an
Accordion
element at the
current location.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Inserts a special
character at the
current cursor
location. Select
the button to
view a list
of available
Add character
characters.
map*
Point to a
character to
view the name
and HTML
code. Select
a character to
insert it.
Inserts an
Anchor* anchor into the
editor.
Fixes standard
HTML errors for
the selected
text, such as
invalid tags.
Selecting this
button might
Cleanup Messy
change the
Code
layout of existing
content. If you
don’t like the
results, you can
select Undo
to revert this
action.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Opens HTML
source code
Edit HTML in a separate
Source/Code window. See
Editing in HTML
Source Mode.
Opens the
Emoticons*
Emojis dialog.
Inserts the
current date
Insert date/time*
and time into
the editor.
Embeds a
video from the
video library or
an attachment.
You can also
Insert/Edit
add videos to
Embedded
the video library
Media
with this feature.
To learn more,
see Embedding
Video in HTML
Fields.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Inserts an
image from the
image library or
an attachment.
You can also
add images
Insert/Edit Image to the image
library with
this feature.
To learn more,
see Embedding
Images in HTML
Fields.
Configures a
link for the
selected text.
You can define
the link URL,
title (additional
information that
Insert/Edit Link appears in the
tooltip), and the
target (same
window or new
window or tab).
Code reference:
<a>
Inserts a
Insert Horizontal horizontal line
Line at the current
location.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Opens a
preview of the
HTML field in
Preview*
a separate
window without
saving changes.
Removes
Remove link* the current
hyperlink.
Checks the
spelling of text in
the HTML field.
Note: Spell
Checker is
Spell Checker
only
available in
the
htmlArea
editor.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
TinyMCE v6.8.3
Name HTML Icon Description
Icon
Expands the
HTML field to
use the full form
view. Select the
button again
to return to
standard form
view.
Toggle Full Note: This
Screen Mode* feature is
available
only for the
htmlArea
editor and
isn’t
available
for Internet
Explorer.
Toggles block
Visual blocks*
visibility on or off.
Shows or
hides invisible
elements in the
Visual chars*
article, such as
collapsed table
borders.
You can use the HTML field image picker to embed images into HTML
fields, and to add images to the image library.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can insert videos into HTML fields. You can also add videos to the
video library using the HTML Insert/Modify Video form.
You can define the types of video files that can be added to HTML
fields.
By default, users can use and upload images to the image library from
an HTML field. You can disable access to the image library from HTML
fields. This is only applicable to HTML area and not TinyMCE.
You can enable the accordion on the TinyMCE HTML editor in both
CoreUI and workspaces. When enabled, the accordion button appears
on the HTML editor and can be used to expand/collapse content.
You can use the HTML field image picker to embed images into HTML
fields, and to add images to the image library.
Role required: the role necessary to update the record that contains the
HTML field. For example, any user with a role can create a knowledge
article and embed an image in it.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
example, it could be used with
a screen reader. If this field is
left blank, it defaults to the text
entered in the Tooltip field.
Field Description
6. Click OK.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Role required: the role necessary to update the record that contains the
HTML field. For example, any user with a role can create a knowledge
article and link to a website in the article text.
Procedure
Field Description
You can insert videos into HTML fields. You can also add videos to the
video library using the HTML Insert/Modify Video form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note: The Videos [db_video] table is a public table that does not
have any security restrictions. Unauthenticated users have full access
to videos uploaded to the db_video table.
Role required: The role necessary to update the record that contains the
HTML field. For example, any user with a role can create a knowledge
article and embed a video in it.
The larger the file size, the longer it takes to download before the
video starts. To reduce file size, you can reduce the bit rate, but doing
so reduces the quality of the video. The following bit rates optimize
download speed and video quality:
Type Definition
Size 20MB
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Type Definition
Resolution 480*320
Internet Explorer and Safari have difficulty streaming videos uploaded to
the database. Attach a file rather than embedding if you intend to use
one of these browsers or an unsupported file type. For more information
on attaching files, see Add and manage attachments.
Note: Administrators and users with the image_admin role can
manage the video library at System UI > Videos.
Procedure
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
5. Click OK.
You can define the types of video files that can be added to HTML fields.
Users can add videos to HTML fields. By default, users can add one
of the following types of videos to HTML fields: .mp4, .webm, and .swf
video file types. You can inactivate video types that you do not want to
allow users to add, or add new video types. .swf files are only minimally
supported. .mp4 files might be limited by browser type.
Note: By default, the HTML Sanitizer removes videos from HTML fields.
To allow video file types, see Embed videos in the HTML editor
Procedure
3. To add an additional video type, click New and complete the form.
Note: If you specify values for the Codebase or Pluginspage
fields, which instruct the browser where to get the plugin, point
to https pages to avoid warnings from Internet Explorer about
unsecure content on the page.
By default, users can use and upload images to the image library from an
HTML field. You can disable access to the image library from HTML fields.
This is only applicable to HTML area and not TinyMCE.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Select html_insert_image_dialog.
3. Locate the following lines of code in the HTML field and comment
them out.
<g:evaluate var="jvar_use_dbimage">
var imageGR = new GlideRecord('db_image');
if(imageGR.isValid())
imageGR.canRead();
</g:evaluate>
and
<j:if test= "${jvar_write_dbimage}">
<j:set var = "jvar_default_insert_image_type" valu
e = "dbimage" />
<g:ui_select_option text = "${gs.getMessage('Imag
e Library')}" value = "dbimage" selected = "${jvar_def
ault_insert_image_type}" />
</j:if>
4. Select Update.
What to do next
To remove the Upload from URL option in the HTML editor, add a new
property named glide.ui.html.image.allow_url and set the Value to false.
Related tasks
You can enable the accordion on the TinyMCE HTML editor in both
CoreUI and workspaces. When enabled, the accordion button appears
on the HTML editor and can be used to expand/collapse content.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
d. Select save.
a. Verify you have the role necessary to update the record that
contains the HTML field.
For example, any user with a role can create a knowledge article
and embed an image in it.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can configure the TinyMCE HTML editor for a specific table by
configuring the dictionary attributes.
Related tasks
Related concepts
Related reference
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Type Buttons
3. Select Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Right-click the field label (for example, Article body) and select
Configure Dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note:
• Include all the toolbar items that you want displayed, not just
the toolbar items you want to add.
5. Select Update.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
2. Right-click the field label (for example, Article body) and select
Configure Dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note:
• Include all the toolbar items that you want displayed, not just
the toolbar items you want to add.
5. Select Update.
Change the default height of a specific HTML field to expand the size of
a journal field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Right-click the field label (for example, Article body) and select
Configure Dictionary.
HTML fields can range from 72 to 2000. HTML fields are by default
64.
5. Select Update.
d. Select Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Change the default font size of a specific HTML field to use a standard
font size across forms.
Procedure
2. Right-click the field label (for example, Article body) and select
Configure Dictionary.
5. Select Update.
You can set a dictionary attribute on a TinyMCE field to allow the use of
deprecated HTML tags, such as <b> and <i>. By default, TinyMCE uses the
<strong> and <em> tags for bold and italic formatting.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
After you set the dictionary attribute, use code view to manually enter
deprecated tags. The editor does not validate any tags you enter
manually, for example, if you type an incorrect character.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Select Update.
You can set a dictionary attribute on a TinyMCE field to allow the use of
JavaScript in a URL.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Select Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can enable the menu bar on the TinyMCE HTML editor in both CoreUI
and workspaces. When enabled, the menu bar appears on the top of
the HTML editor which can be used to create, edit and format content.
By default, the menu bar is inactive. You can enable it for a specific table
via dictionary attribute configuration.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
c. Select TinymceConfigScript.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
]}
]
};
return tinyConfig;
},
getConfiguration: function() {
var config = this.setTinymceConfig();
answer = JSON.parse(JSON.stringify(config));
},
type: 'TinymceConfigScript'
};
d. Set the menu bar attribute to true in the script to enable the
menu bar.
This will enable all the options “File” “Edit” “View” “Insert”
“Format” “Table” in the menu bar.
e. If you want to disable the menu bar set the menu bar attribute to
false.
For example, menu bar: 'file edit format' so that only these 3
options appear on the menu bar.
g. You can also configure the buttons that display within a menu by
changing the script.
tinymce.init({
selector: 'textarea', // change this value acco
rding to your HTML
menu:{
file: { title: 'File', items: 'newdocument r
estordraft | preview | importword exportpdf exportw
ord | print | deleteallconversations' },
edit: { title: 'Edit', items: 'undo redo |
cut copy paste pastetext | selectall | searchreplac
e' },
view: { title: 'View', items: 'code revisio
n history | visualaid visualchars visualblocks | sp
ellchecker | preview fullscreen | showcomments' },
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
style_formats: [
{ title: 'Headings', items: [
{ title: 'Heading 1', format: 'h1' },
{ title: 'Heading 2', format: 'h2' },
{ title: 'Heading 3', format: 'h3' },
{ title: 'Heading 4', format: 'h4' },
{ title: 'Heading 5', format: 'h5' },
{ title: 'Heading 6', format: 'h6' }
]},
{ title: 'Inline', items: [
{ title: 'Bold', format: 'bold' },
{ title: 'Italic', format: 'italic' },
{ title: 'Underline', format: 'underline' },
{ title: 'Strikethrough', format: 'strikethrough'
},
{ title: 'Superscript', format: 'superscript' },
{ title: 'Subscript', format: 'subscript' },
{ title: 'Code', format: 'code' }
]},
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Example with three new style formats added (Bold text, Red text,
My-inline):
tinymce.init({
selector: 'textarea', // change this value accordin
g to your HTML
style_formats: [
{ title: 'Bold text', inline: 'b' },
{ title: 'Red text', inline: 'span', styles: { col
or: '#ff0000' } },
{ name: 'my-inline', title: 'My inline', inline: '
span', classes: [ 'my-inline' ] }
],
// The following option is used to append style form
ats rather than overwrite the default style formats.
style_formats_merge: true
});
Access the HTML editor and you will see that the new custom style
formats (Bold text, Red text, My-inline) appear in the formats section
of the menu bar.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For example, you can add portraits to the user records in your system. The
image type must be .gif, .jpg/.jpeg, or .png.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Add the new field to the form and save your customization.
The form displays the new blank image field.
4. Click Click to add in the image field, select an image to upload, and
click OK.
The selected image is attached to the form and displayed in the
image field.
Result
Related concepts
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
10.34.51.20
1507:f0d0:1002:0051:0000:0000:0000:0004
1507:f0d0:1002:51::4
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The example image contains the three available journal field types. The
first is a journal field, with its inputs displayed below the field. The second
is a journal input field, which does not show its previous inputs. The third
is Journal list field, which is configured to show the input from the journal
input field above it.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Default value: 3
• Location: System
Properties > Email
To put the contents of a journal field into an array so that you can iterate
through each entry, you can use the code in this page.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The setValue() method is not supported for journal fields. Instead, assign
values in script as in the following example.
while(gr.next())
{
Journal fields can render text enclosed within code tags as HTML.
Journal fields can greatly increase the size of task records because they
allow users to enter very large string values.
By default, multi-line text fields have a 4000 character limit. To help users
see how many characters remain before they reach the limit, you can
enable the glide.ui.textarea.character_counter property.
Journal fields can render text enclosed within code tags as HTML.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Role required: any role that grants write access to a journal field
By default, a High Security Setting escapes any HTML code you type in a
journal field by replacing it with its equivalent HTML entity value. Escaping
causes the system to display HTML code as text rather than forwarding it
to the browser as rendering instructions.
Procedure
[code]<a
href="http://www.service- The system renders a hyperlink to
now.com">ServiceNow</a>[/ the ServiceNow web site.
code]
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For more examples of HTML formatting options, see the blog post
Formatting within Journal fields using HTML & [code] by a ServiceNow
Technical Support Engineer in the ServiceNow Community.
2. Click Post.
Note: You cannot edit previous journal entries.
Result
You can prevent journal fields from rendering HTML code by disabling
support for the [code] tag.
Related topics
• HTML sanitizer
You can prevent journal fields from rendering HTML code by disabling
support for the [code] tag.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Clear the check box for Allow support for embedding HTML code by
using the [code] tag (the glide.ui.security.allow_codetag property).
Note: To learn more about this property, see Allow embedded
HTML code (instance security hardening) in the Instance Security
Hardening Settings.
3. Click Save.
Procedure
3. Click Save.
Users now see a warning in the activity formatter when they enter
invalid HTML code in a journal field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Journal fields can greatly increase the size of task records because they
allow users to enter very large string values.
Display limits prevent the instance from loading the entire journal field into
memory. Administrators have the option to:
• Set the length at which journal fields stop displaying the entire field's
contents and instead only display a portion (called a preview) of the
field's contents. Users can still access the field's entire contents by
clicking a Show All button.
• Set the size of the preview text the journal field displays.
• Set the maximum number of journal entries journal fields can display.
In Core UI, journal fields and the activity formatter must be in the same
form section. You cannot place another field in between a journal field
and the activities formatter. The Activity Stream is built to keep journal
fields stacked on top of the activity formatter.
Note: Journal field display limits are not supported in the legacy
Comments and Worknotes field.
You can set the maximum display size for journal fields by adding a
system property.
When a journal field exceeds the length set in this property, the instance
shows a preview of the journal field instead of the field's entire contents.
The preview includes a Show All button to display the rest of the field's
contents. A separate property determines the number of characters the
preview displays.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Property Value
Name glide.max_journal_list_size
Type Integer
Value 10
2. Click Submit.
Procedure
2. Select New.
Property Value
Name glide.shortened_journal_length
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Value
Type Integer
Value 512000
4. Select Submit.
To set the maximum number of entries the system shows in the activity
formatter, edit the following system property. The activity formatter
displays the entries starting with the most recent entry up to the maximum
number.
Procedure
Property Value
Name glide.history.max_entries
Type Integer
Value 250
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click Update.
Related concepts
• Activity formatter
By default, multi-line text fields have a 4000 character limit. To help users
see how many characters remain before they reach the limit, you can
enable the glide.ui.textarea.character_counter property.
This property adds a counter under text fields, such as the Additional
Comments and Work notes fields. The counter is dynamically updated as
users enter text.
Procedure
2. Select the check box next to Character counter for textarea (journal
and multi line text fields).
3. Select Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Sample script
The following example demonstrates how to add mappings to a name-
value pairs field, and how to query existing values using the name.
// Script example demonstrating setting and getting value
s
var gr = new GlideRecord('u_nv_table');
gr.initialize();
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
target_field=percent_complete_target,target_threshold_colo
rs=0:tomato;50:khaki;90:lightgreen
The following table lists examples of percent of target calculation using
the colors defined above.
Target threshold colors attribute
Percent of target
Target percent Percent field value Color
calculation
65 59 90.7% lightgreen
15 10 66.7% khaki
Percent complete color example
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• [By Default] A red underline when a phone number does not match the
format for the selected phone territory and cannot be saved.
Phone e164
• Territories assigned
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Dependent fields
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related tasks
The system properties apply the configuration option to all phone number
fields that do not have a comparable dictionary attribute. The dictionary
attributes apply the configuration only to the phone number field it
is added to. Since dictionary attributes take precedence over system
properties, administrators can set a global configuration with a property
and then apply exceptions on a field-by-field basis.
By default, phone number fields require that a phone number match the
display format of the selected territory.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
By default, users can enter phone numbers in their territory's local format
and do not have to format the number for international dialing.
Change the E.164 phone number to use the local format in certain
circumstances by adding the following system property:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
• Type: string
Select one of the possible values to determine how the system handles
the E.164 phone number.
You can also add the following dictionary attribute to a specific field to
override the system property:
Dictionary attribute Description
Overrides the
glide.phone_number_e164.display
_national property setting for how
an E.164 phone number field
displays phone numbers. Available
pn_display_national values are identical to those
described for the
glide.phone_number_e164.display
_national property.
• Type: string
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Example:pn_display_national=all
You can display territory labels next to the number in an E.164 phone
number field by setting the system property or adding the dictionary
attribute. This display is useful if the territory selector choice list is turned off
and you want the user to see the territory for the entered phone number.
Add the following system property to display the territory label next to the
number in an E.164 phone number.
Property Description
• Type : string
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
regardless of whether the
number is in local or
international format.
• read-only-national: Displays
the territory label in read-only
mode only if the number is in
local format.
You can also add the following dictionary attribute to a specific field to
override the system property:
Dictionary attribute Description
Overrides the
glide.phone_number_e164.display
_territory_text property that defines
when a phone number field
displays a territory label. Available
values are identical to those
described previously for the
glide.phone_number_e164.display
pn_display_territory_text _territory_text property.
• Type: string
•
Example:pn_display_territory_text
=all
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can enable the display of the international direct dialing prefix,
which appears between the territory selector choice list and the input
box for an E.164 phone number field on forms, by setting the system
property or adding the dictionary attribute.
You can also add the following dictionary attribute to a specific field to
override the system property:
Dictionary attribute Description
Overrides the
glide.phone_number_e164.display
_users_idd property that
determines whether to display the
international direct dialing prefix
between the territory selector
pn_display_users_idd
choice list and the input box on
forms. Available values are
identical to those described
above for the
glide.phone_number_e164.display
_users_idd property.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
Example:pn_display_users_idd=fa
lse
Add the following system property to show or hide the territory selector
choice list.
Property Description
You can also add the following dictionary attribute to a specific field to
override the system property:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Overrides the
glide.phone_number_e164.display
_territory_selector property setting
that determines whether to display
the territory selector choice list.
Available values are identical to
those described above for the
glide.phone_number_e164.display
pn_display_territory_selector _territory_selector property.
• Example:
pn_display_territory_selector=fals
e
Property Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
Users cannot save the phone
number.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
• Type: string
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
• Default value: true
• Type: string
• read-only-national: Displays
the territory label in read-only
mode only if the number is in
local format.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Property Description
• Location: Add to the System
Properties [sys_properties] table.
You can override the global system property with certain dictionary
attributes.
Overrides the
glide.phone_number_e164.strict
property setting that requires all
phone number entries match
the format for the selected
territory. Available values are
pn_strict identical to those described for the
glide.phone_number_e164.strict
property.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Overrides the
glide.phone_number_e164.allow_n
ational_entry property setting that
determines whether users can
enter phone numbers in the local
format or whether they must enter
phone numbers in international
format. Available values are
identical to those described for the
pn_allow_national_entry glide.phone_number_e164.allow_n
ational_entry property.
•
Example:pn_allow_national_entr
y=false
Overrides the
glide.phone_number_e164.display
_national property setting for how
an E.164 phone number field
displays phone numbers. Available
values are identical to those
described for the
pn_display_national glide.phone_number_e164.display
_national property.
• Type: string
• Example:pn_display_national=all
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Overrides the
glide.phone_number_e164.display
_territory_selector property setting
that determines whether to display
the territory selector choice list.
Available values are identical to
those described for the
glide.phone_number_e164.display
pn_display_territory_selector _territory_selector property.
• Example:
pn_display_territory_selector=fals
e
Overrides the
glide.phone_number_e164.display
_territory_text property that defines
when a phone number field
displays a territory label. Available
values are identical to those
described for the
glide.phone_number_e164.display
pn_display_territory_text _territory_text property.
• Type: string
•
Example:pn_display_territory_text
=all
Overrides the
glide.phone_number_e164.display
pn_display_users_idd
_users_idd property that
determines whether to display the
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
•
Example:pn_display_users_idd=fa
lse
The number is first validated against the phone validations that have
been defined for the territory, and in the order specified by the Order
field. To be valid, the number must match the regular expression defined
in the Condition field for at least one phone validation.
The Sys Phone Territory screen allows administrators to edit the display
rules for a given territory. Administrators may want to modify the Active,
Display, or Order fields. To edit the display rules for a territory:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Navigate to All > System Policy > Rules > Telephone Display Rules.
4. Click Update.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
If more than one territory is
assigned the same number, they
are subsorted alphabetically. All
territories are assigned a default
value of 100. To display a territory
at the top of the list, assign a
value that is less than 100. To
display a territory at the end of
the list, assign a value that is
greater than 100. For example,
if a territory is assigned an order
of 500, it is displayed at the
end of the list, and if more
than one territory is assigned
an order of 500, they are listed
alphabetically at the end of the
list.
Phone validations
Phone validations are already configured for all territories and are
automatically applied to the phone number to ensure that the number is
valid for the territory.
Phone formats
Phone formats are already configured for all territories and are
automatically applied to the phone number to ensure that the number is
valid for the territory.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note: A reference field can refer only to records from one other
table. To add a field that can refer to records on any table, use the
Document ID element type.
Option Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Option Description
Add reference fields to a table using the same method as for any other
field.
• Display values
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Decorations
• Reference qualifiers
Use reference qualifiers to filter the data that is returned for a reference
field.
• Recent selections
Add reference fields to a table using the same method as for any other
field.
The related table also appears in the Available Tables list for future form
customizations.
Procedure
3. Use dot-walking to locate and select the field in the referenced table
that you want to add.
It appears as Table name.Field. For example, the caller's email
address appears as Caller.Email.
4. Click Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When a record is deleted, there are different options for how the
deletion will affect records that reference the deleted record. You can
configure what happens to records that reference a record when that
record is deleted.
Procedure
1. Right-click the field label in the form and select Configure Dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. Click Update.
Examples:
current.name = value;
current.insert();
type: 'MyUserReferenceCreator'
}
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
When a record is deleted, there are different options for how the deletion
will affect records that reference the deleted record. You can configure
what happens to records that reference a record when that record is
deleted.
For example, if you delete a user record that is referenced in the Caller
ID field on several incident records, you can configure what happens
to those incident records. By default, the references are cleared, so the
incident records are maintained with an empty Caller ID field.
Procedure
Option Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Option Description
6. Click Update.
Related tasks
By default, reference fields store the sys_id of the record in the database.
By defining a reference key, you can identify a field other than sys_id
to use as the unique identifier for the reference field. The value of the
reference key field, instead of the sys_id, is stored in the database for that
reference field.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Select Update.
Procedure
1. In the form, right-click the label for the reference field and select
Configure Dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Click Update.
The form reopens, with the reference field as a choice list.
Note:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• System dictionary
The reference field shows the display value. For example, an incident's
Assigned to field stores the sys_id of a particular user, but actually displays
the user's name. The following example shows how Charlie Witherspoon,
which is the display value of a user record, is shown in the Assigned to
field.
Reference field
Assigned to 46b87022a9fe19
Name Charlie
[task.assigned_t 8101a78787e40d
[sys_user.name] Whitherspoon
o] 7547
Reference fields show display values in:
• Lists
• Forms
• Reports
• Auto-complete suggestions
• Slushbuckets
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Only one field can be defined as the display value for a table.
Related concepts
Only one field can be defined as the display value for a table.
When you set the Display value to true, a business rule sets the Display
value to false for all other fields on the table. In previous versions, you
must manually ensure that no other fields on the table have a value of
true in the Display column.
Note: Extended tables inherit the display value of the parent table.
Setting a separate display value for the extended table overrides the
parent table's display value.
Procedure
For best results, choose a field that is required and unique in each
record as the display value field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Reference fields look for the display value in the following order:
• Reference lookup
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When List v3 is enabled, the list appears in a popover. Otherwise, the list
appears in a pop-up window.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You cannot customize the label names used in the tree picker. The label
names are taken from the values in the table.
Note: The tree display hierarchy does not appear in reference fields
when using mobile applications.
Related topics
• Tree picker
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The preview remains open until you click somewhere else on the form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Use a table's sys_popup form view to configure the fields in the pop-up
form that appear when pointing to a reference icon. If the table has no
sys_popup view, the pop-up uses the default view.
Procedure
Note: This URL format only shows a table and default sys_popup
view. It does not work for records that use a different view.
An example of an instance for Acme, the sys_user table, and the
sys_popup default view:
acme.service-now.com/sys_user.do?sysparm_view=sys_popu
p
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
What to do next
If this system value is set to false, you can override the setting for a
specific read-only reference field. Configure the dictionary entry and
add the readonly_clickthrough=true attribute.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. In the form, right-click the label for the reference field and select
Configure Dictionary.
3. Click Update.
The form reopens and the related incidents icon appears beside the
field on the right.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
The show workflow icon ( ) opens the workflow in the Workflow Editor.
Procedure
1. In the form, right-click the label for the workflow field and select
Configure > Configure Dictionary.
3. Click Update.
The form reopens and the show workflow icon appears beside the
field on the right.
Related concepts
Use reference qualifiers to filter the data that is returned for a reference
field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
prior example, if a reference qualifier is not defined, all users in the User
table appear in the reference lookup. Including those users that are
inactive. Sometimes, this might be the desired functionality. In other cases
however, only a subset of the available values may be desired. In this
case, create a reference qualifier to filter the available data so that only
the desired values are returned and made available to the form. Such
as only the active users or users that have a specific role. Reference
qualifiers are robust and can consist of simple AND/OR conditions, inline
JavaScript, or complex script include.
You can modify the reference qualifier for a table, and any table based
on that table (parent or extended), by defining a reference qualifier
through the Dictionary Entry form. You can also modify the reference
qualifier only on an extended table and its children (not the parent
table), through a dictionary override. You can only define a single
reference qualifier per field, per form/table. Reference qualifiers are
not applicable to condition builders. For information on using filtering in
condition builders, see Create a dynamic filter option.
Note:
• To restrict what data specific users can access, use ACLs not
reference qualifiers.
You can define a reference qualifier using one of the following methods.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
cmdb_rel_ci_child_refQual:function(){
current is a JavaScript object that contains the fields and field values of
the active (current) record. For forms, this is the record that is displayed
(loaded) in the form. Within advanced and dynamic reference qualifiers,
you can use the JavaScript current object to define filters such as
javascript:"company=" + current.company.
This JavaScript, within a reference qualifier, only returns the records from
the referenced table that are equal to the company field value of the
current record. So, if the value that appears in the Company field is
Acme, the JavaScript returns all reference field records whose company
value is equal to Acme (company="Acme"). If you then bring up a
record whose company value is "ViewRite", the JavaScript resolves to
company="ViewRite."
All fields within the currently loaded form (tables) are available for use
with the current object. Use dot-walking to access values in a table,
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
including the referenced table. For example, on the Incident form, the
Assigned To field references the User table. To access the email address
of the user, use the following syntax: javascript:"emailAddress=" +
current.assigned_to.email.
Related topics
• CMDB classifications
This task walks you through creating a reference qualifier in the system
dictionary. When creating a reference qualifier in the system dictionary, it
not only applies to that table, but also to all the children of the table.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. From the Use reference qualifier choice list, select the reference
qualifier to implement.
Field Description
• Cascade
• Clear
• Delete
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• Delete no workflow
• Restrict
8. Click Update.
This example shows how to use JavaScript and a business rule to restrict
the incident Assigned to field choices to only the users with the itil_admin
role.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can also change itil_admin to any other role on a reference field
that refers to the User [sys_user] table.
Procedure
1. Open an incident.
2. In the upper-left corner of the screen, click the form context menu,
and then select Configure > Dictionary.
5. To see the base system business rule that this JavaScript code calls,
navigate to System Definition > Business Rules.
6. Open getRoledUsers.
The business rule uses the following JavaScript code.
// Return an array of sys_ids of the users that have a
t least one role
// optional parameters allow the exclusion (NOT IN) o
f some roles or
// look for specific roles (IN)
//
// optional: queryCondition - 'IN' or 'NOT IN'
// optional: roleList - a comma separated list of rol
e names
//
function getRoledUsers(queryCondition, roleList) {
var roleListIds;
if (queryCondition && roleList) {
roleListIds = getRoleListIds(roleList);
}
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
}
now_GR.query();
while (now_GR.next()) {
users[now_GR.user.toString()] = true;
}
return ids;
}
Procedure
1. Open an incident.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. In the Use reference qualifier field, ensure that the Advanced option
is selected.
8. Click New.
backfillAssignmentGroup:function() {
var assigneeGroupsQualifier = '';
var assignee = current.assigned_to;
grAssigneeGroups.addQuery('user',assig
nee);
grAssigneeGroups.query();
while(grAssigneeGroups.next()) {
if (assigneeGroupsQualifier.len
gth == 0) {
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
return assigneeGroupsQualifier;
},
type: 'ReferenceQualifierHelper'
};
What to do next
For example, use the INSTANCEOF operator for a reference field to the
cmdb_ci table to specify that all subclasses of a class are included in the
results. The following reference qualifier returns all servers, including Linux,
UNIX, Windows, and so on, because each of those subclasses extend the
cmdb_ci_server class.
sys_class_nameINSTANCEOFcmdb_ci_server
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
u_active=true^sys_class_name=cmdb_ci_acc
^ORsys_class_name=cmdb_ci_computer
^ORsys_class_name=cmdb_ci_server
^ORsys_class_name=cmdb_ci_win_server
^ORsys_class_name=cmdb_ci_unix_server
^ORsys_class_name=cmdb_ci_linux_server
^ORsys_class_name=cmdb_ci_appl
^ORsys_class_name=cmdb_ci_netgear
u_active=true^sys_class_name=cmdb_ci_acc
^ORsys_class_nameINSTANCEOFcmdb_ci_computer
^ORsys_class_name=cmdb_ci_appl
^ORsys_class_name=cmdb_ci_netgear
There are dictionary attributes that are specific to reference fields and
that determine auto-complete behavior.
Attribute Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Attribute Description
the drop-down auto completion
choices. Valid class values include:
• AJAXReferenceCompleter:
Displays matching auto-
complete choices as a drop-
down choice list. The list only
displays the reference table's
display value column. Reference
fields automatically use this
class if there is no other auto-
completion class specified.
• AJAXTableCompleter: Displays
matching auto-complete
choices as rows in a table.
The table displays the reference
table's display value column
and any columns listed in the
ref_ac_columns attribute.
• AJAXReferenceChoice: Displays
matching auto-complete
choices as a drop-down choice-
list. The list only displays the
reference table's display value
column. Furthermore, the list only
displays up to 25 matching
choices. If there are more
than 25 auto-complete choices,
the reference field instead
displays the choices with the
AJAXTableCompleter class.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Attribute Description
user_name, email, and
sys_created_on columns.
Auto-complete UI features
• The table completer always displays the number of records the auto-
complete query finds.
• The table completer highlights the entire selected row by changing the
color of the background and text.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Navigate to a list of the target table, such as All > User Administration
> Users.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Version Action
6. Click Update.
What to do next
You can remove the display value column from a reference field by
setting the ref_ac_display_value attribute to false.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
This causes the reference field to remove the display value column
and only display the columns listed in the ref_ac_columns attribute.
This feature requires the use of the AJAXTableCompleter class and
the ref_ac_columns, ref_ac_columns_search, and ref_ac_display_value
attributes.
Note: Auto-complete cannot match text from additional columns
when the reference field is a product of the ui_reference UI macro.
This means any auto-complete action against a selector, such as the
Impersonate User list, can only match text against the display value.
This example describes how to remove the display value column from
references to the User [sys_user] table and replace it with references to
the first_name and last_name columns.
Procedure
1. Navigate to a list of the target table, such as All > User Administration
> Users.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For example, to hide the display value column and only display the
user's first and last names enter the following.
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=fi
rst_name;last_name,ref_ac_columns_search=true,ref_ac_d
isplay_value=false
6. Click Update.
What to do next
By default, all reference fields use a starts with query to search for
matching text in the reference table. This prevents auto-complete from
executing inefficient contains queries every time a user searches a
reference field. You can require all reference fields to use a starts with
query.
The following example illustrates a contains query. Note that the letter "d"
appears anywhere in the user's first or last name.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
4. Click Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Auto-complete attribute
5. Click Update.
Example
The following example describes how to set the Configuration Item
field display the CI class names from auto-complete choices for the
Configuration item [cmdb_ci] table.
ref_auto_completer=AJAXTableCompleter ,ref_ac_columns =sy
s_class_name ,ref_ac_order_by =sys_class_name ,ref_contri
butions =task_show_ci_map ;ci_show_incidents
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. Click Update.
What to do next
If two asterisks are entered, a list of available records display in the auto-
complete suggestions.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
Reference fields store a list of each user's recent selections to enable you
to quickly select past values when filling in a reference field.
Note:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Recent selections
Note:
Related reference
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
5. Click Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can configure the suggested text options for string fields.
You can configure the suggested text options for journal fields, such
as work notes or the activity stream. Suggested text options for journal
fields are unavailable in Core UI.
You can configure the suggested text options for string fields.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
2. Using the slushbucket, select options and the order in which you want
them to appear.
• To create a new option, enter the suggested text in the Enter new
item field and click Add.
3. Click Save.
4. To edit existing options, right-click the field label and select Show
Choice List..
Example
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can configure the suggested text options for journal fields, such as
work notes or the activity stream. Suggested text options for journal fields
are unavailable in Core UI.
Procedure
2. Click New.
5. Click Save.
Example
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Some fields in the base system support Wikitext and administrators can
add Wikitext fields on any form in the system.
Configure the Wikitext field to link to other sources within the system.
For example:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
{| class="wikitable"
|-
! Header 1
! Header 2
|-
| row 1, cell 1
| row 1, cell 2
|-
| row 2, cell 1
| row 2, cell 2
|}
Bold '''text'''
Italics ''text''
[http://community.service-
Web link
now.com/ <link text>]
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
<b>bold</b>, <strong>strong</
strong>, <i>italics</i>,
HTML <h1>header1</h1>,
<h2>header2</h2>,
<h3>header3</h3>,
<p>paragraph</p>, <sub>sub</
sub>, <sup>sup</sup>,
<center>center</center>
Procedure
Related tasks
Configure the Wikitext field to link to other sources within the system.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. In the Dependent field of the dictionary form, enter the field you want
to use for linking to other pages.
For example, on the Incident table, you might choose the number
field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• The system can only have a maximum of 1000 columns per table.
Although 1000 columns is a specified limit, this limit doesn't mean
you can physically have 1000 columns within a table. The number
of columns within a table is defined by the database used in the
ServiceNow datacenter, not by the Now Platform.
Procedure
2. Right-click the form header and select Configure > Form Layout.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click Add.
5. Use the slushbucket to place the field in the desired location on the
form.
6. Click Save.
The field now appears on the form in the designated location.
You can change a field's label or the text that appears as a hint when
you point your mouse device to the field.
You can delete custom fields that you created. Custom fields begin
with u_. It is recommended that you remove the field from forms and
lists instead of deleting it.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can modify the maximum character limit for a string field.
The system allows you to require that a field's values be unique. When
this is done, the system will not let two records have the same value for
that field.
Field styles enable you to declare individual CSS styles for a field in a list
or form.
• Record numbering
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Click Update.
The next time the form is opened, a field status indicator appears
next to the field label, indicating that a value is mandatory. If the
mandatory field is pre-populated for any reason, the mandatory field
indicator does not appear.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related topics
Procedure
2. Select and hold (or right-click) the field label and select Configure
Label.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
4. Select Update.
Related topics
You cannot delete base system fields. In addition, any missing base
system fields are recreated when the instance is upgraded.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Click Delete Column in the form header, and then click OK.
c. Check the boxes next to the fields to delete and select Delete
from the action list below the list.
A confirmation dialog opens and reminds you that this may result
in deletion of related records. If there are dependencies for the
selected fields, they are listed.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Glide controls
Icon Function
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
If users on a watch list are getting more than one email for each update
to an incident, it can be because other recipients are replying all to an
email notification. Recipients may be receiving email through their email
system (Outlook, Groupwise, and so on) and through the base system. To
stop this duplication, remove the names of other users from the email or
the watch list.
Procedure
2. In the Who will receive section, select the icon beside Users/groups in
fields.
4. Click Update.
You can remove the email address text entry element from a watch list
by modifying the dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When you add multiple users to a glide_list, such as a watch list, the
slushbucket does not display the order buttons for the list of selected
members. You can set a dictionary attribute to display the order
buttons.
Related tasks
Related concepts
You can remove the email address text entry element from a watch list
by modifying the dictionary.
Procedure
4. Enter or select the no_email attribute and enter true in the Value
field.
5. Click Submit.
Result
The email entry field is hidden. Users can select users from the reference
field to add to the watchlist.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
When you add multiple users to a glide_list, such as a watch list, the
slushbucket does not display the order buttons for the list of selected
members. You can set a dictionary attribute to display the order buttons.
The slushbucket opens when the user clicks the add/remove multiple
users icon.
By default the order buttons on the right are not displayed. Follow the
procedure to display the order buttons.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
5. Click Update.
Related concepts
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The set up involves specifying the fields that gets highlighted and the
conditions that trigger the highlighting.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Reference
• URL
• Document IDs
Procedure
Field Definition
The Field value can be unrelated to the condition that triggers the
highlighting. In the following example, if the Caller is Fred Luddy,
Workspace highlights the Priority field, not the Caller field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
a value, Workspace replaces the field value with
your text and highlights that.
6. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
a. Navigate to sys_aw_list.list.
The URL type field hides the Max Length field on the Dictionary form by
default. Browsers support URL length up to 2,083 characters. The URL field
is a String field.
Procedure
1. Navigate to a form that contains the field that you want to modify.
2. Right-click the field label in the form and select Configure Dictionary.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click Update.
The system cancels any length change that results in data loss due to
truncation.
Related reference
• Field types
The default value populates the field on the blank form for a new
record, and also subsequently when the new record is submitted if the
field is empty. Default values can be specified as either a constant or
generated through script.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Example: Set a default value for assigned_to if user has the itil
role
This example for the Task [task] table describes how to configure the
default value for the [assigned_to] user equal to the current user id if the
user has a role of itil.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Right-click the field label in the form and select Configure >
Dictionary.
2. In the Dependent field, enter the name of the field that this field will
depend on.
Note:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• Reference qualifiers
By default, fields are created without this constraint. A field can have
unique values only if there aren't already duplicate values in the
database for that field. The system doesn't allow you to make a field
unique while there are duplicate values in the table.
The system also doesn't allow you to add a unique index if a non-unique
index already exists. In this scenario, you can't select the Unique check
box on the form; instead, the system directs you to the Tables & Columns
module, so you can drop the non-unique index, and then create the
unique index.
Procedure
1. Verify that no records in the table for the field have values, or that
they all have the same value.
2. Right-click the field label in the form and select Configure Dictionary.
3. Configure the form to add the Unique field if it does not already
appear.
5. Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
You can define field styles for tables and database views that are in the
same scope as the field style and for other tables that have at least one
field in the same scope as the field style. Field styles defined for a table
don’t apply to database views that include the table. Create separate
field styles for database views.
Note: Field styles aren’t applied to comments and work notes fields
used with the activity formatter. Background color for these fields
can be set using the glide.ui.activity_stream.style.comments and
glide.ui.activity_stream.style.work_notes system properties located in
the sys_properties table.
Procedure
1. Navigate to the list of styles for the field in one of the following ways.
• Right-click the field label on the form and select Configure Styles.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Navigate to System UI > Field Styles, and locate the field to apply
a style (admin only).
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
background-color:red;
font-size:24px;
color:white;
The script has access to the current script object, which enables you
to build conditions based on the field values of the current record.
For example, this script checks for overdue items based on a field
value:
javascript:gs.dateDiff(gs.now(), current.u_datefield.g
etDisplayValue(), true) < 0
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Record numbering
In the base system, several tables are numbered, including Incident,
Problem, Change Request, and Knowledge. You can also use
these numbers anywhere that script is present, for example to
generate watermarks for emails. Records in tables can be numbered
automatically.
You can renumber auto-incremented tables that extend the task table or
manage numbering with a database field named Number this field.
Note: If you reset numbering in Number Maintenance, it only
renumbers new records. It leaves the numbering as-is for existing
records in system tables.
You can define one number format per table in the system.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can define one number format per table in the system.
Procedure
2. Click a table name to view the number record for that table, or click
New.
• Label: Number
• Name: u_number
• Default value:
javascript:getNextObjNumberPadded();
javascript:getNextObjNumber();
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
digits is 2 and more than 99
records are created on the
table, the numbers continue
past 100 (such as INC101).
Warning: Changing this
field may update all number
values for existing records
on a table. Take care when
changing this field on a
production instance.
Note:
Related concepts
• System dictionary
Procedure
1. Duplicate the base system business rule named Pad Numbers: Click
Insert and Stay.
If Insert and Stay is not available on your instance, create a new
business rule and manually copy all field values from Pad Numbers.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
2. Give the business rule a new name and change the script field to
read as follows:
padCurrentCategory();
function padCurrentCategory() {
var target = new GlideRecord(current.category+"");
if (!target.isValidField("u_number") || target.isValid
Field("number")) return;
var nm = new UNumberManager();
nm.padTableNumbers(current.category, current.maximum_d
igits);
};
You can configure the left padding of the system numbers on a table.
For example, pad the Number field on an Incident, Problem, or Change
Request.
You can configure the left padding of the system numbers on a table.
For example, pad the Number field on an Incident, Problem, or Change
Request.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Navigate to the form, then right-click the Number field and select
Configure Dictionary.
2. Enter the following script in the Default value field and click Update.
javascript:getNextObjNumberPadded();
6. Click Update.
Number padding is applied to both existing and new records.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When records are created but not saved, a gap in the numbering is
created. You can prevent these numbering gaps by generating numbers
only when records are saved.
Procedure
2. Set the property Assign a task number only upon insert (prevents
unused numbers), glide.itil.assign.number.on.insert, to true.
3. Click Save.
• Enable a unique index on the table. For more information, see Create a
table index.
Note: While unique indexes ensure data integrity they also
prevent any insert involving a duplicate number. This may cause
unexpected errors during data entry.
if(curNum) {
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
now_GR.setLimit(1);
now_GR.query();
if(now_GR.getRowCount() > 0) {
var newNum = getNextObjNumberPadded();
gs.addInfoMessage("The number " + current.number + "
was already used by another " +
recordClass + ". The " + recordClass + " number has
been changed to " + newNum);
current.number = newNum;
}
}
Related topics
• Business rules
Normalization
• Set the suffix used for the names of corporations to a standard format
such as ServiceNow, Inc..
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transformation
Transformation converts raw field input values into standardized values
that are more meaningful to an organization. Administrators control when
transformation happens by defining rules and conditions for specific
fields. For example, you might create transformation rules to:
Field type records specify which data types are available for
normalization and transformation. By default, the system supports
normalization and transformation for these field types.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Warning: Avoid creating field type records for fields that store a
Sys ID value such as a reference field, field name field, or a table
name field. Directly altering a Sys ID value is more likely to produce
data corruption and broken references than to produce meaningful
standard values. Instead, normalize or transform the display value
associated with the Sys ID. For example, normalize the user name
instead of the Sys ID of a specific user.
The system uses data jobs to change field values during normalization
and transformation.
• Normal values
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
A normal value replaces similar but ambiguous field values with one
standard value.
• Transforms
The system offers default transform definitions for fields containing text,
text numeric, and numeric values.
Procedure
1. Navigate to All > System Applications > All Available Applications >
All.
2. Find the plugin using the filter criteria and search bar.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can search for the plugin by its name or ID. If you cannot find a
plugin, you might have to request it from ServiceNow personnel.
Related reference
Preference Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Preference Description
errors and Information to log errors,
warnings, and information.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Normalization preferences
• Run job
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Name Description
Name Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Name Description
Role Description
Related topics
Normalizer [normalizer]
Contains Roles
Groups
None.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Special considerations
None.
Contains Roles
None.
Groups
None.
Special considerations
None.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. Enter a Name for the field type that clearly describes the type in the
dictionary.
This value is for reference only and is not used in any processing.
For example, you might enter IP Address for the field type of
ip_address.
5. Select the appropriate check box to use this field type to normalize or
transform fields.
In the base system, only the String field type is used for normalization.
6. Right-click in the header bar and select Save from the choice list.
The Transform Categories Related List appears.
7. If this field type is being used for transforms, click Edit to associate an
existing Transform Category with this field type.
Note: If you create a custom field type that is used for
normalizations only, a link to a transform category is not
necessary.
The String field type is associated with the Text Transform Category,
which contains these transform definitions. Any of these associations
are configurable.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Complete the Create new field form at the bottom of the page, and
then click Add.
• Name: Type the field label. In this case, use Raw + <field label>.
• Type: Select a data type from the list for this field.
• Field length: Select the character limit for this field. The default is
40.
4. Move the new field adjacent to the normalized field using the
direction arrows in the slushbucket.
5. Click Save.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Administrators must manually start data jobs that apply field changes.
All transformation records open in Test mode by default, which blocks
administrators from running manual data jobs that apply changes to
existing data. Most data jobs have a roll back option to revert changes
after the job completes. By default, the system provides these data jobs.
Note:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Running the data job/jobs is the fourth step in transforming a field. This
topic explains how to run a single data job.
Running the data job/jobs is the fourth step in transforming a field. This
topic explains how to run data jobs for multiple field transformations.
Running the data job/jobs is the fourth step in transforming a field. This
topic explains how to run a single data job.
1. Start the Transform application data job to apply the transform to all
the appropriate records in the database.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
In the list of data jobs, select the check box of the jobs you want
to run, and then select Start from the Actions menu.
Click the link in the Created column to open the data job, and
then click the Start Related Link.
Running the data job/jobs is the fourth step in transforming a field. This
topic explains how to run data jobs for multiple field transformations.
1. Start the Transform application data job to apply the transform to all
the appropriate records in the database.
3. Select the check boxes for the jobs you want to start.
Note: These jobs must have the Mode set to Active.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Normal values
A normal value replaces similar but ambiguous field values with one
standard value.
Each of these sources may describe the same field value in several
different forms. For example, the CPU Type field on a computer CI form
might display any of the following similar values:
• Xeon L3350
• L3350
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Aliases
For example, you could create a normal value Xeon that has these
aliases.
• Xeon L3350
• L3350
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Rules
For example, the normal value Xeon could have this rule.
Normalized queries
The filtered list returns records with the normal value substituted for the
raw value. However, the breadcrumbs for the filter display the original
query conditions.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
A normal value is a simplified, generic value for a field that replaces all
the possible variants of that value that exist in the database.
• Create aliases
Aliases are the variants of a field value in the instance that will be
replaced by the normal value.
• Apply aliases
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Create rules
The use of rules to normalize a field is intended for large lists of variant
field values.
Related topics
• GlideRecord
Special Cases
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Click the Pending Values related list to view values for the normalized
field that have been entered manually, imported into the platform, or
created by Discovery.
A normal value is a simplified, generic value for a field that replaces all
the possible variants of that value that exist in the database.
After the platform runs the data job, the Pending Values related list on
the Data normalization jobs form is populated with all the unique values
for the field in the database. Examine the values in the list and decide
which normalizing method is best for the existing data. For example,
define an alias for a small pool of values and a rule for a large pool of
values. The following screenshot shows the pending values for CPU types
in Linux servers in a network. The list contains several choices for Intel
Xeon CPUs, which might be normalized as Xeon.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
4. Click New.
5. In the Normal Value form, create normal values for the variants in the
Pending Values related list.
These are the values the platform uses to replace the variants
configured as aliases.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Aliases are the variants of a field value in the instance that will be
replaced by the normal value.
The list of potential aliases is the contents of the Pending Values related
list. After creating a normal value, assign aliases to this value if the pool
of pending values is small. A normalized field can have a combination of
aliases and rules.
Procedure
6. Select aliases for this normal value from the available (pending)
values that appear in the slushbucket, and then click OK.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The aliases for this normal value now appear in the Aliases related list.
What to do next
Each time an alias is created for a normal value, a data job is created.
The alias is not applied to values in the entire database until its data job
is started manually. Run each job separately or run the jobs together to
apply all aliases at once.
Procedure
4. In the Normal Value record, select the Data Jobs related list.
A data job is listed for each alias configured for this normal value.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. Run the extant data jobs to replace the aliases with the normal value
in all existing records in the database.
a. Select the check box next to a job, and then select Start from the
Actions menu.
b. To run all data jobs at once, select all the check boxes, and then
select the Start action.
c. Refresh the list to check the progress of the data jobs to ensure
that they complete normally.
The use of rules to normalize a field is intended for large lists of variant
field values.
Always test your rules before applying them to all the existing records in
the database. Prior to creating the rule, make sure to generate the list
of Pending Values and create a normal value for the field. A normalized
field can have a combination of aliases and rules.
The rules in this example are based on the following Pending Values:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Normalization rules 3
Procedure
3. Open the Rules related list in the Normal Value form, and then click
New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For every rule that is created, the platform generates a Rule applier
data job. In the testing mode, the Start controls are not available,
and the job cannot be run until the mode is changed to Active.
5. Test all the rules before making the normalization record Active.
Testing Rules
Note: Users must have the normalization_tester role to create
test records.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
When the references are fixed, all table fields directly corresponding to
sys_dictionary get fixed. The secondary references are not fixed. If you
have filter conditions that has the old, pre coelesced company names,
they aren't fixed either.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Start all the Alias application data jobs to replace the aliases with the
normal value in existing records in the database.
The system starts the Coalesce to normal data jobs for each alias.
Transforms
Transforms update field values by applying a transformation definition to
the field contents such as replace text, change case, or round value.
Transform definitions
Transform categories
Text
Definitions in the Text category transform string type field values. Included
in the Text category are:
• Left
• Right
• Constant
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Trim
• Prefix
• Suffix
• Change Case
• Delete
• Insert
• Substring
• Replace
Numeric
• Limit
• Round
• Constant
• Transform a field
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
What to do next
If you want to also show what the original (raw) input value was prior to
transformation, create a raw field to store this value.
3. Click New.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
default. Do not change the
mode until you have thoroughly
tested the transformation. When
testing is complete, change the
mode to Active. To disable this
transformation, switch the mode
to Off.
5. Click Submit.
The Transforms and Data Jobs Related Lists appear on the form.
2. Click New.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform types
5. Select the Final check box to stop processing with this transform if the
condition evaluates to true.
6. Select the Case sensitive check box to force case sensitivity in the
condition statement.
Transformation record
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
7. Click Submit.
8. (Optional) Repeat steps 2 through 8 until the output value meets your
desired criteria.
Test a transform
Verify the transform changes the field value as desired before applying
them to existing records in the database.
Procedure
In the test mode, only records that have been created or updated
by a user with the normalization_tester role are transformed. Grant the
normalizer and normalization_tester roles to the same user or grant
them to separate users.
• Use the Test transforms utility to enter a raw value and see the resulting
transformed value.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The platform transforms the raw value in the Transformed data field.
7.• When testing is complete, change the Mode to Active and run the
data job.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform Definitions
Transform
Category Description Parameters
Type
Converts the
Constant: The constant with
value in this
Constant Text Numeric which to replace the value
field to a
in this field.
constant.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
• Ending position: Specifies
the final character in a
sequence of characters
to delete from a string.
See the discussion of
position modes at the
beginning of this section
for details.
Adds
Prefix: Defines the
characters
characters to add to
Prefix Text to the
the beginning of the
beginning of
transformed field value.
a field value.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
Replaces
occurrences
of one string
with another
string. The
special
characters
backslash
(\) and
dollar sign
($) in the
replacement
string can • Find: Enter the string
cause the or regular expression to
transform to replace.
Replace Text
be different
than if the • Replace with: Enter the
replacement replacement string.
string were
being
treated as a
literal
replacement
string. Use a
regular
expression to
replace a
string or
parts of a
string.
Retains or
• Position: The number of
deletes a
characters to delete or
specified
keep from the right side
number of
Right Text of this transformed field.
characters
See the discussion of
from the
position modes at the
right side of
beginning of this section
a field value.
for details.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
• Mode: Select the mode
for this transform: Keep or
Delete.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
• Half away from zero:
Always round an
integer that is half way
between the specified
interval away from zero.
For example, 3.5 is
always rounded to 4,
and -3.5 is always
rounded to -4.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
• Up: Always round
an integer up by
the specified rounding
interval. For example,
3.4 is always rounded to
4 by a rounding interval
of 1.0.
Keep or
delete • Starting position: Specifies
Substring Text
characters the first character in
from a a sub-sequence of
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Transform
Category Description Parameters
Type
characters within the
value. See the discussion
of position modes at the
beginning of this section
for details.
Appends
Suffix: Defines the suffix to
characters
Suffix Text add to the end of the field
to the end of
value.
a field value.
Removes
blank
Trim Text Numeric spaces from No parameters
the field
value.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. Right-click in the header bar and select Save in the context menu.
Two Related Lists appear in the form.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
• The value in the Label field appears as the variable field label in
the Transform form. For example, Odd/Even.
• The field Type defines the field type of the variable value.
Because the values for the variables used are even and odd, this
is a type of string.
• The Order of the variables controls the order in which they are
displayed in lists and records.
• This variable has a choice list with two options: Even and Odd.
Select Dropdown without - None as the format for the list in the
Choice field and define a Default value of even when the list is
displayed.
3. Right-click in the header bar and select Save from the context menu.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click New in the Variables Choice List and define the list options.
6. Save the choice list variables and return to the transform definition
form to create the script.
The script can perform a transform action without using a variable, but
the action of the definition will be the same for all fields. Variables
create more flexibility for the definition, enabling an administrator to use
the same definition in different ways in different places. If a variable is
defined, the script must reference the variable using the correct format.
Position parameters
P
o
s
If the position is expressed as a positive integer, the platform calculates
i
the starting position beginning from the left side of the field value. For
t
example, in the string ABCDE, a position of 3 places the starting point of
i
the action after C.
v
e
p
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
o
s
i
t
i
o
n
s
N
e
g
a
t
i
v
If the position is expressed as a negative integer, the platform
e
calculates the position beginning from the right side of the field value.
p
For example, in the string ABCDE, a position of -3 places the starting
o
point of the action before C.
s
i
t
i
o
n
s
R
If the position value starts with /regex/, everything after that is a regular
e
expression that is used to calculate the starting position. For example, in
g
the string ABCDE, a position of /regex/B.*D places the starting point of
e
the action after C (B and all the characters between B and D).
x
Procedure
2. Enter the following script to pass values with the odd_even variable.
function(variables, value, parameters) {
var odd = ('odd' == variables.odd_even);
var val = value - 0;
var val_odd = ((val & 1) == 1);
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
if (odd != val_odd)
val++;
return '' + val;
}
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The order determines the display order of categories in lists and forms.
Two Related lists appear:
• Decimal
• Float
• Integer
• Numeric
• String
• URL
Regex
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Example
The computer names in an organization's Windows network are
expressed as domain\machine name, such as development\devlab01.
The network administrator wants to simplify these names by removing
the domain name and backslash. He creates a transformation record for
the Computer [cmdb_ci_computer] table and selects the Name field to
transform.
Transformation regex example
• Find:/regex/.*\\(.*)
• Replace with:$1
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The regular expression .*\\(.*) represents the entire raw value in the
Name field - in this example development\devlab01. The first part
of the expression, .*, represents everything before the backslash (the
development domain name). The backslash by itself is the escape
character in regular expressions and requires special syntax to retain its
function in the computer name. The administrator must escape it by
using another backslash (\\ means \). The part of the expression after
the backslash, (.*), represents the computer name (devlab01) and is
grouped within parentheses for reference. The value in the Replace with
field, $1, references this group and replaces the entire raw value of the
field with the contents of the group, devlab01.
When the transforms for this field are tested successfully, the administrator
changes the Mode in the transformation record to Active and runs
the Transformation application data job to apply this transformation to
existing records in the database.
• Pattern matching
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• The asterisk in a search string (*) matches any number (including zero)
of any character.
• The question mark (?) in a search string matches one of any character.
Examples
• *story matches the story and that story, but not that story is the best.
• *b?gus* matches bogus, my bogus story, and His bagus machine, but
not my bgus story or my baigus story.
• The domain field may exist on data tables but there is no business logic
to manage the data.
Related topics
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Data policy
Data policies enable you to enforce data consistency by setting
mandatory and read-only states for fields.
Data policies are similar to UI policies, but UI policies only apply to data
entered on a form through the standard browser. Data policies can
apply rules to all data entered into the system, including data brought in
through import sets or web services and data entered through the mobile
UI.
For example, suppose that you are configuring a web service that allows
users from outside the platform to update problems on the ServiceNow
instance. Since these problems are not updated through the instance UI,
they are not subject to the UI policies on the problem form. To ensure
that the Close notes field is completed before a problem is marked
Closed/Resolved, you can create a data policy that applies to server-
side imports. Data that does not comply with this data policy produces
an error. You can also apply the policy on the browser by selecting the
Use as UI Policy on client check box in the data policy record.
Since UI policies can also manage the visibility of fields on a form, you
may want to augment UI policies with data policies rather than replace
them.
• Import sets
• Client-side UI policies
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can create a new data policy to define data rules for a table.
Tables
The System Policy > Data Policies module displays a list of all data polices
and where they apply.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Roles
To learn more about managing subscriptions, see Managing per-user
subscriptions in Subscription Management and contact your account
representative.
Access and maintain data policies to specific users. Grant this role
access to the System Policy application
Contains Roles
None.
Groups
None.
Special considerations
None.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
• From any form header, right-click the header bar and select
Configure > Data Policies.
• In List v2, open any column context menu and select Configure >
Data Policies.
• In List v3, open the list title menu and select Configure > Data
Policies.
2. Click New.
4. Create the condition that must exist for the platform to apply this
policy.
For example, your conditions might include [Problem state] [is]
[Closed/Resolved]
6. Click New in the related list and create the record that identifies the
field and the policy to apply.
7. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
These fields appear on the Data Policy form and related forms.
These fields appear on the Data Policy form and related forms.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
system from a SOAP web service.
Scripted SOAP web services are
not affected. This field does not
affect data policy interaction with
REST web services.
Field Description
• True
• False
• True
• False
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• None of the UI policy actions can have Visible set to True or set to False.
Visible must be set to Leave Alone.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
• Data policy
Converting deactivates the data policy. The new UI policy is applied only
at the UI layer only and not to import sets or data imported from SOAP
web services.
Note: An alternative to converting from a data policy to a UI policy
is to select the Use as UI Policy on client checkbox on the data
policy record. This field extends the data policy to the UI. The main
difference between converting and using the Use as UI Policy on
client checkbox is that converting provides the Visible field on the UI
policy record. Use the Visible field to select how the UI policy affects
the visible state of the field.
Procedure
1. Navigate to All > System Policy > Rules > Data Policies and click an
existing data policy.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Debug messages can help you identify and resolve data policy
problems. To view data policy debugging messages at the bottom of the
screen, navigate to System Diagnostics > Session Debug > Debug Data
Policies.
Data lookup rules allow administrators to specify the conditions and fields
where they want data lookups to occur. For example, on Incident forms,
there are priority lookup rules for the sample data that automatically set
the incident Priority based on the incident Impact and Urgency values.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The custom table must extend the Data Lookup Matcher Rules
[dl_matcher] table. For example, this custom lookup table stores
information about VIP callers and incident assignments.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
The columns of a data lookup table contain both matcher and setter
field data.
Lookup table
Procedure
1. In the navigation filter, enter the name of the new custom lookup
table.
For example, u_vip_caller_lookup.list.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For this example, create the new fields in the following table.
New fields
Priority Integer
Group
Assignment Group Reference
[sys_user_group]
3. From the table list, click New and enter appropriate matcher and
setter field values.
For example:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Data lookup requires a definition record that specifies how to set one or
more field values when specified conditions are met.
1. Navigate to All > System Policy > Rules > Data Lookup Definitions.
2. Click New.
4. Complete the Data Lookup Rule form using the following table.
Data lookup definitions fields
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
client script changes a field
value on a source table form.
A data lookup only occurs on fields with matcher field definitions. The
data lookup uses the values of the source table fields to look up one
or more values from the matcher table. Note that data lookup does
not work with Journal type fields.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
8. Click Submit.
10. Complete the Setter Field Definitions form using the following table.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can create a module for data lookup so it appears in the instance
application navigator.
1. Navigate to All > System Definition > Application Menus, then select
an application to add the module to.
3. Configure a module for the data lookup table you created using the
following properties.
Module properties
4. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
If the custom data lookup definition rules are not behaving as expected,
check for certain conditions.
• Verify that the data lookup definition is set to run on the appropriate
events.
• Verify that the matcher field is not read-only. Because users cannot
change read-only fields, user interactions cannot trigger an on form
change event for read-only fields.
• Verify a client script is not changing a field value. Client scripts can
trigger Run on form change events even on read-only fields.
• Verify that you have not created a recursive rule, such as:
Dynamic Schema
Define a hierarchy of categories, groups, and attributes and enable users
to select groups of attributes on a record.
Key benefits
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Use cases
For example, assume you have a custom Products table that stores
records for different types of products like televisions, sunscreens,
pillows, and shirts. You can create groups of dynamic attributes for
each type of product (like screen type, UPC, color, or size). You can
organize the groups into dynamic categories (like electronics, health
and beauty, home goods, and clothing). Users can add records to your
Products table and capture different attributes in each product record.
APIs
Dynamic schema also provides global APIs that enable you to access
and manage dynamic attributes in your tables using JavaScripts. The
following lists the APIs and methods that support dynamic attributes.
• DynamicSchemaAPI - Global
• GlideAggregate - Global
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• GlideAggregate - getDynamicAttributeValue(String
dynamicAttributeField, String groupAttrPath)
• GlideAggregate - getDynamicAttributeDisplayValue(String
dynamicAttributeField, String groupAttrPath)
• GlideDynamicAttributeStore - Global
• GlideElementDynamicAttributeStore - Global
• GlideRecord - Global
• GlideRecord - getDynamicAttributeDisplayValue(String
dynamicAttributeField, String groupAttrPath)
• GlideRecord - getDynamicAttributeValue(String
fullPath)getDynamicAttributeValue(String fullPath)
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• GlideRecord - getDynamicAttributeValue(String
dynamicAttributeField, String groupAttrPath)
• GlideRecord - setDynamicAttributeDisplayValue(String
dynamicAttributeField, String groupAttrPath, Object value)
• GlideRecord - setDynamicAttributeValue(String
dynamicAttributeField, String groupAttrPath, Object value)
• GlideRecord - setDynamicAttributeValues(String
dynamicAttributeField, GlideDynamicAttributeStore values)
Build out a dynamic choice set by defining the choices that belong to
it.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
After you define the categories, groups, and attributes in your dynamic
schema, enable users to store the attributes and their values on a
record.
Procedure
2. Select New.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
4. Select Submit.
What to do next
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
5. Select Submit.
What to do next
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For some dynamic attributes, you might want to limit the possible values
that are accepted. You can define a choice set that holds a fixed set of
choices, and then create a dynamic attribute whose values are limited
to the choices defined in the choice set.
Procedure
2. Select New.
Field Description
4. Select Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
After you create a dynamic choice set, define each of the choices that
comprise the dynamic choice set.
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
5. Select Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
After defining your dynamic attribute groups, organize the groups into
broader categories.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Select New.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
Add more dynamic categories as needed. For example, you might add
dynamic categories for other store departments like Health and Beauty,
Automotive, and Sporting Goods.
If you determine that you need another dynamic attribute group for
multiple products in a category, you can define the dynamic attributes,
add them to a new dynamic attribute group, and then add the dynamic
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
For example, you might need attributes for capturing Volts, Amps, and
Watts in a product record. You can add the attributes to a new group
called Electrical Specs, and then add the group to the Electronics
category. Because the Televisions category extends from the Electronics
category, the Electrical Specs group is automatically inherited by the
Televisions category.
Procedure
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
5. Select Submit.
What to do next
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Add a reference field that points to the dynamic schema metadata that
you've created.
Procedure
2. Select the table that you want use for storing dynamic attributes.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Dynamic categories
a. In the Type field, select List.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
Procedure
2. Select the table that you want use for storing dynamic attributes.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
6. Select Submit.
The dynamic attribute store field is added to the table.
8. Select Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
What to do next
Procedure
1. Navigate to the table that holds your dynamic attribute store field.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Call setValue() in the GlideRecord API and send data to the dynamic
attribute store field.
List administration
Administrators control the data presented to end users in a list, the
controls that appear, and the behavior of the controls.
• List configuration
Users with the appropriate roles can configure various aspects of lists.
Configuration changes apply to all users.
All lists have a default sort sequence based on the type of fields present
in the list.
The list editor allows users to edit field values directly from a list without
navigating to a form.
Users can customize the layout for any list view by personalizing a list.
Administrators can configure options related to list personalization.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can enable hierarchical lists to make data from related lists directly
accessible from within a v2 list.
• Context ranking
You can customize the content and behavior of list context menus.
List configuration
Users with the appropriate roles can configure various aspects of lists.
Configuration changes apply to all users.
With list configuration, you can add, remove, and reorder list columns.
You can configure calculations to appear under columns. You can also
hide controls and define access conditions by role for existing list controls.
Configuring lists is called personalizing lists in versions prior to the Fuji
release.
Note: Configuring a list in this way modifies the list for all users. To
make changes to a list that are visible to you only, see Personal lists.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can configure list calculations for columns, which calculate column
totals, minimums, maximums, and averages.
Speed up how fast lists load by removing the calculation of the total
number of records in a list.
You can write scripts to specify which list elements, such as links, filters,
and buttons, are present.
The Show/hide filter used in the list configuration, lists the fields to
configure in the filter conditions.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
3. Right-click any column heading and select Configure > List Layout.
5. Click Save.
Note:
• If you use Personal lists and then configure the list view
differently, the changes do not appear until you reset your
personal list to column defaults.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Select the check box to enable extended fields on parent table lists,
or clear the check box to disable the feature.
4. Click Save.
You can configure list calculations for multiple columns in the same list.
List calculations apply only to the view of the list in which they are
configured. All users can see configured list calculations.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Note:
Procedure
• Minimum value
• Maximum value
4. Click OK.
The calculations appear below the last record in the column. If the
list is grouped, in addition to the overall calculations at the bottom
of the list, group calculations appear below the last record in each
group.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
To load lists faster, you can remove the page calculation for all or only
specified filtered lists. When you remove the calculation, the total record
count is not displayed and the double arrow icon ( ) is grayed out.
Procedure
c. Click the search icon ( ) and select the view where platform
omits the page count.
5. Click Update.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Open a list.
2. Right-click any column heading and select Configure > List Control.
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
the label for the Incident table
would be Incidents.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
This field is available for standard
lists only.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• Save data by rows: enables
cell editing. The row is saved
only when the user navigates
away from the row or
selects the Save icon ( ).
This mode allows the user
to modify multiple values
before saving a record.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
Procedure
2. Open the list context menu in the Incidents related list and select
Configure > List Control.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
These scripts can react to the record that is being displayed. For related
list controls, the global variable parent identifies the parent record. For
primary lists, there is no parent record.
Configure the List Control form and add the script field that you need:
• Omit Empty Condition: If there are no conditions, omit the list header.
In these script fields, if the script evaluates to true, the item is omitted.
The following script is an example that you can use on the Affected CIs
related list to show only the Edit button if the parent task is active. This
script is placed in the Omit Edit Condition script field.
var answer;
if (parent.active == true ) {
//Do not remove the 'Edit' button
answer = false;
}
else {
//Remove the 'Edit' button
answer = true;
}
answer;
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
7. Click Submit.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
locale-based language setting might break your script. So, you can
enable the sys property only when you need the filter to be locale-based
language.
Note: If the sys property is not enabled, the fields are sorted in an
alphabetical order. The fields starting with an accented character
are placed at the end of the list.
When a user displays a list for the first time, it is sorted by one of the
following items.
• The ORDERBY arguments found the URL. (See the following section on
source order control.)
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
An administrator can set the sort order of records displayed for a table in
the system dictionary when there is no other sort specified. This is done by
adding an attribute called isOrder with a value of true to the dictionary
entry of the desired field. This sort is the sort order presented to all users
initially. Once a user sorts a list, that user preference is saved, and the list
is always sorted for that user based on the previous sorting preference.
Note: isOrder can define which field is used for list sorting, but
cannot control the sort direction.
Related concepts
• System dictionary
Related topics
• User preferences
For any list, if the user has clicked a column header to sort by that
column, then that action is remembered. The next time that list is
displayed, the same field is used to order the list.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
&sysparm_order=sys_created_on &sysparm_order_direction=de
sc
&sysparm_order=sys_created_on &sysparm_order_direction=as
c
To sort a list by multiple fields, remove everything from the filter field and
place it in the arguments field. For example, if the filter specifies [Active]
[is] [true] and you want to sort by category and subcategory, remove the
condition and put the following in the module arguments:
active=true^ORDERBYcategory^ORDERBYsubcategory
This argument first orders by the category and then orders by the
subcategory. If you want any field to be a descending sort, then change
ORDERBY to be ORDERBYDESC.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Warning: In List v2, the list editor does not enforce client scripts or UI
policies. In List v3, the list editor enforces UI policies and mandatory
dictionary attributes, but not client scripts. Allowing list editing with
client scripts running on fields in a form can result in incorrect data
being saved to the record. For systems in which client scripts or
UI policies apply to forms, consider disabling list editing or creating
appropriate business rules or access control to control the setting of
values in the list editor. See Use business rules and client scripts to
control field values for information on managing form and list editing.
Warning: You cannot edit state fields that are extended from the
Task [task] table from a list of task records. Examples include:
• problem_state
• incident_state
• phase_state
• request_state
While these fields are visible from the task list, they must be edited
from the extended table.
Configure list editor properties that control whether lists can be edited
and, in List v2, which field types cannot be edited.
You can configure the list control settings that affect the list editor.
The list editor enforces existing access control rules (ACLs) and
additional security controls to restrict editing from a list.
Users can set user preferences for list editing by personalizing a list
(available when the list mechanic is activated).
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related topics
Procedure
• Conditions [conditions]
• Currency [currency]
• Document ID [document_id]
• HTML [html]
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Image [user_image]
• List [glide_list]
• Price [price]
• Time [glide_time]
• Video [video]
• Array [array]
b. Add any other field types you want to disable to the end of the
list, separated by a comma.
4. Select Save.
List control settings customize the behavior of list functions for a table.
Procedure
2. Right-click any column heading and select Configure > List Control.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
This field is available for standard
lists only.
4. Click Update.
• write and list_edit access to any fields that depend on the field being
edited
This access control prevents everyone from editing all fields in the
Incident table in a list.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
This access control prevents everyone from editing all fields in the
Incident table in a list.
• Type: record
• Operation: list_edit
• Name Incident:[incident]
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Type: record
• Operation: list_edit
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Type: record
• Operation: list_edit
• Name Incident:[incident]
• Script:
if (current.category == 'software')
answer = false;
else
answer = true;
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
• Type: record
• Operation: list_edit
• Name Incident:[incident]
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
You can enable or disable personal lists through the UI Macros module.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
Procedure
3. Enter the roles for which personal lists are available, separated
by commas, or leave the field blank to allow access for all users
(default).
Procedure
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related topics
• Personal lists
Procedure
1. To enable detail rows, add a new system property with the following
field values.
Name glide.ui.list.detail_row
Value true
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related concepts
Related topics
• Lists
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Point to the application menu that contains the module to edit and
click the edit application (pencil) icon.
To open the module directly, point to the module and click the edit
module (pencil) icon.
3. In the Link Type section of the Module form, select List of Records for
the Link type.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
You can use a script to restrict filters and breadcrumbs to specific roles,
either on a per-table or global basis. Using a script is an advanced
option that offers additional flexibility compared to using list control.
Procedure
2. Open list control by performing the appropriate action for the list
version.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Version Action
3. On the List Control form, select the Omit Filters check box, or clear
the check box to include filters.
The Filter Roles field allows an administrator to specify certain roles
that can see the filters.
Procedure
2. Use your function to set the global variable answer to either true
(show the filters and breadcrumbs) or false (hide them.)
The following example restricts filters and breadcrumbs on the
Incident table to users with any role. Be sure that the name of the
script matches the function name exactly, including case.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
function incidentDisplayFilter() {
if (gs.getUser().hasRoles()) {
answer = "true";
} else {
answer = "false";
}
return answer;
}
return answer;
}
Users with the role newRole do not have access to filters and
breadcrumbs.
4. (Optional) To let all users use filters and breadcrumbs on the Incident
table, make the following change to your script.
function incidentDisplayFilter() {
var answer = true;
return answer;
}
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
3. Click New.
Name glide.ui.breadcrumb_max_entrie
s
Type integer
5. To verify this property, go to any table and use the filter modifier is
one of to search for any number of items.
The number of entries you entered in the Value field displays before
ending in a […].
Breadcrumb entries
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Hierarchical lists enable a user to view the contents of the related lists of a
record without leaving the record list form.
Procedure
1. Right-click any column header, and select Configure > List Control
from the context menu.
2. Select the Hierarchical lists check box in the List Control dialog box
and then click Submit or Update.
3. Click the arrow for a record number to display the related lists for the
record.
By default, no related list tabs are visible in a hierarchical list and only a
single related list is displayed at a time. The column headers are hidden
by default.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. To select a different related list, click the link in the list title.
If the related list is empty, the hierarchical list indicates that there are
no records to display.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Context ranking
Context ranking allows a user to sort a collection of records preferentially,
that is, independently of the attributes of those records.
If you have the admin role, you can activate the Context Ranking
plugin (com.glide.sorting). This plugin activates related plugins if they
are not already active.
• Rank a list
After you create a ranking definition for a table, related lists based
on that table and context include options for ranking the list and
displaying the list by rank.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Ranking definitions for user stories are part of the SDLC (scrum process)
application.
Procedure
1. Navigate to All > System Applications > All Available Applications >
All.
You can search for the plugin by its name or ID. If you cannot find a
plugin, you might have to request it from ServiceNow personnel.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
4. In the Record table field, select the table for which ranking is
enabled.
This is the table of the records in the ranked related list. For example,
to enable ranking for a related list of incidents in the Problem form,
select the Incident [incident] table.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
8. Click Submit.
The index is generated automatically. The system completes these
read-only fields:
• Index column
• Rank ui action
What to do next
The system does not generate indexes for ranking definitions inserted into
the database by an update set. To use a ranking definition inserted by
an update set, you must generate the indexes manually. To generate
indexes, open the Ranking Definition form, and click Generate Indexes.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Rank a list
After you create a ranking definition for a table, related lists based on
that table and context include options for ranking the list and displaying
the list by rank.
Procedure
1. Click the Rank button in the related list to reorder the records.
The Rank dialog box appears, allowing you to sort the records in any
order.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
1. Open the context menu from the list title and select Sort by rank.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
2. To remove the ranking and return to the original order of the list, click
the label in any column that contains data.
These ranking definitions enable scrum users with the proper roles to rank
related lists of stories in these tables:
Users can rank stories in the scrum planning board by priority. Story lists
ranked in the planning board appear in the new order in product,
release, and sprint forms. Stories ranked in one of these scrum forms
changes the order in the planning board.
Story points for each story are listed in a ranked view, which is useful for
prioritizing stories.
Ranking story points
The Context Ranking feature enables all scrum users to manually sort a
related list of stories by priority.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Related topics
• Agile Development
The Context Ranking feature enables all scrum users to manually sort a
related list of stories by priority.
A product owner or release planner uses this tool to establish the order in
which to work the stories. Stories ranked in a related list (in the Product,
Release, and Sprint forms) appear in the same order in the planning
board when the appropriate backlog is displayed. Conversely, stories
ranked in the planning board appear in that order when viewed in the
related list in the form. Users can switch the view in a Stories related
list from ranked to any sort order without changing the ranking in the
planning board.
Procedure
2. Click and drag each story into position using the move icon to the
left of the story number.
3. When you are done, click the X in the upper right corner to close the
list.
The Stories related list is not sorted by your ranking initially.
4. To view the related list in its ranked order, open the context menu
from the related list and select Sort by rank.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
5. To return the sort order of the list to an unranked state, click once in
the heading of any column that contains data.
The system uses this ranked list to display the appropriate backlog
in the planning board. For example, if you rank stories in the Stories
related list in the Release form, the release backlog in the planning
board uses the same ranking to display the stories. Conversely, scrum
masters, product owners, and release planners can create a new
ranking order for the Stories related list by rearranging the list of stories
in the planning board.
Related topics
• Agile Development
For example, you might add an option to the list column heading menu
for a specific table. You might also want to change the roles required to
access a global context menu option.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Procedure
2. Click New.
Field Description
• List fields
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
• Action: A menu option
that performs an immediate
action.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Field Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
4. Click Submit.
The Action script field, on the Context Menu form, defines a script. The
script runs when someone selects the context menu option.
The Dynamic actions script field, on the Context Menu form, defines a
script. The script populates a list context menu with dynamic options,
such as filters or views.
The onShow script field defines a script that runs before the context
menu is displayed to determine which options appear in the context
menu.
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
This script is client-side and runs in the user's browser. The following
JavaScript variables are available to the Action script when it is
executed.
Variable Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Variable Description
Note: The action script for this item must define the
showRowsPerPage function so that when selecting this menu item,
that function is called with an argument of 50.
Use this script to change the menu items on the list header menu
based on the current field column. The following JavaScript variables are
available to the onShow script when it is executed:
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.
Xanadu Now Platform Administration
Variable Description
ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the
United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are
associated.