# form > **NOTE** > > This component is supported since API version 6. Updates will be marked with a superscript to indicate their earliest API version. The **\
** component allows the content in **input** elements to be submitted and reset. ## Required Permissions None ## Child Components Supported ## Attributes The [universal attributes](../arkui-js/js-components-common-attributes.md) are supported. ## Styles The [universal styles](../arkui-js/js-components-common-styles.md) are supported. ## Events In addition to the [universal events](../arkui-js/js-components-common-events.md), the following events are supported. | Name| Parameter| Description| | -------- | -------- | -------- | | submit | FormResult | Triggered when the **Submit** button is touched.| | reset | - | Triggered when the **Reset** button is clicked.| **Table 1** FormResult | Name| Type| Description| | -------- | -------- | -------- | | value | Object | Values of **name** and **value** of the input element.| ## Methods The [universal methods](../arkui-js/js-components-common-methods.md) are supported. ## Example ```html
Enter text
Submit Reset
``` ```js // xxx.js export default{ onSubmit(result) { console.log(result.value.radioGroup) // radio1 or radio2 console.log(result.value.user) // text input value }, onReset() { console.log('reset all value') } } ``` ![001](figures/001.gif)