Lots of times one webform is based on another. Sometimes only the target or an individual field might change.
Since it usually takes some time to configure a webform (esp if it has lots of fields), it would be great to be able to dup / clone it for reuse. Especially for sites that have multiple forms. And also so that you can use one form in multiple unrelated sites.
CCK has this now with it's copy feature. Views allows you to import export.
Any chance this will happen for webform?
Any way to manually do this (outlined manual procedure)?
thanks
Comments
Comment #1
quicksketchYes, you can do this already with the node_clone module: http://drupal.org/project/node_clone
Comment #2
newdru commentedhave you actually tried that to confirm it works?
i ask because webform has about 4 extra tables specific just to it. just checking?
thanks
Comment #3
quicksketchI tried it with 4.7 and it worked fine. Haven't yet tried 5. node_clone loads the entire node, then saves it with a new node id. It should work with any node type. Of course you should be cautious and try it locally or on a copy first, but I don't think there are any problems.
Comment #4
newdru commentedi'll give it a try tommorrow.. thanks!
Comment #5
newdru commentedjust thought of one thing...
node clone only solves the problem of duping a form withIN a site (a single db).
If you want to reuse the form in a DIFFERENT site, you're out of luck.. any thoughts?
thanks
Comment #6
quicksketchYep, pretty much out of luck afaik.
You could try import/export module, which uses the same kind of method. But I'm not familiar with it's process.
Comment #7
quicksketchComment #8
deviantintegral commentedI needed to be able to do this as I was getting annoyed with having to re-create the same form on different sites. Here is a patch which allows users to export the current form and then import it back onto another site.
A few questions I ran into while doing this code:
The D5 version is reasonably tested, while the D6 version is very lightly tested ATM.
Comment #9
quicksketchThe node_export (http://drupal.org/project/node_export) module now works flawlessly with Webform, you should just use it instead. Please do not open issues that are over a few months old.
Comment #10
deviantintegral commentedOoo pretty; never see that module before. Thanks!
Comment #11
sdk commentedThe D6 patch didn't work for me. I get the following error:
warning: Invalid argument supplied for foreach() in XXX/includes/menu.inc on line 258.
I see the Import/Export tab. When i click on it the Webform Export field is empty and just says 'NULL'.
Any pointer what could be wrong?
Comment #12
deviantintegral commentedThis feature is dead; use the module linked to in #9 instead.
Comment #13
sdk commentedThe Node Clone module is for copying nodes within one installation but doesnt let you export/import them to a different install of drupal...
Comment #14
cdale commentedThe module linked too in #9 is node_export (http://drupal.org/project/node_export), not node_clone (http://drupal.org/project/node_clone). Node export will do what you want.
Comment #15
mgiffordNot to re-open this, but there's also this module - http://drupal.org/project/webform_share