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
Is it exploding on edit or create?
explodes on create (edit has building_id set and cant change)
->disabled()
doesn't work reactively. It's a limitation that we currently cannot change choices.js after initializationtnx