Forms
A form is a simple container for different types of UI elements, some of which help collect inputs from users and some of which present information to users.
-- insert image
Creating Forms
A form is typically made up of input elements that serve to collect data from users, display elements that display data to users and action buttons that perform some sort of action when clicked.
-- (add form ID to Ui during development)
Displaying Forms
To display a form within a conversation window, you send a message of type UI_FORM
to the conversation, with the content of the message
being a stringified representation of the form.
To get the code snippet needed to send a form to a conversation from a function, click on the embed button on the form.
-- show gif/video
-- forms during dev vs form in conversation
Note that not every medium will be able to display forms within conversations. For instance, a voice-only medium may not be able to render a UI form.
Form Data
This is an object that contains the names of the elements on a form and their corresponding values.