I'd like to customize the value of the button ("Submit") to be able to change it to something more relevant to the form (Download, Sign-up, Subscribe, Share, etc).
While I'd love to see this implemented in the functionality, for now I'd settle if someone tells me how to edit the module files to change it. I tried searching, but couldn't find it (I am not a developer, so basically didn't know what exactly to look for).
Thanks.
Comments
Comment #1
Yura Filimonov commentedI have found, where to change the button name, but it applies to the entire module (it solved my immediate demands, though).
I'd like to be able to customize button name for each of the webforms.
Thanks.
Comment #2
quicksketchUpgrade to the 2.x version of the module, there is a field for submit button label per-webform where you can simply enter in a new value when creating a webform.
This feature will not be backported to 1.x, which is now in maintenance only.
Comment #3
Yura Filimonov commentedFirst of all, thanks for listening and developing :)
Secondly, as far as I can see, 2.0 is still in development. Do you suggest to use it on the site that will go live within a month? I don't want run in any major problems, really.
I ask, because it says that we shouldn't use "in development" releases on our live sites (that I am testing now and expect to be functional and bug free).
Thanks again.
Comment #4
quicksketchI'm looking at releasing 2.0 final version within the next month. The 2.x branch is quite stable, other than a few upgrade bugs still in the Drupal 6 version. Overall though, the 2.x version will cause you less grief than 1.x, because of several architectural issues in 1.x. So yes, I'd say 2.x is a good fit for your purposes. Please help by reporting any problems you might find. Thanks!
Comment #5
Yura Filimonov commentedI updated the module (first user, copied, run update.php to update to 20), but:
1. The link to "Webforms" from the "Admin/Content" menu didn't work. I had to turn the module off and on to enable the link.
2. When I tried changing the button label, it gave me this:
user warning: Unknown column 'teaser' in 'field list' query: INSERT INTO webform (nid, confirmation, teaser, submit_text, submit_limit, submit_interval, email, email_from_name, email_from_address, email_subject, additional_validate, additional_submit) VALUES (12, '', 1, 'Get a free quote', 0, -1, '', 'default', 'default', 'default', '', '') in C:\wamp\www\includes\database.mysql.inc on line 172.
(The message is from the 2nd time of such occurrance, when I replicated the error. The first time it had the default values, such as my user#1 email [which is entered by default for registered users])
Thus, I'd say that the default email value was also changed (as seen from this error message).
When I tried to create a new webform, it gave me this:
user warning: Unknown column 'teaser' in 'field list' query: INSERT INTO webform (nid, confirmation, teaser, submit_text, submit_limit, submit_interval, email, email_from_name, email_from_address, email_subject, additional_validate, additional_submit) VALUES (26, 'Thank you for contacting us: you should receive the reply shortly.', 0, '', 0, -1, '', 'default', 'default', 'default', '', '') in C:\wamp\www\includes\database.mysql.inc on line 172.
Is there something I can do to fix it (I am not a developer), or I need to restore my database?
Thanks again.
Comment #7
quicksketchHrm. And all the updates ran successfully? It looks like your database is out of date. Did you skip any of the updates?
Comment #8
Yura Filimonov commentedYes, the update went ok, without any messages. I didn't check the error logs, since I restored the database almost immediately to continue working on the site. I guess I'll remember to check error logs the next time something like this happens.
I use the latest WampServer, currently. It has MySQL 5.0.45, PHP 5.2.5 and Apache 2.2.6.
Comment #9
quicksketchLet's open another issue for your upgrade troubles. The original feature (changing the button title) is indeed added in the 2.x version.