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.
Hi!
I'm using this great module to sort and remove unused taxonomy terms within a variety of categories from a list of different travels to a specific country.
It works very well on my exposed filter, but I don't seem to be able to change the default option from All to a specific category in my view? Normally this is easy with exposed filters, but with Selective filter the option for the default value isn't there?
Any solution to this problem? I'd be happy to accept some custom code / hook to implement, but maybe I just can't find this option in the Views interface?
Regards,
Mattias
Comments
Comment #1
mattiasdk CreditAttribution: mattiasdk commentedComment #2
leofishman CreditAttribution: leofishman commentedHi,
I need the same funcionality, could you find a way to set a default value?
thanks
Comment #3
david_garcia CreditAttribution: david_garcia commentedComment #4
tko CreditAttribution: tko commentedhook_form_alter
with$form['FIELD']['#default_value']
sadly has has no effect. Is there a way to force the default value?Comment #5
proweb.ua CreditAttribution: proweb.ua commentedsame problem
Comment #6
proweb.ua CreditAttribution: proweb.ua commentedComment #7
markusd1984 CreditAttribution: markusd1984 commentedthanks @proweb.ua worked a treat.
This would be nice to have a setting in the views filter with a drop-down or check box to select the default value.