Skip to main content

Constructor

NameTypeDescription
receiverIdstringThe ID of the receiver
receiverTypestringThe type of the receiver
titlestringThe title of the form
formFieldsArray<Element Entity>The fields of the form
submitElementButton ElementThe submit button of the form

Class Usage

How to create an instance of the FormMessage class:

Key Properties and Methods

Goal Completion Text

The setGoalCompletionText() method sets the goal completion text of the form.

Example

Below is an example that showcases the creation and manipulation of an instance of FormMessage:
In this example, a new instance of the FormMessage class is created. The title, form fields, submit element, and goal completion text are retrieved, updated, and retrieved again. Then a new FormMessage instance is made from a JSON object, and the title is retrieved and logged.