Module 4.1-4.2 Flashcards

1
Q

All new tables have this?

A

A default list and a default form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

For tables that extend another table, the fields on the default list and form depend on what?

A

The base table’s fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where do you go to add a field to a table?

A

Studio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Steps to adding a field to a table?

A

Insert a new row which adds a new column
Provide a column label (field name) and type
Capitalize only the first letter of the first word in the label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you define a field’s data type?

A

Double click in the cell
Click the magnifying glass to bring up a list of field classes
Click the green check mark

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 5 common field data types?

A

Date/time
Decimal
Reference
String
True/face

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A field data type which features a day and time of day, which can be selected by a calendar widget?

A

Date/ time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A field data type that features a number with up to two decimal places , (ex: 12.34)

A

Decimal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A field data type that features a query that displays records from another table?

A

Reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A field data type that features a character string?

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A field data type that features a Boolean field represented by a checkbox?

A

True/false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What type of data field type should you usually avoids?

A

Free form unless it’s explicitly necessary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What shouldn’t you use string fields for?

A

-Dates
-Fields that reference people by name
-Reference objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When should you use string fields?

A

When consistent or specially formatted data is not required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What field types should you use to limit options?

A

Choice lists and reference fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You should only display fields for data you need (t/f)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Why should you choose a field type carefully?

A

Changing the field type can result in data loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Before creating a new field, determine if a new field is necessary. If you are extending an existing table, what should you do first?

A

Consider using or repurposing an existing field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Configuring the label on a field (of an extended table) changes the label only for the current table and not __________?

A

The parent table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Changing the label on a field of an extended table should be done in caution, why?

A

The change is only made to the label and not the column name which can cause confusion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Can you combine two fields in one?

A

Yes it’s called a decision field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How can user-defined fields be deleted from a table?

A

By clicking the red x button that appears to the left of the column field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

These fields cannot be deleted?

A

Inherited

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Are table records deleted when a field is deleted?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Where are new fields automatically added?

A

To the bottom of the form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Are new fields automatically to the list?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

How do you add new columns to a list?

A

The personalize gear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is the primary way users interact with an application?

A

A form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Why must users have a good experience when using an application?

A

So that they will easily adapt to using it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

How should forms read?

A

Top to bottom

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

How do you break up long forms?

A

With annotations and sections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What kind of layout should you use for larger text fields?

A

Full width single column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

If using a two column layout should it be placed at the top or bottom of a form?

A

Top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Where should a reference number/ name be placed on a form?

A

At the top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Where should important fields be placed on a form?

A

The top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Logical groupings of fields should be placed where?

A

I’m sections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What should you have to offers guidance on forms?

A

Tool tips

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Fields should be displayed in logical groups (t/f)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Form layout orders should reflect what?

A

The process flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

When a form is in tabbed mode (baseline), can users see all the fields at the same time?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

When do tabs appear on a form?

A

When there are two or more sections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

What is the default behavior of the form in regards to tabs?

A

The default is to display a tabbed layout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

How to take off automatic tabbed settings on forms?

A

Click user avatar
Select preferences
Click on display title
Move slider to left to disable displaying form sections as tabs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

Keep field labels short. What should you use for longer descriptions?

A

Hint
Annotation or
Help fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

Where do you go to change a field’s label?

A

Forms & UI> Forms> Form name
Select gear
Add a new value in the label field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Keep tool tips short (one line or less). They’re only visible for a few seconds. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

What do tool tips help do?

A

Clarify what information a user should enter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

How to specify a new field’s hint?

A

Right click on field and select configure label
Enter mouse over text in the hint field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Provide real time (immediate and targeted) feedback on form with these two scripting options?

A

Client scripts
UI action scrips

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

What are the five ways to add real time feedback on a form?

A
  • g_form.showFieldMsg()
  • g_form.addInfoMessage()
  • g_add.ErrorMessage()
  • alert
  • confirm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Prints a message on a blue background below the field passed on a method call

A

g_form.showFieldMsg()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

Prints a message on a blue background to the top of the current form

A

g_form.addInfoMessage()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

Prints a message on a red background at the top of the current form

A

g_form.addErrorMessage()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

A JavaScript method that opens a dialog box with an ok button

A

alert()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

A JavaScript method that opens a dialog with ok and cancel buttons

A

confirm()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Field styles add what to a form?

A

Visual impact

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

What are 3 examples of field styles?

A

-field color
-font attribute (bold, italic)
-text alignment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

How do you stylize a field?

A

In studio, create a new style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

Allows different users to see form data in different ways?

A

Views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

A saved version of a configured form or list

A

View

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

This role can create any number of views for a form or list?

A

Admin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

Where does the view name appear on a form?

A

In square brackets [ ] next to the form name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

When in the default view of a form what view name is displayed?

A

None

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Client scripts and ui policy scripts can execute selectively based on views (t/f)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

Consider creating standard views for these 3:

A

-Default
-Mobile
-ESS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

This role is required to change views

A

view_changer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

What are the 3 sections of form design?

A
  • field navigator
  • header
  • form layout
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

This a tool for creating and modifying forms

A

Form design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

How to open form design?

A

In Studio open
Forms & UI> forms> form name
Or
Additional actions context menu located on form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

Form design allows you to create, modify, delete and drag, drop and configure what on a form?

A

-fields
-views
-sections/tabs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

Views can be created but not _______ in form design

A

Deleted

72
Q

The form layout contains a cell for each section, field, annotation, UI element, and __________ on a form

A

Related list

73
Q

How do you add fields to a form using form layout?

A

Select a field’s handle in the field tab then drag and drop to the desired location on the form

74
Q

Removing a field removes the field from the form but does not delete __________?

A

The column from the table in the database

75
Q

You can hover over a field to enable the action buttons for a field. What are those 2 buttons?

A

Edit properties
Remove

76
Q

Editing field properties make changes to the _______

A

Database

77
Q

Available field properties depend on what?

A

The field data type

78
Q

Field properties modify the dictionaries entry for the selected field. Changes to field properties are not committed until what?

A

The form design is saved

79
Q

Why do you use annotations?

A

To add information, instructions, or separators to a form

80
Q

What are the 6 types of annotations?

A
  • info box blue
  • info box red
  • line separator
  • section details
  • section separator
  • text
81
Q

A section without a title is a continuation of what?

A

The last section with a title

82
Q

Sections without titles allow what on a form?

A

Allows you to combine multiple layout formats

83
Q

Where do go to create a new form view?

A

Form designer header then view picker

84
Q

How do you delete a form view?

A

System ui> forms
Open table and view
Select delete

85
Q

What benefits does scripting have to service now?

A

Enhances user experience, extends existing functionality, add new functionality to apps

86
Q

Place the cursor in a particular field on form load
Send email notifications
Write to log files
Validate data
Prompt users: alerts/ confirmation/ messages
Add widgets to forms and lists

All is possible how?

A

Scripting

87
Q

What is client side scripting used for in ServiceNow?

A

Manage forms and form fields

88
Q

Trigger specifies ______ to execute

A

When

89
Q

What does server side scripting do in ServiceNow?

A

Manage the database and backend

90
Q

Scripts in ServiceNow either execute on the client’s browser or in the servicenow _______

A

Backend

91
Q

Why is it important to know where a script will execute?

A

There are different api’s for client and server side scripts

92
Q

Scripting specifies ______ to do

A

what

93
Q

All scripts have a trigger specifying when a script’s logic should execute. The trigger configuration fields depend on what?

A

The script type

94
Q

This field on a client script form is for documentation and informational purposes. Includes information like who wrote the script, what business requirement the script is for, and any other pertinent information

A

Description

95
Q

This field on a client script form is used for localization.

A

Messages

96
Q

This field on a client script form is used to script what needs to happen when the conditions in the trigger are met

A

Script

97
Q

Client side logic governing form and field behavior. Has a condition which must be true in order to execute. Defines the behavior and visibility of fields on a form without scripting.

A

UI Policy

98
Q

Client scripts can also hide fields, show fields, and make fields mandatory but still always use a UI policy instead of a client script. Why?

A

For faster load times

99
Q

UI policies do not have a name field instead use this field _______ as a pseudo name

A

Short description field

100
Q

UI policy application field identifies the scope of the UI policy. It’s important to correctly identify the ui policy’s scope to ensure the logic does not do what?

A

Inadvertently impact other areas of servicenow

101
Q

This field contains a short explanation of what the UI policy it’s for. The value in this field appears in the debugging information.

A

Short description

102
Q

UI policies execute based on evaluation of what?

A

their condition

103
Q

You should build conditions with the ___________ rather than scripting for better performance

A

Condition builder

104
Q

If UI policy trigger conditions are ______ the ui policy will always execute

A

Blank

105
Q

The condition builder is not unique to UI policies. The same filter is also used where?

A

Survey administration, SLAs, list filters, report conditions, and more

106
Q

When are trigger conditions rechecked?

A

Only if a user manually changes a field on a form

107
Q

What do you use that’s not scriptable to manage the mandatory and read only state of fields for records not changed on a form?

A

Data policies

108
Q

How do you create an ui policy action?

A

Studio > client development > ui policies > open policy> new

109
Q

With ui policy actions what are the field attributes you can set?

A

Mandatory, visible (show or hide), read only

110
Q

Where do ui policy scripts execute?

A

Client side

111
Q

Although fields can be hidden with ui policy actions, sections cannot. What is required to show/hide sections?

A

Scripting

112
Q

In addition to the fields from the default view the advanced view on a ui policy has global, view, reverse if false, on load, and inherit. How does one see those additional options?

A

The advanced view related list

113
Q

The ui policy applies to all views if this is selected?

A

Global

114
Q

This field shows the name of the view to which the ui policy script applies?

A

View

115
Q

If the global box on a ui policy advanced form is not selected, you must specify what?

A

The view to which the ui policy applies

116
Q

The view option on a ui policy advance form is only visible when what?

A

Global is not selected

117
Q

Select the ui policy view before creating the ui policy actions and/ or script because a script can only act on fields that are?

A

Apart of the selected form view

118
Q

If you do not select the global checkbox on a ui policy form AND you leave the view field blank what happens?

A

The script applies to the default view

119
Q

Ui policy actions are reversed and the execute if false script executes when it’s ui policy’s conditions evaluate to false

A

Reverse if false

120
Q

Check this if you want a ui policy action to execute on form load AND form change

A

On load

121
Q

Select this checkbox on a ui policy form to apply this script to any extended tables when selected

A

Inherit

122
Q

With ui policy scripting, the script tab only appears where?

A

The advanced view

123
Q

With ui policy scripting, you have to select this option to access the scripting fields?

A

Run scripts

124
Q

You can write a ui policy in both fields in the advanced view. What fields are they?

A

Execute if true
Execute if false

125
Q

JavaScript that executes when the ui policy condition tests true?

A

Execute if true

126
Q

JavaScript that executes when the ui policy condition tests false?

A

Execute if false

127
Q

This advanced view ui policy option must be selected in order for the execute if false script to execute?

A

Reverse if false

128
Q

This function in the appropriate ui policy fields is automatically called when the condition returns true or false

A

onCondition()

129
Q

Where do servicenow client scripts execute?

A

In a browser

130
Q

Client scripts manage ______ and ______ in real time

A

Forms and form fields

131
Q

Modify choice list options
Set one field in response to another in real time
Hide/show form sections
Display an alert
Make fields mandatory
Hide fields

….. all can be done, how?

A

With client scripts

132
Q

Although modern browsers all interpret JavaScript the same way, you may still experience what regarding client side scripts?

A

Browser dependent behavior

133
Q

Script runs when a form meeting the trigger condition loads and before access is given to the user

A

onLoad()

134
Q

Script runs when a form meeting the trigger condition is saved, updated, or submitted

A

onSubmit()

135
Q

Script runs when a particular field’s value on a form changes

A

onChange()

136
Q

These scripts are usually used to pre populate fields with values and make other form appearance and content modifications. While ________ executes users have no ability to modify form fields.

A

onLoad()

137
Q

These client scripts are used to perform data validation against multiple fields simultaneously. Users have no access to a forms fields while ______ client scripts execute

A

onSubmit()

138
Q

These client scripts are used to validate a field’s value in real time or to set or modify fields values in response to another field changing

A

onChange()

139
Q

These client scripts execute script logic when forms are loaded. Use these client scripts to manipulate a form’s appearance or content. Use these client scripts sparingly as they impact form load times.

A

onLoad()

140
Q

These client scripts execute script logic when a particular field’s value changes. Use these client scripts to respond to field values of interest and to modify another field’s value or attributes.

A

onChange()

141
Q

These client scripts execute script logic when a form is submitted. Use these client scripts to validate field values.

A

onSubmit()

142
Q

Trigger conditions must be met for client scripts to execute (t/f)

A

True

143
Q

On a client script form, select this to decide whether or not the script executes for desktop and table or mobile or both

A

UI type

144
Q

Client side scripting object whose properties are the fields from a form’s table. It’s property values are the field values. It contains methods for managing form fields and values.

A

GlideForm g_form

145
Q

Client side scripting object whose property/values are information about the current user. Contains methods for checking roles for the current user. Used to personalize user experience.

A

GlideUser g_user

146
Q

Because g_user executes client side. Impersonation will affect results. (T/f)

A

True

147
Q

The g_form and g_user objects are automatically instantiated for client side scripts (t/f)

A

True

148
Q

Servicenow has scripting assistance which displays a list of selectable elements in a script field. Press _______ to display a list of classes. Help is displayed when you highlight a object or property.

A

Ctrl+ spacebar

149
Q

Servicenow has scripting assistance which displays a list of selectable elements in a script field. Type a class name followed by a _______ to select a list of properties. Help is displayed when you highlight a object or property.

A

Period

150
Q

Scoped client scripts execute different than global client scripts. Scoped client scripts are wrapped in an immediately- invoked function expression (IFE). As a result, what happens?

A

certain APIs are either modified or unavailable altogether

151
Q

Inaccessible APIs can be made accessible on an per application basis. To do this set the system property glide.script.block.client.global scope to ______ in the application.

A

False

152
Q

GlideRecord is the only API that cannot be turned back on. _______ can be used as a replacement for GlideRecord

A

GlideAjax

153
Q

What are the inaccessible APIs?

A

GlideRecord
Window
Document
$
$$
jQuery
$j
$f

154
Q

What are the modified APIs?

A

GlideAjax
GlideForm
GlideDialogWindow

155
Q

UI policies execute AFTER client scripts (t/f)

A

True

156
Q

Executes on form load.
UI policy or Client script?

A

Both

157
Q

Executes on form save/submit/ update.

UI policy or Client script?

A

Client script

158
Q

Execute on form field value change?

UI policy or Client script?

A

Both

159
Q

Have access to a field’s prior value?
UI policy or Client script?

A

Client script

160
Q

Execute on list field value change?

UI policy or Client script?

A

Client script

161
Q

Requires scripting

UI policy or Client script?

A

Client script

162
Q

Do client scripts and ui policies use the same api?

A

Yes

163
Q

The server side script access control trigger is based on what?

A

Operation

164
Q

The server side script business rules trigger is based on what?

A

Database accesses
Insert/update/delete/query
Before/after/display/async

165
Q

The server side script schedule jobs trigger is based on what?

A

A schedule

166
Q

The server side script Script Action triggers when

A

Events are generated

167
Q

The server side script Script Includes trigger when

A

When called

168
Q

The server side script UI actions triggers when

A

A user clicks on a widget

169
Q

The server side script workflow/ flow triggers when

A

The condition is met

170
Q

Why aren’t GlideForm and glideuser classes available server side?

A

They are apart of client side apis

171
Q

Display business rules pass data from the server side to a client side script using what?

A

The g_scratchpad object

172
Q

The g_scratchpad object has no properties by default and must be populated by what?

A

A display business rule

173
Q

Does g_scratcgpad exist on the mobile platform?

A

No

174
Q

Any client side script can use the g_scratchpad object passed in from the server (t/f)

A

True

175
Q

All display business rules/ g_scratchpad property must be passed as a string?

A

Yes