-
I have a model that looks like
I only want to create a form that allows a subset of fields in the shareLinks array. I tried
But got the error-
Question- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @MDrooker. Unfortunately, it's not possible right now. You can use <AutoForm {...}>
<AutoFields fields={['a', 'b']} />
<ListField name="c">
<ListItemField name="$">
<AutoFields fields={['x', 'y']} />
</ListItemField>
</ListField>
<AutoFields fields={['d', 'e']} />
</AutoForm> (That's just a sketch; the exact structure depends on your schema.) Another option would be to create a subschema (a schema with a subset of fields), only for this form. It may be easier, depending on your case. |
Beta Was this translation helpful? Give feedback.
Hi @MDrooker. Unfortunately, it's not possible right now. You can use
$
as "any index", but it won't let you group the fields whatsoever. The best I can think of right now, would be to do something like this:(That's just a sketch; the exact structure depends on your schema.)
Another option would be to create a subschema (a schema with a subset of fields), only for this form. It may be easier, depending on your case.