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

Randy_91's avatar

Cascading dropdown not updating sub-dropdown

I am building search filtering for my site and I am trying to use livewire to build the search component. The search component has a few filters and one of them is a categories dropdown with a subcategories dropdown below it. When a top-level category is selected it should update the subcategories dropdown with the sub-categories of the top-level category. This should happen dy

Randy_91's avatar
Randy_91's avatar Randy_914yrs agoLivewire
4
1
Last reply by Randy_91 4yrs ago
Troj's avatar

Dynamic Cascading Dropdown with Livewire

I'm trying to implement Snapey's dynamic cascading dropdown with livewire, but my table relations are not like the one in his example. So there is no direct relation between my categories table and the cities table. But they both have a relation with my posts table. categories table ID, NAME cities table ID, NAME posts table ID, NAME, category_id, city_id The first selection

Troj's avatar
Troj's avatar Troj5yrs agoLaravel
11
2
Last reply by Troj 5yrs ago
laranewbie's avatar

Cascading dropdown issue

Hello i followed this livewire tutorial - https://talltips.novate.co.uk/livewire/dynamic-cascading-dropdown-with-livewire however it only displays the first dropdown how can i display the second select thanks

laranewbie's avatar
laranewbie's avatar ideepesh5yrs agoLivewire
1
1
Last reply by ideepesh 5yrs ago
Antonella's avatar

Livewire:Search with Dynamic Cascading Dropdown -> Undefined variable: event

I have a problem with Dynamic Cascading Dropdown with Livewire. I'm basically creating a table that is filtered based on two parameters: Component: <?php namespace App\Http\Livewire; use Livewire\Component; use App\Models\Task; class Search extends Component { public $poll; public $type_poll; public $type_polls; public $tasks; public $polls; pub

Antonella's avatar
Antonella's avatar Snapey5yrs agoLivewire
9
1
Last reply by Snapey 5yrs ago
nikhil_lu210's avatar

How To Make Dependent / Cascading Dropdown in Laravel...?

I Need a Cascading Dropdown for my admin panel, where the dropdown values come from database. [[ example: https://prnt.sc/lccqc4 ]] I need to be work like this: https://prnt.sc/lccq7o When I select Route no, the values of other dropdown will show related pickpoint names of that selected route. This is my ajax code I have written in php file (app-admin.blade.php): $(document).r

nikhil_lu210's avatar
nikhil_lu210's avatar jlrdw7yrs agoLaravel
2
1
Last reply by jlrdw 7yrs ago
nikhil_lu210's avatar

Dependent / Cascading Dropdown for multiple ( Model, Migration-Table & Controller)

I have two migration table in a database named "2018_09_26_152831_create_all_drivers_table" & "2018_09_26_141623_create_all_routes_table". There are different model ( "AllDriver.php" & "AllRoute.php") and controller ( "AllDriverController.php" & "AllRouteController.php" ) for these two different table. Ther

nikhil_lu210's avatar
nikhil_lu210's avatar Cronix7yrs agoLaravel
2
5
Last reply by Cronix 7yrs ago
mousumi_mou's avatar

Dependent / Cascading Dropdown for multiple ( model,table,controller)

I have two migration table in a database named "2018_09_26_152831_create_all_drivers_table" & "2018_09_26_141623_create_all_routes_table". There are different model ( "AllDriver.php" & "AllRoute.php") and controller ( "AllDriverController.php" & "AllRouteController.php" ) for these two different table. Ther

mousumi_mou's avatar
mousumi_mou's avatar Cronix7yrs agoLaravel
6
8
Last reply by Cronix 7yrs ago
SeroS's avatar

Cascading Dropdown list

Hello, i have 2 tables one called "proveedores" and another one called "clientes"; both tables have the same field called "nombre". I want to populate the second dropdown list with all the ítem on the field "nombre" of the database that the user choose on the first dropdownlist, can you help me, cause i'm new at this and i know that i hav

SeroS's avatar
SeroS's avatar Swaz9yrs agoGeneral
3
1
Last reply by Swaz 9yrs ago
s2010's avatar

Laravel 5.2 3 level cascading dropdown list

I am trying to do a 3 levels dynamic or dependent dropdown list. i managed to fix the first two and they work just fine but the third one still not working . my Route: Route::get('api/branch-dropdown', 'ApiController@branchDropDownData'); Route::get('api/asset-dropdown', 'ApiController@assetDropDownData'); Controller to retrieve data: class ApiController extends Controller

s2010's avatar
s2010's avatar s20109yrs agoLaravel
0
2
joyjas77's avatar

Cascading DropDown Boxes

Hi I'm a relative newb to Laravel, I've had a bit of a search and can't seem to find much on them, specifically for Laravel. I want to use Cascading Drop downs to narrow down a search on an address. I have suburb, street_type, and street_name in that order that i would like to use. Ie I select a suburb then the application pulls the street_types for the suburb from the data

joyjas77's avatar
joyjas77's avatar edison11yrs agoGeneral
8
1
Last reply by edison 11yrs ago
paul_hub's avatar

Sample Vue Select Cascading Dropdown value

i want to be able to upload the value of my select input to the database thank you in advance Select Categories {{ option.text }} </div> <div class="mb-4"> <select class="border-2 py-2 px-6 w-80 md:w-full rounded focus:outline-none focus:border-sky-500 focus

paul_hub's avatar
paul_hub's avatar Aung Htet...3yrs agoVue
1
1
Last reply by Aung Htet Paing__ 3yrs ago
Mrxqwe's avatar

Dynamic Cascading Dropdown with Livewire

Hi, issue is that the second select box in never shown. I tried both tutorials talltips.novate.co.uk/livewire/dynamic-cascading-dropdown-with-livewire and this one canbayat.com.tr/post/laravel-dynamic-dependent-dropdown-livewire but none of them showed me the second select box. $projects always stays NULL. I cannot find my error. Maybe you can help. Here is my code with some d

Mrxqwe's avatar
Mrxqwe's avatar Mrxqwe4yrs agoLivewire
26
1
Last reply by Mrxqwe 4yrs ago
noblemfd's avatar

Cascading dropdown not working as expected in Edit modal form

I have two models in my Project class AppraisalRespondent extends Model { protected $table = 'appraisal_respondents'; protected $fillable = [ 'id', 'respondent_id', 'department_id', ]; protected $casts = []; public function employeerespondent() { return $this->belongsTo('App\M

noblemfd's avatar
noblemfd's avatar noblemfd5yrs agoLaravel
0
1
joneyspark's avatar

Add/Delete dynamic row using Livewire with dependent dropdown

Hi, I'm using Livewire to build a Dependent cascading Dropdown with dynamic new row and delete row. I'm now able to add new row but I'm asking how I can get the Dropdown selected individual item list. When I select the first Dropdown it changes all the values the same as selected in livewire. https://i.stack.imgur.com/lsRaQ.png /project/resources/views/livewire/device-sale.blad

joneyspark's avatar
joneyspark's avatar joneyspark3yrs agoLivewire
0
1
mousumi_mou's avatar

Laravel Dependent Dropdown with Ajax

I Need a Cascading Dropdown for my admin panel, where the dropdown values come from database. [[ example: https://prnt.sc/lccqc4 ]] I need to be work like this: https://prnt.sc/lccq7o When I select Route no, the values of other dropdown will show related pickpoint names of that selected route. This is my ajax code I have written in php file (app-admin.blade.php): $(document).r

mousumi_mou's avatar
mousumi_mou's avatar mousumi_mo...7yrs agoLaravel
4
2
Last reply by mousumi_mou 7yrs ago
mousumi_mou's avatar

Dependent Dropdown Using Laravel / Ajax

I Need a Cascading Dropdown for my admin panel, where the dropdown values come from database. [[ example: https://prnt.sc/lccqc4 ]] I need to be work like this: https://prnt.sc/lccq7o When I select Route no, the values of other dropdown will show related pickpoint names of that selected route. This is my ajax code I have written in php file (layout.admin.blade.php): <script&

mousumi_mou's avatar
mousumi_mou's avatar jlrdw7yrs agoLaravel
1
4
Last reply by jlrdw 7yrs ago
Javed71's avatar

php - Laravel 5.2 cascaded dropdown value not appearing using Ajax

I am building a laravel application where there is a situation of cascading dropdown where user will select a department from list of departments.So when a user select a department teacher will be loaded on that particular data. I have written all the code. But the problem is after selecting department, instead of loading teacher data, it's showing 'Ok' as it fails. I don't kno

Javed71's avatar
Javed71's avatar UNITED9yrs agoLaravel
5
1
Last reply by UNITED 9yrs ago
gzai's avatar

get array property update in javascript

hello, I have dynamic cascading dropdown list using select2. class CitiesLivewire extends Component { public $countries; public $states; public $country; public $state; public function mount() { $this->countries = MsCountries::get(); $this->states = collect(); } public function updatedCountry() { if ( $this-&g

gzai's avatar
gzai's avatar gzai4yrs agoLivewire
0
1
crazyprogrammer's avatar

How to show in dropdown by cascading in laravel 5.6?

I have saved submenu according to menu in addsubmenu.blade.php. Now while adding new page, I want to show all the menu in 1st dropdown and submenu in 2nd dropdown according to the selected menu in 1st dropdown. I couldn't found the solution. I need help to solve this problem...

crazyprogrammer's avatar
crazyprogrammer's avatar crazyprogr...7yrs agoGuides
0
1
crazytoon's avatar

Cascading dropdowns with ability to add more

I am working on a project which requires two dropdowns (second one based on what first one has picked). I got the two dropdowns working as expected but now i have couple more issues which I can't seem to figure out. How do i add more of them to allow users to add additional set(s) as many as needed? How do I remove such set(s)? I have set it up in jsfiddle to show code i

crazytoon's avatar
crazytoon's avatar crazytoon8yrs agoVue
2
1
Last reply by crazytoon 8yrs ago
Snapey's avatar

Livewire v3 update hook when using arrays

I'm trying to watch for a field changing in a livewire component so that some manipulation of another select can occur depending on the first value selected (cascading dropdowns). But the form has multiple rows and so wire:model looks like $guests.$key.ticketType When the guests array is first used it is empty. I look for updates to the field, but because it is part of an array

Snapey's avatar
Snapey's avatar brunopinca...2yrs agoLivewire
2
5
Last reply by brunopincaro 2yrs ago
Vusumzi's avatar

How to display Grades in a dropdown and related subjects in checkboxes?

Hi all... I have eager loaded all the grades with the subjects from the database. I want to display it in a cascading select box with checkboxes below... I want it when a user selects a Grade from the dropdown menu, a group of subjects related to that Grade should be displayed below dynamically... My Controller Method public function create() { $grades = Gra

Vusumzi's avatar
Vusumzi's avatar Vusumzi5yrs agoLaravel
2
1
Last reply by Vusumzi 5yrs 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.