Autoform array of objects - default collapsed

On default in insert and update -quickforms fields defined as “array of objects” have “new empty object” like this:

How to get forms render array of objects items collapsed like this if they contain no data:

  • On insert form fields should always be on default collapsed.
  • On update forms fields should be collapsed if field DOES NOT CONTAIN any data.

The trick is to specify this in the schema:

autoform: {
  initialCount: 0

This isn’t well-documented, but I found the answer at