How to show reset button in a view only when filter is applied? I have created a view with four exposed filters. In exposed form settings, I added a reset link and used auto submit option. Filter and reset works fine without error, but I want to show the reset button only when the filter is applied. If no filter is applied, there should not be reset button. 

I have searched, but I didn't find any solution.

How can I achieve this?
hook_form_alter() can also do this

function module_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if($form_id == 'Your_form_id") {
    if (!$form_state['view']-&gt;exposed_input) {
      unset($form['reset']);
    }
  }
}


You will have some other value for ['view']->exposed_input. Use dpm(0 to get the exposed_input value. ['view']->exposed_input returns nothing if filter is not applied. Hope it works.