Is it possible to dynamically set ->defaultItems to be the value from another field?

I am toying with this, but I am not even sure if it is valid.

->defaultItems(fn (Closure $get) => $get('../../number_of_documents') != null)

Where number_of_documents is a text input of type number outside the repeater
Was this page helpful?