FilamentF
Filament2y ago
Wim

Conditionally display Form TextInput

I have the following text input:

Forms\Components\TextInput::make('vouchers.code')
       ->label('Voucher')

It can be that there is no voucher code and then I prefer not to show the Text Input. If there is a voucher code, I want to show the Text Input.

Note: not sure if relevant but I'm using this inside the action method of a table.

How can this be achieved?
Was this page helpful?