Hi all,
I am trying to change the text on the submit button of a specific webform. Changing the text on alle buttons is easy, by modifying th module a bit, but how to do it for one specific form?
This posts have a few pointers for changing the button to an image: http://drupal.org/node/62647
This one looks promising, describes how to theme your webform: http://drupal.org/node/79086 But this returns a blank page for me when I implement it in Drupal 4.7.x. Somehow the function is not called properly, or, when you modify part of the form, it loses the rest of the content?
If anyone can give me pointers as to how it would be possible to modify the text of the submit button in just on specific webform... you'd make my day :)
Thank you,
Harro
Example of what I tried to use in my template.php in my theme folder:
function phptemplate_webform_form_23 ($form) {
$form = _phptemplate_callback('webform_form_23', array('form' => $form));
// I tried the two methods below, (not at the same time) but both returned a blanc schreen.
// option #1:
$form['field']['submit'] = array ( '#type' => 'submit', '#value' => t("my text"), '#weight' => 23, );
//option #2:
$form['submitbutton'] = array('#type' => 'submit','#value' => t('my text'),'#weight' => 1000, );
return _phptemplate_callback('webform_form_23', array('form' => $form));
}