F
Filament15mo 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
awcodes15mo ago
Is it exploding on edit or create?
krix
krixOP15mo ago
explodes on create (edit has building_id set and cant change)
Dennis Koch
Dennis Koch15mo ago
->disabled() doesn't work reactively. It's a limitation that we currently cannot change choices.js after initialization
krix
krixOP15mo ago
tnx

Did you find this page helpful?