putrafajarh
putrafajarh
FFilament
Created by putrafajarh on 7/7/2024 in #❓┊help
Repeater Toggle others
How to toggle others false, if current is true
return $form
->schema([
Forms\Components\TextInput::make('question')
->required()
->maxLength(255),
Repeater::make('options')
->columnSpanFull()
->relationship('options')
->schema([
TextInput::make('answer')
->required(),
Toggle::make('is_true').
])
]);
return $form
->schema([
Forms\Components\TextInput::make('question')
->required()
->maxLength(255),
Repeater::make('options')
->columnSpanFull()
->relationship('options')
->schema([
TextInput::make('answer')
->required(),
Toggle::make('is_true').
])
]);
3 replies