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
Where are new fields automatically added?
To the bottom of the form
26
Are new fields automatically to the list?
No
27
How do you add new columns to a list?
The personalize gear
28
What is the primary way users interact with an application?
A form
29
Why must users have a good experience when using an application?
So that they will easily adapt to using it
30
How should forms read?
Top to bottom
31
How do you break up long forms?
With annotations and sections
32
What kind of layout should you use for larger text fields?
Full width single column
33
If using a two column layout should it be placed at the top or bottom of a form?
Top
34
Where should a reference number/ name be placed on a form?
At the top
35
Where should important fields be placed on a form?
The top
36
Logical groupings of fields should be placed where?
I’m sections
37
What should you have to offers guidance on forms?
Tool tips
38
Fields should be displayed in logical groups (t/f)
True
39
Form layout orders should reflect what?
The process flow
40
When a form is in tabbed mode (baseline), can users see all the fields at the same time?
No
41
When do tabs appear on a form?
When there are two or more sections
42
What is the default behavior of the form in regards to tabs?
The default is to display a tabbed layout
43
How to take off automatic tabbed settings on forms?
Click user avatar Select preferences Click on display title Move slider to left to disable displaying form sections as tabs
44
Keep field labels short. What should you use for longer descriptions?
Hint Annotation or Help fields
45
Where do you go to change a field’s label?
Forms & UI> Forms> Form name Select gear Add a new value in the label field
46
Keep tool tips short (one line or less). They’re only visible for a few seconds. (T/F)
True
47
What do tool tips help do?
Clarify what information a user should enter
48
How to specify a new field’s hint?
Right click on field and select configure label Enter mouse over text in the hint field
49
Provide real time (immediate and targeted) feedback on form with these two scripting options?
Client scripts UI action scrips
50
What are the five ways to add real time feedback on a form?
- g_form.showFieldMsg() - g_form.addInfoMessage() - g_add.ErrorMessage() - alert - confirm
51
Prints a message on a blue background below the field passed on a method call
g_form.showFieldMsg()
52
Prints a message on a blue background to the top of the current form
g_form.addInfoMessage()
53
Prints a message on a red background at the top of the current form
g_form.addErrorMessage()
54
A JavaScript method that opens a dialog box with an ok button
alert()
55
A JavaScript method that opens a dialog with ok and cancel buttons
confirm()
56
Field styles add what to a form?
Visual impact
57
What are 3 examples of field styles?
-field color -font attribute (bold, italic) -text alignment
58
How do you stylize a field?
In studio, create a new style
59
Allows different users to see form data in different ways?
Views
60
A saved version of a configured form or list
View
61
This role can create any number of views for a form or list?
Admin
62
Where does the view name appear on a form?
In square brackets [ ] next to the form name
63
When in the default view of a form what view name is displayed?
None
64
Client scripts and ui policy scripts can execute selectively based on views (t/f)
True
65
Consider creating standard views for these 3:
-Default -Mobile -ESS
66
This role is required to change views
view_changer
67
What are the 3 sections of form design?
- field navigator - header - form layout
68
This a tool for creating and modifying forms
Form design
69
How to open form design?
In Studio open Forms & UI> forms> form name Or Additional actions context menu located on form
70
Form design allows you to create, modify, delete and drag, drop and configure what on a form?
-fields -views -sections/tabs
71
Views can be created but not _______ in form design
Deleted
72
The form layout contains a cell for each section, field, annotation, UI element, and __________ on a form
Related list
73
How do you add fields to a form using form layout?
Select a field’s handle in the field tab then drag and drop to the desired location on the form
74
Removing a field removes the field from the form but does not delete __________?
The column from the table in the database
75
You can hover over a field to enable the action buttons for a field. What are those 2 buttons?
Edit properties Remove
76
Editing field properties make changes to the _______
Database
77
Available field properties depend on what?
The field data type
78
Field properties modify the dictionaries entry for the selected field. Changes to field properties are not committed until what?
The form design is saved
79
Why do you use annotations?
To add information, instructions, or separators to a form
80
What are the 6 types of annotations?
- info box blue - info box red - line separator - section details - section separator - text
81
A section without a title is a continuation of what?
The last section with a title
82
Sections without titles allow what on a form?
Allows you to combine multiple layout formats
83
Where do go to create a new form view?
Form designer header then view picker
84
How do you delete a form view?
System ui> forms Open table and view Select delete
85
What benefits does scripting have to service now?
Enhances user experience, extends existing functionality, add new functionality to apps
86
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?
Scripting
87
What is client side scripting used for in ServiceNow?
Manage forms and form fields
88
Trigger specifies ______ to execute
When
89
What does server side scripting do in ServiceNow?
Manage the database and backend
90
Scripts in ServiceNow either execute on the client’s browser or in the servicenow _______
Backend
91
Why is it important to know where a script will execute?
There are different api’s for client and server side scripts
92
Scripting specifies ______ to do
what
93
All scripts have a trigger specifying when a script’s logic should execute. The trigger configuration fields depend on what?
The script type
94
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
Description
95
This field on a client script form is used for localization.
Messages
96
This field on a client script form is used to script what needs to happen when the conditions in the trigger are met
Script
97
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.
UI Policy
98
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?
For faster load times
99
UI policies do not have a name field instead use this field _______ as a pseudo name
Short description field
100
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?
Inadvertently impact other areas of servicenow
101
This field contains a short explanation of what the UI policy it’s for. The value in this field appears in the debugging information.
Short description
102
UI policies execute based on evaluation of what?
their condition
103
You should build conditions with the ___________ rather than scripting for better performance
Condition builder
104
If UI policy trigger conditions are ______ the ui policy will always execute
Blank
105
The condition builder is not unique to UI policies. The same filter is also used where?
Survey administration, SLAs, list filters, report conditions, and more
106
When are trigger conditions rechecked?
Only if a user manually changes a field on a form
107
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?
Data policies
108
How do you create an ui policy action?
Studio > client development > ui policies > open policy> new
109
With ui policy actions what are the field attributes you can set?
Mandatory, visible (show or hide), read only
110
Where do ui policy scripts execute?
Client side
111
Although fields can be hidden with ui policy actions, sections cannot. What is required to show/hide sections?
Scripting
112
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?
The advanced view related list
113
The ui policy applies to all views if this is selected?
Global
114
This field shows the name of the view to which the ui policy script applies?
View
115
If the global box on a ui policy advanced form is not selected, you must specify what?
The view to which the ui policy applies
116
The view option on a ui policy advance form is only visible when what?
Global is not selected
117
Select the ui policy view before creating the ui policy actions and/ or script because a script can only act on fields that are?
Apart of the selected form view
118
If you do not select the global checkbox on a ui policy form AND you leave the view field blank what happens?
The script applies to the default view
119
Ui policy actions are reversed and the execute if false script executes when it’s ui policy’s conditions evaluate to false
Reverse if false
120
Check this if you want a ui policy action to execute on form load AND form change
On load
121
Select this checkbox on a ui policy form to apply this script to any extended tables when selected
Inherit
122
With ui policy scripting, the script tab only appears where?
The advanced view
123
With ui policy scripting, you have to select this option to access the scripting fields?
Run scripts
124
You can write a ui policy in both fields in the advanced view. What fields are they?
Execute if true Execute if false
125
JavaScript that executes when the ui policy condition tests true?
Execute if true
126
JavaScript that executes when the ui policy condition tests false?
Execute if false
127
This advanced view ui policy option must be selected in order for the execute if false script to execute?
Reverse if false
128
This function in the appropriate ui policy fields is automatically called when the condition returns true or false
onCondition()
129
Where do servicenow client scripts execute?
In a browser
130
Client scripts manage ______ and ______ in real time
Forms and form fields
131
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?
With client scripts
132
Although modern browsers all interpret JavaScript the same way, you may still experience what regarding client side scripts?
Browser dependent behavior
133
Script runs when a form meeting the trigger condition loads and before access is given to the user
onLoad()
134
Script runs when a form meeting the trigger condition is saved, updated, or submitted
onSubmit()
135
Script runs when a particular field’s value on a form changes
onChange()
136
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.
onLoad()
137
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
onSubmit()
138
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
onChange()
139
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.
onLoad()
140
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.
onChange()
141
These client scripts execute script logic when a form is submitted. Use these client scripts to validate field values.
onSubmit()
142
Trigger conditions must be met for client scripts to execute (t/f)
True
143
On a client script form, select this to decide whether or not the script executes for desktop and table or mobile or both
UI type
144
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.
GlideForm g_form
145
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.
GlideUser g_user
146
Because g_user executes client side. Impersonation will affect results. (T/f)
True
147
The g_form and g_user objects are automatically instantiated for client side scripts (t/f)
True
148
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.
Ctrl+ spacebar
149
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.
Period
150
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?
certain APIs are either modified or unavailable altogether
151
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.
False
152
GlideRecord is the only API that cannot be turned back on. _______ can be used as a replacement for GlideRecord
GlideAjax
153
What are the inaccessible APIs?
GlideRecord Window Document $ $$ jQuery $j $f
154
What are the modified APIs?
GlideAjax GlideForm GlideDialogWindow
155
UI policies execute AFTER client scripts (t/f)
True
156
Executes on form load. UI policy or Client script?
Both
157
Executes on form save/submit/ update. UI policy or Client script?
Client script
158
Execute on form field value change? UI policy or Client script?
Both
159
Have access to a field’s prior value? UI policy or Client script?
Client script
160
Execute on list field value change? UI policy or Client script?
Client script
161
Requires scripting UI policy or Client script?
Client script
162
Do client scripts and ui policies use the same api?
Yes
163
The server side script access control trigger is based on what?
Operation
164
The server side script business rules trigger is based on what?
Database accesses Insert/update/delete/query Before/after/display/async
165
The server side script schedule jobs trigger is based on what?
A schedule
166
The server side script Script Action triggers when
Events are generated
167
The server side script Script Includes trigger when
When called
168
The server side script UI actions triggers when
A user clicks on a widget
169
The server side script workflow/ flow triggers when
The condition is met
170
Why aren’t GlideForm and glideuser classes available server side?
They are apart of client side apis
171
Display business rules pass data from the server side to a client side script using what?
The g_scratchpad object
172
The g_scratchpad object has no properties by default and must be populated by what?
A display business rule
173
Does g_scratcgpad exist on the mobile platform?
No
174
Any client side script can use the g_scratchpad object passed in from the server (t/f)
True
175
All display business rules/ g_scratchpad property must be passed as a string?
Yes