Set default value for Builder component
What I am trying to do: Trying to prefill the Builder component.
What I did: Try the ->default on the Builder::make, but it doesn't seem to work.
My issue/the error: The Builder is not being prefilled.
This code does not work:
4 Replies
The data is an array of arrays. You’re only passing a single array as the default. Also, know that default only works on create pages.
An array of arrays also doesn't seem to work:
I'm checking on the create page indeed
this should work. Are you using panel builder or the form builder?
Form builder, but I'm using a
and
So I load the code from a class which has the form definition as per my first comment in this thread