OTRS API Reference JavaScript

Namespace: Core.Form

Core. Form

This namespace contains all form functions.
Author:
  • OTRS AG
Source:

Namespaces

ErrorTooltips
Validate

Methods

(static) DisableForm($Form)

This function disables all elements of the given form. If no form given, it disables all form elements on the site.
Parameters:
Name Type Description
$Form jQueryObject All elements of this form will be disabled.
Source:

(static) EnableForm($Form)

This function enables all elements of the given form. If no form given, it enables all form elements on the site.
Parameters:
Name Type Description
$Form jQueryObject All elements of this form will be enabled.
Source:

(static) Init()

This function initializes module functionality.
Source:

(static) InitSelectAllCheckboxes($Checkboxes, $SelectAllCheckbox)

This function marks the "SelectAll checkbox" as checked if all depending checkboxes are already marked checked. Adds PubSub event to control handling of checkboxes, if a filter is used.
Parameters:
Name Type Description
$Checkboxes jQueryObject The jquery object with all dependent checkboxes.
$SelectAllCheckbox jQueryObject The object with the SelectAll checkbox.
Source:

(static) IsFormModified() → {boolean}

Checks if any element in any form on the screen has been modified.
Source:
Returns:
True if there was modification.
Type
boolean

(static) SelectAllCheckboxes($ClickedBox, $SelectAllCheckbox)

This function selects or deselects all checkboxes given by the ElementName.
Parameters:
Name Type Description
$ClickedBox jQueryObject The clicked checkbox in the DOM.
$SelectAllCheckbox jQueryObject The object with the SelectAll checkbox.
Source: