Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

jcc5018's avatar

Filament dependent dropdowns not displaying the old record

I am trying to get a dependent dropdown to display correctly for my article type categories. This set up current displays the correct child category for the chosen parent category, and saves a record in the database, but when I refresh, that record is not populated, and updating creates a new record instead of updating the existing category. An article can only have one categor

jcc5018's avatar
jcc5018's avatar jcc50181yr agoFilament
2
2
Last reply by jcc5018 1yr ago
Dave Wize's avatar

Nova clears dependent dropdowns on replicate!

I'm using laravel nova in a project and if I do a dependent field on a dropdown and then doing a replicate and I change the value of the fields that the others depemnds on it is being cleared on the replicated record BelongsTo::make('Title', 'brideFatherTitleFront', Title::class) ->relatableQueryUsing(function (NovaRequest $request, Builder $query) {

Dave Wize's avatar
Dave Wize's avatar Dave Wize1yr agoNova
1
3
Last reply by Dave Wize 1yr ago
jcc5018's avatar

Can't get dependent dropdowns to save related data in Filament

I have tried a few AI tools and have gone through multiple trials trying to make this work, but I am having difficulties. I have an article model in which I want to attach a category. Seems simple enough. But The Categories have a parent/ Child relation in which the Parent is the first SELECT, and the Child is the second SELECT that gets stored in my taggables table: I can get

jcc5018's avatar
jcc5018's avatar jcc50181yr agoFilament
3
3
Last reply by jcc5018 1yr ago
naqibullah's avatar

How to implement dependent dropdowns in livewire in a popup Modal

I am working on a project where I need Provinces and Districts of that specific province, everything works fine but when I want to use this form inside a Modal the district dropdown which is dependent on the province dropdown is not updating by livewire updatedFoo hook. public function updatedProvince ($value) { $this->districts = District::where('province_id', $value)-&

naqibullah's avatar
naqibullah's avatar jlrdw4yrs agoLivewire
1
3
Last reply by jlrdw 4yrs ago
firstplanb's avatar

Dependent Dropdowns, Options Not Returned

Hello! I'm trying to create multi-level dependent dropdowns using this plugin: https://github.com/kartik-v/dependent-dropdown but the options for the second selection are not showing up. Here is my code: The View <div class="form-group col-md-4"> <label for="country_name">Country</label> <select class="form-control" nam

firstplanb's avatar
firstplanb's avatar Snapey9yrs agoLaravel
5
6
Last reply by Snapey 9yrs ago
DarkSpirit's avatar

Three Dependent DropDowns

I found many tutorials about two dependent dropdowns, but I couldn't find any tutorials about three dependent dropdowns. Is it possible to create three dependent dropdowns on Laravel 5.2? I need three dependent dropdowns for country, states and areas. Thanks.

DarkSpirit's avatar
DarkSpirit's avatar DarkSpirit9yrs agoLaravel
1
4
Last reply by DarkSpirit 9yrs ago
DarkSpirit's avatar

Three Dependent Dropdowns Issue

I have a form country, state and area that looks like the following: <div class="form-group{{ $errors->has('country') ? ' has-error' : '' }}"> <label for="inputCountry" class="col-lg-2 control-label">Country*</label> <div class="col-lg-6"> <select class="form-contr

DarkSpirit's avatar
DarkSpirit's avatar DarkSpirit9yrs agoLaravel
1
4
Last reply by DarkSpirit 9yrs ago
Brammah's avatar

Dynamic Dependent Dropdown: Livewire

Hi Laracasts Community, I need some help. I have never used dependent dropdowns but I am open to learning. I have a form with different departments that are selected by a normal select input. When I select let's say, the accounts department on the select, another input (multi-select to be precise) should appear and list all members who belong to that department so that I may sh

Brammah's avatar
Brammah's avatar Brammah3yrs agoLivewire
11
2
Last reply by Brammah 3yrs ago
maaz's avatar

Dynamic Dependent dropdown error

Hey everyone, i have a list of countries and states, when someone click on a country it will show the related states of that country. here is my code route Route::get('/getStates/{id}', 'StateController@getStates')->name('getStates'); StateController.php public function getStates($id) { $states = State::where('country_id', $id)->pluck('name', 'id');

maaz's avatar
maaz's avatar maaz5yrs agoLaravel
0
1
Jdubstep1357's avatar

Combing models into a query

I am trying to combine models into a single query. I made a dependent dropdown upon click shows other tables. However, for whatever reason, after the page displays the other table, the only data being displayed is whatever data is inside the current model. Here is what everything looks like BEFORE anything is pressed: https://imgur.com/WO1aVyc Here is my first backend query: ht

Jdubstep1357's avatar
Jdubstep1357's avatar Jdubstep13...2yrs agoLivewire
22
1
Last reply by Jdubstep1357 2yrs ago
noblemfd's avatar

Laravel Search filters not working as expected

I have this code for search filter: Model class AppraisalRespondent extends Model { protected $table = 'appraisal_respondents'; protected $fillable = [ 'id', 'appraisal_identity_id', 'department_id', 'employee_id', 'is_status', ]; protected $casts = []; p

noblemfd's avatar
noblemfd's avatar noblemfd5yrs agoLaravel
6
7
Last reply by noblemfd 5yrs ago
AShishWeb's avatar

How to pass dropdown selected value to another page's dropdown in laravel

I want to pass 3 values (2 dropdown's and 1 input field) from one page to another.User will select 2 dependent dropdowns after clicking on the button user will redirect to another page where he will ask to fill-up a form wherein above 3 details will be auto-filled. The input field's data is passing to another page but the 2 dropdown's value are not passing. Controller public fu

AShishWeb's avatar
AShishWeb's avatar AbdulBazit...7yrs agoLaravel
6
7
Last reply by AbdulBazith 7yrs ago
mihirpatel83's avatar

Dependent Dropdown After Validation

Hello, I have a parent dropdown and when parent is selected, I populate 3 child dropdown using ajax. Now those child dropdown are also required fields. But before i select them and i validate the form, the child dropdown are populating blank. So how can i get the old value of parent dropdown in Controller action so that I can populate those dependent child dropdowns after valid

mihirpatel83's avatar
mihirpatel83's avatar manojow7yrs agoLaravel
5
2
Last reply by manojow 7yrs ago
saadaan's avatar

Dynamic dropdown error in EDIT mode

Hi, I am using multiple dynamic dropdown from this example: http://itsolutionstuff.com/post/how-to-make-simple-dependent-dropdown-using-jquery-ajax-in-laravel-5example.html I have 3 dropdowns in total, dependent on each other. It works good for the new user creation, with dropdown's link to each other working fine. But it does not work with the EDIT mode, the 2nd and 3rd fields

saadaan's avatar
saadaan's avatar saadaan8yrs agoLaravel
0
2
Aamir_ctn's avatar

How to clear Bootstrap table data before updating view - laravel livewire

There are two dropdowns and one is dependent on other. All things are working well but after changing the value of first dropdown, i want to clear the bootstrap table data and then after changing the value of dependent dropdown, load new data.

Aamir_ctn's avatar
Aamir_ctn's avatar webrobert4yrs agoLivewire
1
4
Last reply by webrobert 4yrs ago
Ugo4brain's avatar

How to hide and show another dropdown based on previous selection vue

Hello all, I have a blade view that I wish to use vue js in. This view consists of two dropdowns where the state of the second is dependent on the first. here is my code sample <script src="https://vuejs.org/js/vue.js"></script> <div class='form-group'> <label for="user_type" class="col-sm-2 control-label">

Ugo4brain's avatar
Ugo4brain's avatar kossa8yrs agoVue
1
4
Last reply by kossa 8yrs ago
lemonotype's avatar

Livewire 4-level dependent dropdown not working reliably.

Hello, I'm very new to it all and am trying to set up a four level dependent dropdown. I followed a tutorial for a three level dropdown and also checked the code in every other tutorial I found on these dropdowns (few and far between) but they all looked roughly the same. I have two main issues: When using orderBy('name') on get() query, it works fine the first time around but

lemonotype's avatar
lemonotype's avatar lemonotype2yrs agoLivewire
3
2
Last reply by lemonotype 2yrs ago
Armani's avatar

Dependent dropdown in continuous form

Hello there I know how to create dependent dropdown using Laravel and Vuejs but my project has a page that is like parent-child form. It is like this, first dropdown is Product and the second one is Brand. For example in Product we have Tire and Battery, and in Brand we have brands of Tire or Battery. So user can add as many rows as he wants in child form therefore when user se

Armani's avatar
Armani's avatar Armani5yrs agoLaravel
2
2
Last reply by Armani 5yrs ago
khore_64's avatar

I have 2 dependent selector and i want change selected dropdown 2 when i change dropdown 1

I have two dropdowns, both of which have 2 values, the first of which shows the value of 1 by default, and the second of which shows the value of 2. I want when the first dropdown is changed and for example the second value is selected, the second dropdown is changed and the value 1 is selected. Both dropdowns display values from the database

khore_64's avatar
khore_64's avatar khore_642yrs agoLaravel
8
8
Last reply by khore_64 2yrs ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.