Repeater by default open the field?

how to open the repeator fields when create page rendor without any button action
No description
5 Replies
AliBabba420
AliBabba420OP13mo ago
like this
AliBabba420
AliBabba420OP13mo ago
No description
AliBabba420
AliBabba420OP13mo ago
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 ???
toeknee
toeknee13mo ago
you need to provide your code, but you should pass ing ->default(['']) or similar
AliBabba420
AliBabba420OP13mo ago
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
Want results from more Discord servers?
Add your server