GlideForm (g_form) - Client
-
- UpdatedFeb 27, 2025
- 23 minutes to read
- Yokohama
- API reference
The GlideForm API provides methods to customize forms.
GlideForm.js is the JavaScript class containing the methods. Only use GlideForm methods on the client. You can use these methods to make custom changes to the form view of records. All validation of examples was done using client scripts.
You can also use some of these methods in other client scripts (such as Catalog Client Scripts or Wizard Client Scripts), but you must first test this to determine whether they will work as expected.
There is no constructor for the GlideForm class. Access GlideForm methods using the g_form
global object.
GlideForm - addDecoration(String fieldName, String icon, String title)
Adds an icon on a field's label.
Name | Type | Description |
---|---|---|
fieldName | String | The field name. |
icon | String | The font icon to show next to the field. Supported icons - icon-user, icon-user-group, icon-lightbulb, icon-home, icon-mobile, icon-comment, icon-mail, icon-locked, icon-database, icon-book, icon-drawer, icon-folder, icon-catalog, icon-tab, icon-cards, icon-tree-right, icon-tree, icon-book-open, icon-paperclip, icon-edit, icon-trash, icon-image, icon-search, icon-power, icon-cog, icon-star, icon-star-empty, icon-new-ticket, icon-dashboard, icon-cart-full, icon-view, icon-label, icon-filter, icon-calendar, icon-script, icon-add, icon-delete, icon-help, icon-info, icon-check-circle, icon-alert, icon-sort-ascending, icon-console, icon-list, icon-form, and icon-livefeed. |
title | String | The text title for the icon. |
Type | Description |
---|---|
void |
Example
GlideForm - addDecoration(String fieldName, String icon, String title, String color)
Adds an icon on a field's label.
Type | Description |
---|---|
void |
Example
GlideForm - addErrorMessage(String message)
Displays the specified error message at the top of the form.
This message appears for approximately four seconds and then disappears. This timeout is not configurable at this time.
Name | Type | Description |
---|---|---|
message | String | Message to display. |
Type | Description |
---|---|
void |
Example
GlideForm - addFormMessage(String message, String type, Object options)
Displays a floating form message at the top of the form detail section. The message does not cover UI actions.
Type | Description |
---|---|
None |
Example
The following example shows how to add form messages of each type.
GlideForm - addInfoMessage(String message)
Adds the specified informational message to the top of the form.
This message appears for approximately four seconds and then disappears. This timeout is not configurable at this time.
Name | Type | Description |
---|---|---|
message | String | Message to display. |
Type | Description |
---|---|
void |
Example
GlideForm - addOption(String fieldName, String choiceValue, String choiceLabel)
Adds a choice to the end of a choice list field.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field. |
choiceValue | String | The value to be stored in the database. |
choiceLabel | String | The value displayed. |
Type | Description |
---|---|
void |
Example
GlideForm - addOption(String fieldName, String choiceValue, String choiceLabel, Number choiceIndex)
Adds a choice to the list field at the position specified.
Type | Description |
---|---|
void |
Example
GlideForm - clearMessages()
Removes all informational and error messages from the top of the form.
Removes informational and error messages added with g_form.addInfoMessage() and g_form.addErrorMessage().
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
GlideForm - clearAllFormMessages()
Removes all form messages of any type.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
None |
Example
The following example shows how to clear all messages from the form.
GlideForm - clearFormMessages(String type)
Removes all form messages of a given type.
Name | Type | Description |
---|---|---|
type | String | The type of message. Valid values:
|
Type | Description |
---|---|
None |
Example
The following example shows how to clear all error messages from the form.
GlideForm - clearOptions(String fieldName)
Removes all options from the choice list.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
void |
GlideForm - clearValue(String fieldName)
Removes any value(s) from the field.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
void |
GlideForm - disableAttachments()
Prevents file attachments from being added.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - enableAttachments()
Allows file attachments to be added. Shows the paper clip icon.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - flash(String fieldName, String color, Number count)
Used to draw attention to a particular field. Flashes the specified color for a specified duration of time in the specified field.
This method is not supported by Service Catalog.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
fieldName | String | Specifies the field to highlight in the following format:
"<table-name>.<field-name>" . |
color | String | RGB color or acceptable CSS color. |
count | Number | Specifies how long the label will flash. Options include:
|
Type | Description |
---|---|
void |
Example
GlideForm - getActionName()
Returns the most recent action name, or, for a client script, the sys_id of the UI action clicked.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The current action name. |
Example
GlideForm - getBooleanValue(String fieldName)
Returns a Boolean value for the specified field.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
Boolean | Returns false if the field value is false or undefined; otherwise returns true. |
GlideForm - getControl(String fieldName)
Returns the HTML element for the specified field.
Compound fields may contain several HTML elements. This method is generally not necessary as there are built-in methods that use the fields on a form.
If the field is a reference field and the control is a choice list,
getControl() may not return a control as expected. In this case, use
sys_select.<table name>.<field name>
.
This method is not available in mobile scripts or Service Portal scripts.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
HTMLElement | The field's HTML element. |
GlideForm - getDecimalValue(String fieldName)
Returns the decimal value of the specified field.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field. |
Type | Description |
---|---|
String | The decimal value of the specified field. |
Example
GlideForm - getDisplayBox(String fieldName)
Gets the display value from a form in the core UI.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field from which you want to retrieve a value in the form. |
Type | Description |
---|---|
None |
Example
GlideForm - getDisplayValue(String fieldName)
Gets the display value from a form in Service Portal.
g_form.getDisplayValue()
without an argument returns the record display value rather than the display value of an
individual field.Name | Type | Description |
---|---|---|
fieldName | String | Name of the field from which you want to retrieve a value in the form. |
Type | Description |
---|---|
None |
Example
The following example shows how to get the display value of a reference variable in the core UI or Service Portal. The use case for this example is on the community site.
GlideForm - getElement(String id)
Returns the HTML element specified by the parameter.
Compound fields may contain several HTML elements. This method is generally not necessary as there are built-in methods that use the fields on a form.
This method is not available in mobile scripts or Service Portal scripts.
Name | Type | Description |
---|---|---|
id | String | The field id. |
Type | Description |
---|---|
HTMLElement | The field's HTML element. |
GlideForm - getFormElement()
Returns the HTML element for the form.
This method is not available in mobile scripts or Service Portal scripts.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
HTMLFormElement | The HTML element for the form. |
GlideForm - getHelpTextControl(String fieldName)
Returns the HTML element of the help text for the specified field.
This method is applicable to service catalog variables only.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
HTMLElement | Help text field's HTML element. |
GlideForm - getIntValue(String fieldName)
Returns the integer value of the field.
Name | Type | Description |
---|---|---|
fieldName | String | The field name. |
Type | Description |
---|---|
Number | Integer value of the field. |
GlideForm - getLabelOf(String fieldName)
Returns the plain text value of the field label.
Name | Type | Description |
---|---|---|
fieldName | String | The field name |
Type | Description |
---|---|
String | The label text. |
Example
GlideForm - getOption(String fieldName, String choiceValue)
Returns the option element for a selected box named fieldName where choiceValue matches the option value.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
choiceValue | String | Value of the option. |
Type | Description |
---|---|
HTMLElement | The HTMLElement for the option. Returns null if the field or option is not found. |
Example
The following example shows how to get the label for a choice list value.
GlideForm - getReference(String fieldName, Function callBack)
Returns the GlideRecord for a specified field.
If a callback function is present, this routine runs asynchronously. The browser (and script) processing continues normally until the server returns the reference value, at which time, the callback function is invoked. If a callback function is not present, this routine runs synchronously and processing halts (causing the browser to appear to hang) while waiting on a server response.
Callback function support for ServiceCatalogForm.getReference is available.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
callBack | Function | Name of the call back function. |
Type | Description |
---|---|
GlideRecord | GlideRecord object for the specified field. If the specified reference cannot be found, it returns an initialized GlideRecord object where currentRow = -1 and rows.length = 0. |
Example
GlideForm - getRelatedListNames()
Returns an array of related list names from the current form.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | String array of related list names from the current form. The related list names are listed in the order in which they appear on the form. |
Example
GlideForm - getSectionNames()
Returns all section names, whether visible or not.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array of strings | The section names. |
GlideForm - getSections()
Returns an array of the form's sections.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array of HTML elements | The form's sections. |
Example
GlideForm - getTableName()
Returns the name of the table to which this record belongs.
On the server side, the table for the current record can be retrieved with current.sys_class_name or current.getTableName().
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Name of the table. |
Example
GlideForm - getUniqueValue()
Returns the sys_id of the record displayed in the form.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The record's sys_id. |
Example
GlideForm - getValue(String fieldName)
Returns the value of the specified form field.
This method also supports getting values from a multi-row variable set (MRVS). To obtain data from fields within an MRVS, you must first use JSON.parse(getValue('<mrvs_field_name>') || '[]')
to obtain the
MRVS array, and then use indexing to access the fields within the row objects. For more details, see the code example below.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field whose value to return. |
Type | Description |
---|---|
String | Value of the specified field. |
Example
The following example shows how to get the short description from the current form.
Example
The following example shows how to get values from an MRVS. In this example, salaries are being managed through the Service Catalog. The client script searches all rows within the MRVS for the value entered in the Job title and then updates the matching entries within the MRVS with what is entered in the Salary field. The MRVS is named "variable_set_1" and contains the following fields within each row object: Employee name [employee_name], Job title [employee_job_title], and Salary [employee_salary]. In addition, the Catalog Item contains: Job title [job_title] and Salary [salary].
GlideForm - hideAllFieldMsgs()
Hides all field messages.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - hideAllFieldMsgs(String type)
Hides all field messages of the specified type.
Name | Type | Description |
---|---|---|
type | String | The type of message. Valid values:
|
Type | Description |
---|---|
void |
GlideForm - hideErrorBox(String fieldName)
Hides the error message placed by showErrorBox().
Whenever possible, use hideFieldMsg() rather than this method whenever possible.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field or control. |
Type | Description |
---|---|
void |
GlideForm - hideFieldMsg(String fieldName, Boolean clearAll)
Hides the first message that appears in the specified field on the current form.
Use the GlideForm - showFieldMsg(String field, String message, String type) or GlideForm - showFieldMsg(String field, String message, String type, Boolean scrollForm) methods to display messages on a form.
work_notes
field of a form and then hide the first message:
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field on which to hide the message. |
clearAll | Boolean | Optional. Flag that indicates whether to hide all messages for the specified field. Valid values:
Default: false |
Type | Description |
---|---|
void |
Example
The following example shows how to clear all messages for a specified form field and then display an encryption error message.
GlideForm - hideRelatedList(String listTableName)
Hides the specified related list on the form.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
listTableName | String | Name of the related list. Use the sys_id to hide a list through a relationship. |
Type | Description |
---|---|
void |
GlideForm - hideRelatedLists()
Hides all related lists on the form.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - isLiveUpdating()
Returns true while a live update is being done on the record the form is showing.
This can be used in an onChange() client script to determine if a change to the record is because of a live update from another session. The client script can then decide what action to take, or not to take. This applies to systems using Core UI with live forms enabled.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true if a live update is happening on the record displayed by the form. |
GlideForm - isMandatory(String fieldName)
Returns true if the field is mandatory.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
Type | Description |
---|---|
Boolean | True if the field is required, false otherwise. |
GlideForm - isNewRecord()
Returns true if the record has never been saved.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true if the record has not been saved; otherwise false. |
Example
GlideForm - isSectionVisible(String sectionName)
Returns true if the section is visible.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true when the section is visible; otherwise, false is returned. |
GlideForm - isVisible(String fieldName)
Determines whether the field associated with the passed-in field name is visible on the current form.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field to check whether it is visible on the current form. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the specified field is visible on the current form. Valid values:
|
Example
The following code example shows how to check if the user_address
field is visible on the current form.
GlideForm - onUserChangeValue(Function fn)
Registers a custom event listener that detects when any field in the current form is modified by a user.
When a form field is modified, the event listener calls the function that is passed in when the listener is initially registered. This listener is only triggered when a user makes a change to a field on the form. Changes from client scripts, UI policies, or any other non-user interactions, do not trigger the listener.
Name | Type | Description |
---|---|---|
fn | Function | Function to call when a user changes the value of a field within the current
form. This is actually the function code, not just the function name. This function must accept the following three arguments:
|
Type | Description |
---|---|
Function | Function to call to unregister the onUserChangeValue event listener. |
Example
GlideForm - refreshSlushbucket(String fieldName)
You can update a list collector variable.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the slush bucket. |
Type | Description |
---|---|
void |
Example
GlideForm - removeDecoration(String fieldname, String icon, String title)
Removes the icon from the specified field that matches the icon and title.
Name | Type | Description |
---|---|---|
fieldName | String | Field name. |
icon | String | Name of the icon to remove. |
title | String | The icon's text title (name). |
Type | Description |
---|---|
void |
Example
GlideForm - removeDecoration(String fieldname, String icon, String title, String color)
Removes the icon from the specified field that matches the icon, title, and color.
Type | Description |
---|---|
void |
Example
GlideForm - removeOption(String fieldName, String choiceValue)
Removes the specified option from the choice list.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
choiceValue | String | The value stored in the database. This is not the label. |
Type | Description |
---|---|
void |
Example
GlideForm - save()
Saves the record without navigating away (update and stay).
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - setMandatory(String fieldName, Boolean mandatory)
Makes the specified field mandatory.
Whenever possible, use a UI policy rather than this method.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
mandatory | Boolean | When true makes the field mandatory. When false makes the field optional. |
Type | Description |
---|---|
void |
GlideForm - setSectionDisplay(String sectionName, Boolean display)
Shows or hides a section.
Name | Type | Description |
---|---|---|
sectionName | String | The section name is lower case with an underscore replacing the first space in the name, and with the remaining spaces being removed, for example "Section Four is Here" becomes "section_fourishere". Other non-alphanumeric characters, such as ampersand (&), are removed. Section names can be found by using the getSectionNames() method. |
display | Boolean | When true shows the section. When false hides the section. |
Type | Description |
---|---|
Boolean | Returns true when successful. |
GlideForm - setValue(String fieldName, String value, String displayValue)
Sets the value of a specified form field to the value of a specified display value in a reference record.
To improve performance by preventing a round trip when setting the value for a reference field, use this method, not setValue(fieldName, value). When setting multiple reference values for a list collector field, pass arrays in the value and displayValue parameters.
setValue(shortDesc, newValue.toUpperCase());
, validate
that the short description is not already uppercase. This will prevent the client script
from applying the toUpperCase() more than once.Name | Type | Description |
---|---|---|
fieldName | String | Name of the form field to update. |
value | String or Array | Sys_id of the reference record to use to update the field. If the specified field is a GlideList, this parameter can contain an array of sys_ids. In this case, the method performs a lookup of all records specified in the array and those values are used to update the contents of the specified field (related list). Note: When defining a value in a choice list, be sure to use number value rather than the label.
|
displayValue | String or Array | Field within the specified reference record to use to update the specified field. For example, in the User [sys_user] table it might be userName. If the specified field is a GlideList, this parameter can contain an array of display value names. For additional information on display values, see Display value. |
Type | Description |
---|---|
void |
Example
This example shows passing the sys_id of the reference record that contains the userName field to use to update the assigned_to form field.
Example
This example shows passing an array of reference record sys_ids and an array of corresponding display value names to use to update the form fields in the GlideList glide-list_field_name.
GlideForm - showErrorBox(String name, String message, Boolean scrollForm)
Displays an error message under the specified form field (either a control object or the name of the field). If the control or field is currently off the screen and the scrollForm parameter is true, the form scrolls to the control or field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field). The showFieldMsg() method is a similar method that requires a type parameter.
Name | Type | Description |
---|---|---|
name | String | Name of the field or control. |
message | String | Message to display. |
scrollForm | Boolean | When true scrolls the form to the field. When false the form does not scroll to the field. |
Type | Description |
---|---|
void |
GlideForm - showFieldMsg(String field, String message, String type)
Displays either an informational or error message under the specified form field (either a control object or the name of the field). If the control or field is off the screen, the form is scrolled to the field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field).
The showErrorBox() method is a shorthand method that does not require the type parameter.
Name | Type | Description |
---|---|---|
field | String | Name of the field or control. |
message | String | Message to display. |
type | String | "error","info", or "warning". |
Type | Description |
---|---|
void |
Example
GlideForm - showFieldMsg(String field, String message, String type, Boolean scrollForm)
Displays either an informational or error message under the specified form field (either a control object or the name of the field). If the control or field is currently off the screen and scrollForm is true, the form is scrolled to the field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field).
The showErrorBox() method is a shorthand method that does not require the type parameter.
Type | Description |
---|---|
void |
Example
GlideForm - setDisabled(String fieldName, Boolean disable)
Makes the specified field available or unavailable.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
disable | Boolean | When true disables the field. When false enables the field. |
Type | Description |
---|---|
void |
GlideForm - setDisplay(String fieldName, Boolean display)
Displays or hides a field.
This method cannot hide a mandatory field with no value. If the field is hidden, the space is used to display other items. Whenever possible, use a UI policy instead of this method.
Name | Type | Description |
---|---|---|
fieldname | String | Name of the field. |
display | Boolean | When true displays the field, when false hides the field. |
Type | Description |
---|---|
void |
Example
GlideForm - setLabelOf(String fieldName, String label)
Sets the plain text value of the field label.
Name | Type | Description |
---|---|---|
fieldName | String | The field name. |
label | String | The field text label. |
Type | Description |
---|---|
void |
Example
GlideForm - setReadOnly(String fieldName, Boolean readOnly)
Makes the specified field read-only or editable.
Whenever possible, use a UI policy instead of this method.
To make a mandatory field read-only, you must first remove the mandatory requirement for that field by using the setMandatory() method.
Once you set a field to read-only, you cannot use the setValue() method to update the value of that field. If you need to set the value in this way, you must set the readOnly value to false.
Name | Type | Description |
---|---|---|
fieldName | String | Name of the field. |
readOnly | Boolean | Flag that determines whether the associate field is editable or
read-only. Possible values:
|
Type | Description |
---|---|
None |
Example
The following example shows how set the Variable Editor to read only. To do this in Service Catalog tables, use setVariablesReadOnly().
GlideForm - setValue(String fieldName, String value)
Sets the value of a specified form field to the passed in value.
This method also supports setting values in a multi-row variable set (MRVS). You must first
use JSON.parse(getValue('<mrvs_field_name>'))
to obtain the MRVS array
and then use indexing to update the fields within the row objects. Once all values are
updated in the MRVS, use the setValue() method to save the updated MRVS
array. For more details, see the code example below.
setValue(shortDesc, newValue.toUpperCase());
, validate
that the short description is not already uppercase. This will prevent the client script
from applying the toUpperCase() more than once.Name | Type | Description |
---|---|---|
fieldName | String | Name of the form field to update. |
value | String | String value to set in the specified field. Note: When defining a value in a choice list, be sure to use the number value rather than the label. |
Type | Description |
---|---|
void |
Example
The following example shows how to set the short description in the current form.
Example
The following example shows how to set values in an MRVS. In this example, salaries are being managed through the Service Catalog. The client script searches all rows within the MRVS for the value entered in the Job title and then updates the matching entries within the MRVS with what is entered in the Salary field. The MRVS is named "variable_set_1" and contains the following fields within each row object: Employee name [employee_name], Job title [employee_job_title], and Salary [employee_salary]. In addition, the Catalog Item contains: Job title [job_title] and Salary [salary].
GlideForm - setVariablesReadOnly(Boolean isReadOnly)
Makes a Service Catalog variable editor read only.
The method must be placed in the client script of the table in which the variable editor is added, such as Requested Item [sc_req_item], Incident [incident], and so on. To set variables to read only in other tables, use the setReadOnly() method.
See also: Service Catalog variable editors
Name | Type | Description |
---|---|---|
isReadOnly | Boolean | Flag that determines whether the variable editor is read only. Possible
values:
Default: false |
Type | Description |
---|---|
None |
Example
Adding the following line to a client script sets the variable editor to read only.
GlideForm - setVisible(String fieldName, Boolean display)
Displays or hides the field.
On desktop UI, the space is left blank when hidden. On Mobile or Service Portal UI, the space is filled in my other fields when hidden. This method cannot hide mandatory fields with no value.
Use UI Policy rather than this method whenever possible.
Name | Type | Description |
---|---|---|
fieldName | String | The field name. |
display | Boolean | When true displays the field. When false hides the field. |
Type | Description |
---|---|
void |
Example
GlideForm - showErrorBox(String name, String message)
Displays an error message under the specified form field (either a control object or the name of the field). If the control or field is currently off the screen, the form scrolls to the control or field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field). The showFieldMsg() method is a similar method that requires a type parameter.
Name | Type | Description |
---|---|---|
name | String | The name of the control or field. |
message | String | The message to be displayed. |
Type | Description |
---|---|
void |
GlideForm - showRelatedList(String listTableName)
Displays the specified related list on the form.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
listTableName | String | Name of the related list. |
Type | Description |
---|---|
void |
GlideForm - showRelatedLists()
Displays all the form's related lists.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - submit()
Saves the record.
The user is taken away from the form, returning them to where they were.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
GlideForm - submit(String verb)
Performs the UI action specified by the parameter.
Name | Type | Description |
---|---|---|
verb | String | An action_name from a sys_ui_action record. The action name must be for a visible form button. |
Type | Description |
---|---|
void |
On this page
- GlideForm - addDecoration(String fieldName, String icon, String title)
- GlideForm - addDecoration(String fieldName, String icon, String title, String
color)
- GlideForm - addErrorMessage(String message)
- GlideForm - addFormMessage(String message, String type, Object options)
- GlideForm - addInfoMessage(String message)
- GlideForm - addOption(String fieldName, String choiceValue, String choiceLabel)
- GlideForm - addOption(String fieldName, String choiceValue, String choiceLabel, Number
choiceIndex)
- GlideForm - clearMessages()
- GlideForm - clearAllFormMessages()
- GlideForm - clearFormMessages(String type)
- GlideForm - clearOptions(String fieldName)
- GlideForm - clearValue(String fieldName)
- GlideForm - disableAttachments()
- GlideForm - enableAttachments()
- GlideForm - flash(String fieldName, String color, Number count)
- GlideForm - getActionName()
- GlideForm - getBooleanValue(String fieldName)
- GlideForm - getControl(String fieldName)
- GlideForm - getDecimalValue(String fieldName)
- GlideForm - getDisplayBox(String fieldName)
- GlideForm - getDisplayValue(String fieldName)
- GlideForm - getElement(String id)
- GlideForm - getFormElement()
- GlideForm - getHelpTextControl(String fieldName)
- GlideForm - getIntValue(String fieldName)
- GlideForm - getLabelOf(String fieldName)
- GlideForm - getOption(String fieldName, String choiceValue)
- GlideForm - getReference(String fieldName, Function callBack)
- GlideForm - getRelatedListNames()
- GlideForm - getSectionNames()
- GlideForm - getSections()
- GlideForm - getTableName()
- GlideForm - getUniqueValue()
- GlideForm - getValue(String fieldName)
- GlideForm - hideAllFieldMsgs()
- GlideForm - hideAllFieldMsgs(String type)
- GlideForm - hideErrorBox(String fieldName)
- GlideForm - hideFieldMsg(String fieldName, Boolean clearAll)
- GlideForm - hideRelatedList(String listTableName)
- GlideForm - hideRelatedLists()
- GlideForm - isLiveUpdating()
- GlideForm - isMandatory(String fieldName)
- GlideForm - isNewRecord()
- GlideForm - isSectionVisible(String sectionName)
- GlideForm - isVisible(String fieldName)
- GlideForm - onUserChangeValue(Function fn)
- GlideForm - refreshSlushbucket(String fieldName)
- GlideForm - removeDecoration(String fieldname, String icon, String title)
- GlideForm - removeDecoration(String fieldname, String icon, String title, String
color)
- GlideForm - removeOption(String fieldName, String choiceValue)
- GlideForm - save()
- GlideForm - setMandatory(String fieldName, Boolean mandatory)
- GlideForm - setSectionDisplay(String sectionName, Boolean display)
- GlideForm - setValue(String fieldName, String value, String displayValue)
- GlideForm - showErrorBox(String name, String message, Boolean scrollForm)
- GlideForm - showFieldMsg(String field, String message, String type)
- GlideForm - showFieldMsg(String field, String message, String type, Boolean
scrollForm)
- GlideForm - setDisabled(String fieldName, Boolean disable)
- GlideForm - setDisplay(String fieldName, Boolean display)
- GlideForm - setLabelOf(String fieldName, String label)
- GlideForm - setReadOnly(String fieldName, Boolean readOnly)
- GlideForm - setValue(String fieldName, String value)
- GlideForm - setVariablesReadOnly(Boolean isReadOnly)
- GlideForm - setVisible(String fieldName, Boolean display)
- GlideForm - showErrorBox(String name, String message)
- GlideForm - showRelatedList(String listTableName)
- GlideForm - showRelatedLists()
- GlideForm - submit()
- GlideForm - submit(String verb)