fields.message

Since: Editor 1.6

Information message that is shown below the input control.
Please note - this property requires the Editor extension for DataTables.

Description

This option is very similar to the fields.fieldInfo option, in that it shows an information message below a field's input, giving a description of the field to the end user. It is generally recommended that fields.fieldInfo be used for static description text, while this parameter (and its companion API method - field().message()) be used for dynamically updated information.

Type

This option can be given in the following type(s):

Example

:

var editor = new DataTable.Editor({
	ajax: 'api/staff',
	table: '#myTable',
	fields: [
		{
			label: 'First name:',
			name: 'first_name',
			message: 'First name of the user should contain at least 1 letter.'
		}
	]
});

Related

The following options are directly related and may also be useful in your application development.