By shanavas on
i created a form with the following element . but i need to redirect to another page while clicking on the cancel button ..? is anybody know how to do this..................!
$form['message']['cancel'] = array(
'#type' => 'button',
'#value' => t('Cancel'),
'#weight' => 3
);
Comments
http://api.drupal.org/api/fil
http://api.drupal.org/api/file/developer/topics/forms_api_reference.html...
assign an #attributes JS event (onClick='') to call the desired page maybe? Just a suggestion for a starting point. Off the cuff.