Client Client Client
Method Script Script Script
Descripti Name Example Name Example Name
S.NO Method Name on Syntax For eg:1 1 For eg:2 2 For eg:3
function
onLoad()
{
//Type
appropriat
e
comment
here, and
begin
script
below
g_form.ad
dDecorati
on('caller_
id', 'icon-
star',
'Mark as
Favorite',
'color-
blue');
g_form.ad
dDecorati
on('assign
ment_gro
up', ' icon-
g_form.ad user-
Adds an dDecorati group');
icon on a on('caller_
GlideForm - field's id', 'icon-
addDecoration(Strin label. star', }
g fieldName, String 'preferred addDecor
1 icon, String title) member'); ation
Displays
the
specified
error
message
at the top g_form.ad
GlideForm - of the dErrorMe
addErrorMessage(St form. ssage('Thi
ring message) s is an
2 error');
'info');
g_form.ad
dFormMe
ssage('wa
rning2
message',
'warning');
g_form.ad
dFormMe
ssage('err
or2
message',
'error');
g_form.ad
dFormMe
ssage('W
ould you
like to
reassign
this to
yourself?',
'info',
{buttons:
Displays [{label:
a floating "Assign to
form me",
message actionNa
at the top me:
of the "assign_t
form o_me"}],
detail meta:
section. {'userId':
GlideForm - The '46d44a2
addFormMessage(S message 3a9fe198
tring message, does not 10012d10
String type, Object cover UI 0cca8066
3 options) actions. 6'}});
Example
3