Select::selectablePlaceholder(false) not working with relationships
I have the following select component, which correctly displays as a list of the user's leads, with the first item always selected:
If
selectablePlaceholder(false)
is removed, it works as expected. With it in place however, it always fails the required()
validation, despite the option being selected. Removing required()
allows the form to be saved, but the lead_id
value is never persisted to the database.S
Shavik•6d ago
I'm experiencing this as well. Did you ever figure it out?
Looks like if I set the default option 'it works' but I expected having no selectable placeholder meant that the 'option shown' would be the one submitted.
A
awcodes•6d ago
Pretty sure if there is no interaction with the select then no value is ever set, so the state in lw/alpine will always be null.
Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.
15KMembers
View on DiscordWant results from more Discord servers?
More PostsSelect HasMany relationship with CreateOptionAccording to the docs the ability to create a new option on the fly only supports `BelongsTo` and `BRelation Manager not in modalI need from a Relation Manager to be open not in a modal but in a new page, but that page should havHow to return the Wizard to step 1 after create success in custom page.Hello, I have created a custom page using the form following schema this form saves the data into exHaving issues with spa() and https and logoutWhen put URL::forceScheme('https') in boot() in AppServiceProvider, my panel spa() does not work.
BuDynamic Form ValidationsHi, We stored different validations in database. How can we dynamically apply Filament field validatHow to dispatch filament form data using blade $dispatch methodWhen I am trying to `$dispatch` an event to send filament form data, it is not sending updated form Help Needed: Unexpected Behavior in Laravel Filament with APP_DEBUG=trueI'm encountering an issue with Laravel Filament not functioning as expected on my local development Lazy loading for Select form component optionsHey there!
Is anyone aware of a way to lazy load the options of a Select form component?
Right nowTabs/Costumer/installmentsHi team, I have doubts as to whether it is possible to show a list in the customer's installments taspa mode does not seem to work with Laravel 11I had observed that the Spa() does not get affect to the site. It just like without using spa(), the