Skip to main content
The FormMessage class is used to create an interactive form message that can be sent via CometChat. It extends the Interactive Messages class from CometChat.

Properties

NameTypeDescription
receiverUidStringThe ID of the receiver
receiverTypeStringThe type of the receiver
titleStringThe title of the form
formFieldsList<ElementEntity>The fields of the form
submitElementButtonElementThe submit button of the form
goalCompletionTextStringThe text visible after completion of goal
interactionGoalInteractionGoalThe sets the interaction goal for the form to ma
interactionsInteractionsGives the list of elements you have interacted with
allowSenderInteractionboolAllows the sender interaction

Class Usage

How to create an instance of the FormMessage class:

Send Form Message