DHTMLX Docs & Samples Explorer
Table of Contents
API Methods (by category)
Common
Loading
Events
Text
Value
Visibility
Checked State
Options
Validating and DB operations
Index
dhtmlxForm
API Methods (by category)
dhtmlXForm
- constructor
Common
forEachItem
- iterator
getItemType
- returns item's type
isItem
- return true if item exists
removeItem
- removes item
clear
- clear items' values
Loading
loadStruct
- loads configuration from xml file into dhtmlxForm instance
loadStructString
- loads configuration from xml string into dhtmlxForm instance
Events
attachEvent
- attaches event to dhtmlxForm instance
detachEvent
- detaches event from dhtmlxForm instance
Text
setItemLabel
- sets item's text
getItemText
- returns item's text
Value
setItemValue
- sets item's value (input only)
getItemValue
- returns item's value (input only)
getCheckedValue
- returns value of checked radiobutton in specified group
Visibility
showItem
- shows item
hideItem
- hides item
isItemHidden
- return true if item hidden
Checked State
checkItem
- checks item (checkbox and radio button only)
uncheckItem
- unchecks item (checkbox and radio button only)
isItemChecked
- return true if item checked (checkbox and radio button only)
Options
getOptions
- returns options (select only)
Validating and DB operations
load
- loads data from connector feed into the form
bindField
- bind form's field to the DB field
bindCommand
- bind input inside form to some command
bindValidator
- bind validation rule to the input
send
- send data to the server side script
save
- save data of the form in DB
remove
- delete related record from DB
reset
- reset data to their original values
validate
- validate form against defined validation rules