This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

adis.osmonov
adis.osmonov

For example, I have models Country, State, City and User.

Structure of this models:

Country
-- id
-- name
State
-- id 
-- name
-- country_id
City
-- id
-- name
-- state_id

User
-- id
-- name
-- city_id

screen
So in user creating form I need to filter city field by choosing first country, then state and etc.

http://www.appelsiini.net/projects/chained - something like that

Last updated

daftspunky
daftspunky

It's an interesting idea, we have a similar implementation in the User plugin where Country and State and chained, but it involves custom code.

gfactor
gfactor

Hi, I'm trying to build a plugin with a component that one could just drop any where within the app, but am getting this error "The component 'Gfactor\Csc\Components\Csc' does not contain a method 'getAfterFilters'." Am not familiar with this error & I've not found any leads on how to solve this error.

I loaded the country successfully in the dropdown and am using JQuery onChange to call the Route which i set in routes.php inside the plugin folder.

Cpt.Meatball
Cpt.Meatball

@daftspunk: Looking at the User plugin (country / state filtering) you might want to consider updating the docs. As this: forms#form-field-options doesn't work (anymore?).

Just wasted 2 hours trying to filter a sodding dropdown. :(

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.