I'm having a bit of a hard time configuring a preselected exposed filter on views.
I have a View (mysite.com/view-path)
with an exposed filter as a select list with options:
Option 1
Option 2
Option 3
I want to be able to access the view with a preselected option in the exposed filter from another page (mysite.com/page)
with a link like so (mysite.com/view-path?option=1)
Right now i've made a form alter on the exposed view filter with this:
if (!empty($_GET['option'])) {
$form_state['input']['field_option_tid'] = $_GET['option'];
}
The problem is that this works, but when i try to click the select list and change the value to Option 2 for example, it will revert back to Option 1.