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.
By MattNorman on
Hi guys,
I am using filters for a view that i created. This view is a directory and allows people to click certain boxes to make certain results appear.
I have 3 boxes which are Any, No and Yes. Now because it's filtering to what radio boxes are ticked i can see my results but the problem is when i open my view the default box checked is No, so when you open it by default no results appear. What is want is for it to start on Any by default so that all the results appear and the filters help look through them rather than you having to find them.
Thanks.
Comments
what happens if you
what happens if you shift-click the No button? Will that un-select it?
I don't think anything should be selected by default (but don't currently have a site with radioboxes as a view filter that I can test it on)
It doesn't seem to. I've
It doesn't seem to. I've tried changing all the operators and selections but it always default selects No.
Edit your filter and in that
Edit your filter and in that select the option you want to be selected by default. This should solve your problem.
Yogesh
http://yogeshchaugule.com/blog
Hi there i don't think i can
Hi there i don't think i can get my head around what you're saying. I have tried clicking on my filter options to see if i can set a default there, but i cannot see anything. I'll link a couple images to show you what i mean.
This is the overall view with all the filters
https://www.dropbox.com/s/7e2jdnbit10hgdr/Filter%20error%201.JPG
This is in the Accessible toilets filter. This is where i get confused about what you mean.
https://www.dropbox.com/s/8oywao0zqvqwpxq/Filter%20error%202.JPG
here is the screenshot for
here is the screenshot for your reference. This screenshot is temporary and will be deleted after 3 days.
http://awesomescreenshot.com/04a1odg778
One thing to note here is this is working in page display and not in block display.
Yogesh
http://yogeshchaugule.com/blog
I've just looked at your
I've just looked at your screenshot and tried to fix it but it doesn't work. I don't know if it's something to do with the profile2 module or not.
Hi Matt,You're trying to get
Hi Matt,
You're trying to get this work in page display or block display, because in block display it is not working in my drupal site as well. The example I've shown you is from page display. And select only that option which you want to set as default option, do not check any of the checkboxes below options i.e. limit list to selected items and all
I've also mentioned earlier "One thing to note here is this is working in page display and not in block display."
Yogesh
http://yogeshchaugule.com/blog
Ha, my view is in use as a
Ha, my view is in use as a page but i can't seem to find how to fix it.