fourstacks/nova-repeatable-fields

InitialRows with default state

Closed this issue · 1 comments

Hi
I have default rows state. Is it possible to set this state on form first initialization ?

Ok
I solved this, simply add default value for laravel model $attributes
for example

    protected $attributes = [
        'errors' => '[{"comment":"error -1","type":"ok"},{"comment":"error -2","type":"notice"}]',
    ];
}