ReadOnlyTextCollector

Class representing a READ_ONLY_TEXT type collector.

This class handles the response from a DaVinci form field of type READ_ONLY_TEXT (inputType). It displays read-only text content such as agreement/terms-of-service text.

Example JSON:

{
"type": "AGREEMENT",
"inputType": "READ_ONLY_TEXT",
"key": "agreement",
"content": "This is example agreement text...",
"titleEnabled": true,
"title": "Terms of Service Agreement",
"agreement": {
"id": "6ff30c9e-cd98-4fe5-85ca-01111ca20702",
"useDynamicAgreement": false
},
"enabled": true
}

Constructors

Link copied to clipboard
constructor()

Creates a new ReadOnlyTextCollector.

Properties

Link copied to clipboard

The unique ID of the agreement definition.

Link copied to clipboard

The text content to display to the user.

Link copied to clipboard

Whether this collector is enabled.

Link copied to clipboard
var key: String

The key identifier for this collector, used as the form field key during submission.

Link copied to clipboard

The title (shown when titleEnabled is true).

Link copied to clipboard

Whether to display the title above the content.

Link copied to clipboard

The type of this collector (e.g., "AGREEMENT").

Link copied to clipboard

Whether the agreement content is loaded dynamically.

Functions

Link copied to clipboard
open override fun id(): String
Link copied to clipboard
open override fun init(input: JsonObject): ReadOnlyTextCollector