Create Comment Controls

XML Forms Guide

Version
R2024.1.1
Create Comment Controls

A comment control combines a comment entry field with a checkbox:

Sample of the comment entry field with a checkbox labeled "Add comment to the employee's file."

You can create a comment control using the <Comment> tag.

Copy
<Comment>
    <Row>n</Row>
    <CommentField>data_class</CommentField>
    <FlagField>data_class</FlagField>
    <IsReadOnly>True/False</IsReadOnly>
    <IsRequired>True/False</IsRequired>
</Comment>

The <CommentField> tag identifies the source of the comment field while the <FlagField> identifies the data class that stores the state of the checkbox.