title: How can I set the default value based on the submitted values?
body: <p>The purpose of the page is to show a list of jobs. The form at the top lets you filter the results. Once the form is submitted I want to show the form again as well as the values that were put in. How would I go about this in drupal. The form code is below.</p>
  
  <pre><code>function ac_resume_job_list_form($form, &amp;$form_state)
  {
  
    $form['display_options'] = array(
      '#type' =&gt; 'fieldset',
      '#title' =&gt; 'Display Options',
      '#attributes' =&gt; array("style" =&gt; "width:250px"),
    );
  
    $form['display_options']['limit'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; 'Limit',
      '#size' =&gt; 2,
      '#default_value' =&gt; 'the value of the submitted form',
    );
  
    $form['display_options']['submit'] = array(
      '#type' =&gt; 'submit',
      '#value' =&gt; 'Change Display',
    );
  
  
    return $form;
  }
  </code></pre>