Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics

How to display messages or tooltips for the fields

Scroll Prev Next More

 

You can display messages or tooltips for the fields in the generated applications.

Variable

ctrl

the current field, a Control object.

Functions

Note: these functions don't work in an Inline Add/Edit mode.

 

ctrl.getTooltip()

Returns the current tooltip text including HTML formatting.

ctrl.setTooltip( message )

Sets the tooltip message. HTML formatting is supported.

ctrl.addTooltip( message )

Append the message to the tooltip. HTML formatting is supported.

Example

ctrl.setTooltip( '<b>' + ctrl.getValue() + '</b> is the value of the field');

See also:

About Control object

Labels/Titles API: setFieldTooltip

Miscellaneous settings: Edit form tooltips

Field events