F
Filament12mo ago
krix

Filament form - instead of hidden how to use disable?

If Select with "building_id" is not selected in UI it explodes. So i use ->hidden on "floors" to avoid this but i would like to use disabled instead. Any ideas? Tried like this: (But then floors get active but there are no options or seach) ->disabled(function (Get $get) { return !$get('building_id'); / }),
4 Replies
awcodes
awcodes12mo ago
Is it exploding on edit or create?
krix
krixOP12mo ago
explodes on create (edit has building_id set and cant change)
Dennis Koch
Dennis Koch12mo ago
->disabled() doesn't work reactively. It's a limitation that we currently cannot change choices.js after initialization
krix
krixOP12mo ago
tnx
Want results from more Discord servers?
Add your server