ui.Form.setFieldComment

Set the comment/hint of a form field.

Syntax

setFieldComment(
   name STRING,
   comment STRING )
  1. name defines the name of the form field, see Identifying elements in ui.Form methods.
  2. comment the text of the element comment.

Usage

Change the comment attribute of a form field with the setFieldComment() method.

The comment attribute is used to display a message when entering the field.