Hi!
I'm developing a custom CMS for my client and he needs to select a CITY filtered by a COUNTRY.
i have:
class Country extends DataObject
{
static $has_many = array(
'cities' => 'City'
);
}
class City extends DataObject
{
static $has_one = array(
'country' => 'Country '
);
}
I'd like to have two separate dropdown fields (or something similar) and be able to dynamically filter the cities.
i've heard of 'FilteredDropdownSet' but it looks deprecated now (i'm using SS 3.4).
How can i do that? I really can't figure out
Thanks in advance