F
Filament6mo 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
awcodes6mo ago
Is it exploding on edit or create?
krix
krix6mo ago
explodes on create (edit has building_id set and cant change)
Dennis Koch
Dennis Koch6mo ago
->disabled() doesn't work reactively. It's a limitation that we currently cannot change choices.js after initialization
krix
krix6mo ago
tnx
Want results from more Discord servers?
Add your server
More Posts
I am using filament/spatie-laravel-media-library-plugin but having an issue showing the first imageI was able to upload multiple images in a collection() with no issues at all, but what I am trying tImageColumnand FileUpload , so i upload the file ( image ) FileUpload::make('filepath')->disk('local')->directodeferLoading Placeholder TextIs it possible to have a default row much like with emptyStateHeading but for when the table is loadAuthorization on Repeater Form field relationIs possible to add authorization to form fields. I know I can add a hide() and pass a closure that Allow reorderable without fillable column?Good evening everyone! I am somewhat stuck on adding reorderable. I noticed that I am required to aThe GET method is not supported for route livewire/update. Supported methods: POST.I've been getting this error very randomly, some users in the web app get it while others don't and Is there any library to scan QRcode? after generate it i want to scann itIm looking for library or pluging that help to do scann QRcode to check or delete or log in by usingTable Sub-RowsHello, Let's say we have order hasMany items, Is there a way to display orders table with sub-rows Pivot column in many to many relationship - form builderi have the following form: Forms\Components\Section::make('Linked Businesses') Dynamically Retrieve and pass Link from JSONB Column within RepeatableEntryI'm facing an issue while trying to pass a callback function to the url() method within a Repeatable