Closed (fixed)
Project:
Webform
Version:
5.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2008 at 14:22 UTC
Updated:
4 Apr 2008 at 21:32 UTC
When I change the text of the "submit" button in webform.module ('#value' => t('Submit'), lines 1224 & 1241) the text changes but the webform doesn't work anymore. I reported this already before I found out that it had to do with this change. What happens after changing the text (and after submitting a webform) is the following:
To sum it up: Nothing happens except a reload of the page.
Comments
Comment #1
quicksketchLet's consolidate this issue into your feature request for the same thing: http://drupal.org/node/213724.
Comment #2
yan commentedActually it's two things:
1) The module breaks when I change the text from "Submit" to "Send" in webform.module (bug)
2) It'd like to have the opportunity to change the submit button text without working in the code (feature request)
Am I wrong?
Comment #3
yan commentedI re-open this since I think the bug is a separated issue from the feature request. Although the feature request is about this, it should be possible to change the text manually without breaking the module.
Comment #4
quicksketchOkay, it's fine that it fits in two separate categories. The solution will fix both problems so let's keep it in one place.
Changing the name of buttons is something that is not usually supported in situations where there are multiple buttons on the page. For example, you can't change the name of the word "Preview" on the node form through a form_alter(), because until Drupal 6, the name of the button is the same thing as the submitted value. Similar problems exist for "Delete" on node, user, or taxonomy forms, the "Vote" button in poll, "Preview" in comments, or dozens of other places in contributed modules. It's currently the way that Drupal 5 works.
The only easy way to get around it is to make the button text a setting and then retrieve it in every place where we check $_POST['op']. In Drupal 6 we'll be spared this trouble by the new $form_state['clicked_button'] variable.
Comment #5
quicksketchThis feature was added to the 2.x version of the module. Under "Webform advanced settings" you can now set a button title to submit the form.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.