greetings vitor, my field bairro_id_bai is disabled, I'm a beginner and would love your help,
follow the code
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 08 April 2018 - 06:00 AM
greetings vitor, my field bairro_id_bai is disabled, I'm a beginner and would love your help,
follow the code
Posted 08 April 2018 - 22:31 PM
field 2 inactive, someone could help
Posted 09 April 2018 - 09:06 AM
Hi Guys,
It's a great library..
I have some problem, the second select list is updated but it's still disabled..
The select option is updated accordingly, however the JQuery Chosen is still disabled and it's not populated..
I wonder if someone has similar situation
Posted 08 May 2018 - 05:25 AM
Hi, I am new to grocery crud library. For dependent dropdown, I used gc_dependent_select library. first dropdown work fine but second dropdown is disabled on page load as well as onchange firts dropdown. Please help me out
Please find the attached screenshot. URL: https://www.screencast.com/t/Xg88C9Th4byT
thanks
Posted 16 May 2018 - 06:31 AM
Hi, I'm a newbie to GC and I have managed to install it successfully. Now I'm trying to add the dependent select box with this library. I'm getting values in the country dropdown, but state and city dropdowns seem to be disabled. I think I'm having issues with including js files, please find attached files. Also, I have created the foreign key between tables country, state and city.
Pasting the controller function
***********************************************************************
***********************************************************************
Thanks in advance.
Posted 13 June 2018 - 05:43 AM
Hi Victor,
I have same problem like everyone, the first dropdown can be used, when i select one option the first dropdown the second dropdown still disabled. I am using GC 1.6 and your library version 1.5.
Please help me. Thanks.
Posted 23 January 2019 - 11:29 AM
Helllo, i'm new to Grocery Crud. I need help on this dependent dropdown library.
I have downloaded (Gc_dependent_select.php) but don't now how to use.
Please attach the database tables to your reply.
Thanks in advance
Posted 25 February 2020 - 18:16 PM
Hi all and thanks Victor for this awesome library.
I just wanted to ask if it's possible to set a default selected value in the first dropdown.
Thanks for your help!
Andrew
Posted 10 May 2020 - 20:27 PM
Hi all!
First of all I want to pay respects to [member='victor'] and of course to [member='web-johnny'], I really appreciate your work and generosity open sourcing & sharing it.
I want to report that this library works perfectly on GC v1.6.3 too (as of May 2020), and also share two tips to ease its use:
1) In my case I had to add index.php, to the url parameter, as Victor already had answered in some other post in this same thread.
"url" => base_url() .'index.php/'. __CLASS__ . '/' . __FUNCTION__ . '/',
2) I think the next question is answered as follows, as I have two different dependent dropdowns on the same CRUD (linked to the same father dropdown, but for sure it is the same solution if they are cascaded dropdowns).
Hi Victor,
I have same problem like everyone, the first dropdown can be used, when i select one option the first dropdown the second dropdown still disabled. I am using GC 1.6 and your library version 1.5.
Please help me. Thanks.
For two (or more) dependent dropdowns segment_name parameter is mandatory, so you have to give it a different name for each dropdown (it is the last parameter so pay attention to add an ending ',' on previous line):
'segment_name' =>'second_select'
Best regards,
Carlos