Skip to main content

Features

This page helps you start working with DHTMLX Form and explore its functionality in depth.

How to start with DHTMLX Form​

In this section you will learn how to initialize and localize a Form, add controls to it, and integrate it into your applications.

Initialization and localization​

TopicDescription
Basic initializationLearn how to initialize a Form (Example)
All controlsThe example shows how to initialize a Form with all available controls
LocalizationLearn how to localize a Form (Example)

Form controls​

TopicDescription
ButtonLearn how to add a Button control to a Form (Example)
Date pickerLearn how to add a DatePicker control to a Form (Example)
CheckboxLearn how to add a Checkbox control to a Form (Example)
Checkbox groupLearn how to add a CheckboxGroup control to a Form (Example)
ColorPickerLearn how to add a ColorPicker control to a Form (Example)
ComboboxLearn how to add a Combobox control to a Form (Example)
ContainerLearn how to add a Container control to a Form (Example)
InputLearn how to add an Input control to a Form (Example)
LabelsThe example shows how to add labels for controls
HelpersThe example shows how to add a help message for a control
Radio group with Radio buttonsLearn how to add Radio buttons to a Form (Example)
SelectLearn how to add a Select control to a Form (Example)
SimpleVaultLearn how to add a SimpleVault control to a Form (Example)
SliderLearn how to add a Slider control to a Form
SpacerLearn how to add a Spacer control to a Form
TextLearn how to add a Text control to a Form
TextareaLearn how to add a Textarea control to a Form (Example)
TimePickerLearn how to add a TimePicker control to a Form (Example)

Integration​

TopicDescription
Backend integrationLearn how to connect DHTMLX Suite to a backend (Demo)
OptimusLearn how to use the DHTMLX Optimus framework to build DHTMLX-based apps
(the recommended framework for apps with Suite components)
React integrationLearn how to use DHTMLX Form with React (Demo)
Angular integrationLearn how to use DHTMLX Form with Angular (Demo)
Vue integrationLearn how to use DHTMLX Form with Vue.js (Demo)

How to configure Form​

In this section you will learn how to configure groups of controls, align controls, add paddings between them, and initialize a disabled or hidden Form.

TopicDescription
Grouping controlsLearn how to group Form controls into rows and columns
Configuring paddingLearn how to set padding for content inside a control group
Setting a titleLearn how to define a title for a control group
Making Form disabledLearn how to initialize a disabled Form (Example)
Making Form hiddenLearn how to initialize a hidden Form
Aligning controlsLearn how to configure the alignment of controls in Form (Example)
Changing Form configurationThe example allows you to change Form configuration settings from the UI

How to configure validation and work with it​

In this section you will learn how to configure required fields, add validation for number values, limit the number of characters entered in an input field, and more.

TopicDescription
Configuring required fieldsLearn how to make an input field required (Example)
Defining restricted valuesLearn how to specify the minimum and/or maximum values allowed in the input
Setting allowed length of input valuesLearn how to limit the number of characters entered in an input or textarea field
Validation rulesLearn how to specify the rules of validation (Example)
Configuring messagesLearn how to show messages that tell users whether they are filling in the form correctly (Example)
Validating FormLearn how to validate the whole form (Example)
Validating a separate controlLearn how to validate a separate control (Example)

How to customize Form and change its size​

In this section you will learn how to configure the size and style of a Form and its controls.

TopicDescription
Width and height of FormLearn how to set the width and height for Form
Styling FormLearn how to customize a Form and its controls (Example)
List of CSS classesThe CSS classes included in the DHTMLX library

How to work with Form​

In this section you will learn how to send a Form to the server, disable and enable it, hide and show it, and clear Form values and validation.

TopicDescription
Sending Form to serverLearn how to send a Form to the server
Disabling / enabling FormLearn how to enable/disable a Form (Example)
Is disabledLearn how to check whether a Form or its control is disabled (Example)
Hiding / showing FormLearn how to hide/show a Form
Checking visibility of a FormLearn how to check whether a Form or its control is visible
Using input masksLearn how to use pattern and input masks to control how users enter values (Example 1, Example 2)
Clearing FormLearn how to clear the values and (or) validation of Form (Example)

How to work with Form controls​

In this section you will learn how to access the control object, disable and enable a separate control, clear control values and validation, and work with control properties and their values.

TopicDescription
Getting an itemLearn how to access the own methods and events of a control (Example)
* Disabling/enabling a controlThe example shows how to enable/disable a separate control
* Clearing a controlThe example shows how to clear a separate control
* Clearing validation of a controlThe example shows how to clear validation of a separate control
* Getting widget of controlThe example shows how to return the DHTMLX widget object related to a control and apply the widget methods to that control
* Check all available methods and events for each controlButton, DatePicker, Checkbox, CheckboxGroup, ColorPicker, Combo, Container, Input, RadioGroup, Select, SimpleVault, Slider, Spacer, Text, Textarea, TimePicker
Iterating over controlsLearn how to iterate over Form controls (Example)
Setting focus on controlLearn how to set focus on a control via Form API (Example)
Setting valueLearn how to set new values or states for Form controls (via Form API), (via Form control API)
Getting valueLearn how to get current values/states of Form controls (via Form API), (via Form control API)
Setting propertiesLearn how to change the values of the properties of Form controls (Example)
Getting propertiesLearn how to return an object with the properties that are set for Form controls (Example)

How to work with Form events​

In this section you will learn how to work with Form events.

TopicDescription
Event basic rulesLearn the basic rules of event handling
Event handlingLearn how to attach, detach, or call Form events (Example)

API reference​

In this section you will find the Form API and Form controls API references.

Form API​

TopicDescription
Form methodsCheck the list of Form methods
Form eventsCheck the list of Form events
Form propertiesCheck the list of Form properties

Form controls API​

TopicDescription
Button APICheck the API of the Button control
Datepicker APICheck the API of the DatePicker control
Checkbox APICheck the API of the Checkbox control
CheckboxGroup APICheck the API of the CheckboxGroup control
Colorpicker APICheck the API of the ColorPicker control
Combo APICheck the API of the Combo control
Container APICheck the API of the Container control
Input APICheck the API of the Input control
Radiogroup APICheck the API of the RadioGroup control
Select APICheck the API of the Select control
Simple Vault APICheck the API of the SimpleVault control
Slider APICheck the API of the Slider control
Spacer APICheck the API of the Spacer control
Text APICheck the API of the Text control
Textarea APICheck the API of the Textarea control
Timepicker APICheck the API of the TimePicker control

Common functionality​

In this section you will learn about common library functionality that is useful when you work with Form.

TopicDescription
Touch supportLearn how to work with touch support
TypeScript supportLearn how to work with TypeScript
AwaitRedrawLearn how to run code after the component renders

Any questions left?​


info

Do you need more functionality? Feel free to share your suggestions in the comments below!