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. |
preventDefault |
Boolean | When set to true , event.preventDefault() will be invoked before the onSubmit function is called, preventing the default HTML form behavior. |
- DO: include text inputs when a user should be able to submit any value.
- DO: include select inputs when a user should only be able to select from a set of values.
- DO: include descriptions and placeholder text to provide context to users.
- DO: always position the submit button at the bottom of the form.
- DON'T: include a form without a submit button.
Thank you for your feedback, it means a lot to us.
This form is used for documentation feedback only. Learn how to get help with HubSpot.