# Return a JSON Form instead only data and errors in onChange

**URL:** <https://jsonforms.discourse.group/t/return-a-json-form-instead-only-data-and-errors-in-onchange/805>\
**Category:** General\
**Created:** [June 6, 2022, 8:12am UTC](https://jsonforms.discourse.group/t/return-a-json-form-instead-only-data-and-errors-in-onchange/805 "2022-06-06T08:12:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TannicArturo98](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/tannicarturo98/32/348_2.png) [@TannicArturo98](https://jsonforms.discourse.group/u/TannicArturo98)\
**Post date:** [June 6, 2022, 8:12am UTC](https://jsonforms.discourse.group/t/return-a-json-form-instead-only-data-and-errors-in-onchange/805/1 "2022-06-06T08:12:10Z")

</div>

Is it possible to return schema and UI schema updated from onChange?

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [June 7, 2022, 7:12am UTC](https://jsonforms.discourse.group/t/return-a-json-form-instead-only-data-and-errors-in-onchange/805/2 "2022-06-07T07:12:18Z")

</div>

Hi @TannicArturo98,

the `schema` and `uischema` do not change during the lifetime of the form. Therefore there is no need to hand them out via `onChange`.

If you don’t hand over the schema and ui schema to the form and let them autogenerate, then you can do this also manually. For this there is

```auto
import { Generate } from `@jsonforms/core`.

const schema = Generate.schema(data);
const uischema = Generate.uiSchema(schema);

```
