Learn about the Form component for use in UI extensions.
Form
component renders a form that can contain other subcomponents, such as Input, Select, and Button. Use this component to enable users to submit data to HubSpot or an external system.
Below, learn how to implement a form in a UI extension. For guidance on form design, check out the Form design patterns.
Prop | Type | Description |
---|---|---|
onSubmit | Function | The function that is called when the form is submitted. It will receive a RemoteEvent as an argument and its return value will be ignored. |
autoComplete | 'on' (default) | 'off' | Set this field to 'off' to prevent autocompletion software (e.g., browser, password managers) from auto-filling form fields. Based on the autocomplete HTML attribute. |