Repeater by default open the field?
how to open the repeator fields when create page rendor without any button action
5 Replies
like this
i have two panels and in both the panels his repeater is used but in panel1 it wors perfectly but in panel2 it shows me a button when i click on the button it show me the content field and in the panel1 it bydefault show me the content filed without button action
???
you need to provide your code, but you should pass ing ->default(['']) or similar
Repeater::make(1)
->relationship('message_centers')
->schema([
Hidden::make('from')
->default('pharmacy'),
Textarea::make('content')
->required()
->rows(5)
])
in the panel1 it work perfect but in panel 2 it shows only the add button not the content field