Canvas Components
Form Fields Component
The form fields component allows you to render forms and collect user input within the webchat interface.
Example Usage
Field Types
The form fields component supports various field types including:
checkbox- Boolean checkbox inputtext- Text input fieldtextarea- Multi-line text inputselect- Dropdown selection- And more
Configure your fields in the initial_form.spec.fields object with the appropriate field type and parameters.
Conditioning of Form Fields
This is a useful feature when you want to hide parts of the form that are not relevant and rely on other fields for logic. For example, displaying specific sections only if a checkbox is checked.
Output:
