FormMessage class is used to create an interactive form message that can be sent via CometChat. It extends the InteractiveMessage class from CometChat.
Constructor
| Name | Type | Description |
|---|---|---|
| receiverId | string | The ID of the receiver |
| receiverType | string | The type of the receiver |
| title | string | The title of the form |
| formFields | Array<ElementEntity> | The fields of the form |
| submitElement | ButtonElement | The submit button of the form |
Class Usage
How to create an instance of theFormMessage class:
- Java
Send Form Message
- Java