How can I set default value (prepopulate) for field in views exposed filter? I've tried to use solution from Can I prepopulate an exposed filter text field? but failed. Cache clearing does not help.

function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ($form_id == "views_exposed_form" &amp;&amp; $form['#id'] == "views-exposed-form-test-populate-page" ) {
    $form['title']['#default_value'] = 'test title';
    dpm($form);
  }
}
Dimetry. Since it is a drupal view you can add the default value in views itself. Please open your view and in the Filter Criteria section select the field you want to add the default value. It opens up a popup in that you can able to see "Value" field. Please give your default value there.

Please see the below picture for your reference.