0% found this document useful (0 votes)
15 views4 pages

Client - Script Methods

The document outlines various methods for manipulating form elements in a GlideForm, including adding icons, error messages, and floating form messages. It provides syntax examples for each method, demonstrating how to implement these features in a script. Key methods include addDecoration, addErrorMessage, and addFormMessage, each serving specific purposes for enhancing user interaction with forms.

Uploaded by

nexus6.0avas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Client - Script Methods

The document outlines various methods for manipulating form elements in a GlideForm, including adding icons, error messages, and floating form messages. It provides syntax examples for each method, demonstrating how to implement these features in a script. Key methods include addDecoration, addErrorMessage, and addFormMessage, each serving specific purposes for enhancing user interaction with forms.

Uploaded by

nexus6.0avas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

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

You might also like