A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/api/form_validate_method/ below:

Website Navigation


JavaScript Form - validate Method

validate()

validates form fields

validate(silent?: boolean): boolean;

Parameters: Returns:

The result of validation: true, if a form is valid; otherwise, false.

Example

const result = form.validate(true); // -> true/false

Related sample: Form. Validate

Starting with v7.0, the method validates only the required fields or the fields that contain validation rules.

When called without the silent parameter, the method invokes the BeforeValidate and AfterValidate events and modifies the form visually.

const result = form.validate(); // -> true/false
Change log:

The silent parameter is added in v7.0.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4