rare-sapphire
rare-sapphire2y ago

Dynamically render forms

Is there an easy way to dynamically render forms in refine?? through json file
5 Replies
rare-sapphire
rare-sapphireOP2y ago
so we are using useForm hook on antd for generating dynamic forms through json file
optimistic-gold
optimistic-gold2y ago
unfortunately there is no support from core, but of course you can use other libraries. for example: https://rekit.github.io/antd-form-builder/examples-v4/ but unfortunately we do not have an example for this at the moment. @veeru maybe you can help about this topic 🙏
rare-sapphire
rare-sapphireOP2y ago
@veeru could you please help me here @Omer can i get help here
flat-fuchsia
flat-fuchsia2y ago
hi @purna543 , We tried it using formily json schema . const { onFinish, redirect, formProps } = useForm<IDataCollection>({ redirect: false, }); const formObj = createForm(formProps); and pass the form object , properties and schema to FormProvider
rare-sapphire
rare-sapphireOP2y ago
@veeru Can u send me that example code