title: Drupal Views2 Exposed Form how to change
body: <p>I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible then I would like to have the button text something different than apply.</p>
  
  <p>I hacked it for now and change views_form in views.module but that does not seem like the right way to do it. I only have one exposed form right now, but what if I add more?</p>
  
  <p>Please see <a href="http://www.wiredvillage.ca/News" rel="nofollow noreferrer">http://www.wiredvillage.ca/News</a> for my example.</p>
  
  <p>I am poking around drupal.org and seeing others with the same problem but no solutions so far. Not sure where the best place to get Drupal help is.</p>
  
  <p>Here is the change I made so far:</p>
  
  <pre><code>function views_exposed_form(&amp;$form_state) {
    // Make sure that we validate because this form might be submitted
    // multiple times per page.
    $form_state['must_validate'] = TRUE;
    $view = &amp;$form_state['view'];
    $display = &amp;$form_state['display'];
    $form_state['input'] = $view-&gt;get_exposed_input();
    // Let form plugins know this is for exposed widgets.
    $form_state['exposed'] = TRUE;
    $form['#info'] = array();
    if (!variable_get('clean_url', FALSE)) {
      $form['q'] = array(
        '#type' =&gt; 'hidden',
        '#value' =&gt; $view-&gt;get_url(),
      );
    }
    // Go through each filter and let it generate its info.
    foreach ($view-&gt;filter as $id =&gt; $filter) {
      $view-&gt;filter[$id]-&gt;exposed_form($form, $form_state);
      if ($info = $view-&gt;filter[$id]-&gt;exposed_info()) {
        $form['#info']['filter-' . $id] = $info;
      }
    }
  
    // I CHANGED The VALUE OF THIS SUBMIT BUTTON TO GO
  
  
    $form['submit'] = array(
      '#name' =&gt; '', // prevent from showing up in $_GET.
      '#type' =&gt; 'submit',
      '#value' =&gt; t('go'),
    );
    $form['#action'] = url($view-&gt;get_url());
    $form['#theme'] = views_theme_functions('views_exposed_form', $view, $display);
    $form['#id'] = views_css_safe('views_exposed_form-' . check_plain($view-&gt;name) . '-' . check_plain($display-&gt;id));
  //  $form['#attributes']['class'] = array('views-exposed-form');
    // If using AJAX, we need the form plugin.
    if ($view-&gt;use_ajax) {
      drupal_add_js('misc/jquery.form.js');
    }
    views_add_js('dependent');
    return $form;
  }
  </code></pre>