# Using json files to compose UI schema

**URL:** <https://community.weweb.io/t/using-json-files-to-compose-ui-schema/10686>\
**Category:** How do I?\
**Created:** [September 6, 2024, 12:59pm UTC](https://community.weweb.io/t/using-json-files-to-compose-ui-schema/10686 "2024-09-06T12:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvictoro](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jvictoro](https://community.weweb.io/u/jvictoro)\
**Post date:** [September 6, 2024, 12:59pm UTC](https://community.weweb.io/t/using-json-files-to-compose-ui-schema/10686/1 "2024-09-06T12:59:42Z")

</div>

Hi!

I’m developing a dynamic input form that will adjust when the user selects the lists of fields we have in the form. For this I have N json schema which I have read properly and the selected answers are populated.

My question is, I only have 1 collection for the form, if I fetch the collection with new values I will lost the others one. I have the $ref (refereneces) on json files.

Is there anyway to do this without javascript?

Whats is the best approach?

Thanks!
