Select::make('question')
->options([
1 => 'Yes',
0 => 'No'
])
->required(),
TextInput::make('answer')
->lazy()
->required()
->dehydrateStateUsing(function ($state) {
})
->afterStateUpdated(function (TextInput $component, $state) {
// currently runs on change – I want to skip this if just toggled
// $this->autoSave('answer', $state);
})
Select::make('question')
->options([
1 => 'Yes',
0 => 'No'
])
->required(),
TextInput::make('answer')
->lazy()
->required()
->dehydrateStateUsing(function ($state) {
})
->afterStateUpdated(function (TextInput $component, $state) {
// currently runs on change – I want to skip this if just toggled
// $this->autoSave('answer', $state);
})