# form > **NOTE** > > This component is supported since API version 6. Updates will be marked with a superscript to indicate their earliest API version. The **\
``` ```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)