Send an specific value using a dependent select
hey guys, i need a little help please, can't find a solution for this, i have a select:
here, if i select a option with the value i mean, this line i need send a
Forms\Components\TextInput::make('forall')
->live()
->default(fn (Get $get) => $get('email') === 'all' ? 1 : 0),
[email protected]``` i need send the value 0. i try with that line in forall but this is not working for me... how can do this?
Thank you!
3 Replies
any idea about this?
Try afterStateUpdated on the select and Set the value on textinput forall
Thank you so much @Tieme, i update my code to this, and is working really good: