Skip to content

Is it possible to create a form with recursive field? #251

Open
@mattp0123

Description

@mattp0123

i have a form like this:

type Condition =
  | {
      type: 'composite'
      operator: 'and' | 'or'
      conditions: Condition[]
    }
  | OtherCondition

type Form = {
  condition: Condition
}

seems a bit like nested & array field approach. could have dynamic field path like:

<Field name={`condition.conditions.${index}.type`} />

but i got this error when i trying to create the form:

image

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions