Closed cipriancaba closed 7 months ago
This should work now by passing the filedConfig to the AutoFormArray
const formSchema = z.object({ title: z.string(), agendaItems: z .array( // Define the fields for each item z.object({ name: z.string(), age: z.coerce.number(), }), ) .describe('Agenda items'), }) <AutoForm formSchema={formSchema} fieldConfig={{ agendaItems: { // <--------------------- HERE name: { fieldType: 'textarea', description: 'Name textarea', }, }, }} onSubmit={(values) => { }} > <AutoFormSubmit>Save</AutoFormSubmit> </AutoForm>
This should work now by passing the filedConfig to the AutoFormArray