Hide Text Form Input based on Selected Data from other Form Components

Hi there I have this codes, and I can't seem to make the expected hidden form behavior. The the other_information text input should show based on the data of the status Radio.


Radio::make('status') ->options([ 0 => 'Open', 1 => 'Closed', 2 => 'Done', ]) ->default(0) ->required(), TextInput::make('other_information') ->numeric() ->visible(fn ($get) => $get('./status') < 1),

Does anyone know how to do this? Thanks a bunch.
Was this page helpful?