1
該頁面的目的是顯示作業列表。頂部的表單可讓您過濾結果。一旦表單被提交,我想再次顯示錶單以及放入的值。我將如何在drupal中進行此操作。表單代碼如下。如何根據提交的值設置默認值?
function ac_resume_job_list_form($form, &$form_state)
{
$form['display_options'] = array(
'#type' => 'fieldset',
'#title' => 'Display Options',
'#attributes' => array("style" => "width:250px"),
);
$form['display_options']['limit'] = array(
'#type' => 'textfield',
'#title' => 'Limit',
'#size' => 2,
'#default_value' => 'the value of the submitted form',
);
$form['display_options']['submit'] = array(
'#type' => 'submit',
'#value' => 'Change Display',
);
return $form;
}
工作謝謝。 – 2012-01-27 19:37:57