Repeater hide the input on second item

How to hide the Repeater Radio button the second item of repeater?
Forms\Components\Repeater::make('eventDates')
->label('Event dates')
->required()
->relationship('eventDates')
->columnSpanFull()
->schema([
Forms\Components\Radio::make('recurrent')
->label('Is this event recurring?')
->boolean()
->live()
->required(),

Forms\Components\DateTimePicker::make('recurrent_startdate')
->label('Calendar Starts On')
->required()
->visible(fn(Forms\Get $get) => $get('recurrent')),
]),
Forms\Components\Repeater::make('eventDates')
->label('Event dates')
->required()
->relationship('eventDates')
->columnSpanFull()
->schema([
Forms\Components\Radio::make('recurrent')
->label('Is this event recurring?')
->boolean()
->live()
->required(),

Forms\Components\DateTimePicker::make('recurrent_startdate')
->label('Calendar Starts On')
->required()
->visible(fn(Forms\Get $get) => $get('recurrent')),
]),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server