Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i have two jumpmenu's which filter a view:
Usecase:
1.) Jumpmenu: Country
2.) Jumpmenu: City (get's filtered by [1])
3.) some data which get filtered by [1] & [2]
When setting the value for city the jumpmenu for country doesn't get a default value. I tried to hook_form_alter the jump menu but the key's are kind of crypric. So setting #default is hard to set...
['ea0730f5662f7f655527b0ebe14c288f::/PATH/COUNTRYCODE/CITY']
It could be done with JS but i would like to know if there is another way!
Comments
Comment #1
muschpusch CreditAttribution: muschpusch commentedoeps... wrong version
Comment #2
D34dMan CreditAttribution: D34dMan commentedTry something like this,
Comment #3
muschpusch CreditAttribution: muschpusch commentedthanks! works great!