Make a copy of a webform node?

tschenz - July 2, 2008 - 20:11

I have several forms that are similar to each other and I'd rather not take time to re-enter all of the fileds for each one as I create them. Is there a way to copy a webform node into a new node, or copy the contenets of the webform node into a new node?

Tim

If I understand the problem

cog.rusty - July 2, 2008 - 21:32

If I understand the problem correctly, you need one of these modules:

http://drupal.org/project/node_clone
http://drupal.org/project/node_template
http://drupal.org/project/skeleton

The last two are more versatile but only the first one has a Drupal 6 version at the moment.

Thanks for the reply.

tschenz - July 3, 2008 - 14:42

Thanks for the reply. I installed node_clone, set it up under Administer/ , ran update.php, but I get the following error (repeated many times) when I Submit the clone of a webform (woks fine with node=page):

Warning: Table 'watchdog' was not locked with LOCK TABLES query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:290:\"Duplicate entry '26-1' for key 1\nquery: INSERT INTO webform_component (nid, cid, pid, form_key, name, type, value, extra, mandatory, weight, email) VALUES (26, 1, 0, 'basic_info', 'Basic Info', 'fieldset', '', 'a:0:{}', 0, -10, 1)\";s:5:\"%file\";s:90:\"/home/timschen/public_html/ifipartnersorg/sites/all/modules/webform/webform_components.inc\";s:5:\"%line\";i:478;}', 3, '', 'http://ifipartnersorg.timschenz.com/node/26/clone', 'http://ifipartnersorg.timschenz.com/node/26/clone in /home/timschen/public_html/ifipartnersorg/includes/database.mysql.inc on line 128

When I return to the clone page (back arrow) I get (for entries 26-1 through 26-x):

user warning: Duplicate entry '26-1' for key 1 query: INSERT INTO webform_component (nid, cid, pid, form_key, name, type, value, extra, mandatory, weight, email) VALUES (26, 1, 0, 'basic_info', 'Basic Info', 'fieldset', '', 'a:0:{}', 0, -10, 1) in /home/timschen/public_html/ifipartnersorg/sites/all/modules/webform/webform_components.inc on line 478.

Any idea what I'm doing wrong?

Tim

 
 

Drupal is a registered trademark of Dries Buytaert.