The clone module can clone a webform but not its components. Is there a way to clone both into a new webform?

I thought I'd ask before coding a snippet of my own. Thanks for a great module!

Petter

Comments

Summit’s picture

Could the clone_node module help you?
I didn't test it, but it is forth to try, right?

Greetings,
Martijn

PWG’s picture

Thanks, but that's what I meant with the "clone module" (aka clone_node). :)

Petter

Summit’s picture

Hi,
Sorry for my misunderstanding. Yes please file a patch to get this rocking!
Greetings,
Martijn

quicksketch’s picture

Component: Miscellaneous » Code
Category: support » bug

The clone module *should* work with 2.x (it did with 1.x I know for sure). There's no reason why it shouldn't continue to work. Marking as a bug so we can fix this at some point. Patches would be appreciated.

PWG’s picture

You mean that the clone module actually *should work* all the way with both webform AND components, and not only cloning the webform node? Interesting, then I'll have a closer look at it.

Petter

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

I tested this out today, seems like node clone still works just fine with the 2.x version. Please reopen if you've found this isn't the case.

doublejosh’s picture

The Node Clone module seems to work fine with Webforms for my installation of Drupal 5.5

http://drupal.org/project/node_clone

PWG’s picture

Status: Fixed » Active

*Scratching my head* No, I don't get it to work...

I log in as administrator, view a webform and click the clone tab. I edit the copy of the webform displayed and press submit.
I now get to see the form components tab which is empty (ie no form components in the component list) as if I had created a webform from scratch. What my question was about is if there is a way to have the webform components cloned as well in some way with the webform (preferrably in one blow). So, what could I be doing wrong?

I'm using Drupal 5.7 and clone module 5.x-2.1.

Petter

quicksketch’s picture

Ah hmm. I was using the DRUPAL-5 branch (1.x version) of clone which still works just fine. The problem is the new version of the module doesn't create a node right away, instead it takes you to the node edit form first (which doesn't contain the components). I'll see if there's something we can do on our end to save these values.

In the mean time though, you can use the 1.1 version of the module for Drupal 5. It looks like the author also plans on continuing the 1.x method in Drupal 6, so you'll be okay for a while.

PWG’s picture

Installed node clone module 5.x-1.1 and...webform cloning including form components works like a charm. Brilliant. Thanks!

Petter

quicksketch’s picture

Status: Active » Fixed

I added support for the 2.x version of node clone in Webform 2.x, so you should now be able to use either version without trouble.

ctmiller’s picture

I have tried both forms of this module as suggested above. Both seem to clone the form correctly save for th part that the fields of the form are not created in either version. Any suggestions .

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.