Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Summit CreditAttribution: Summit commentedCould the clone_node module help you?
I didn't test it, but it is forth to try, right?
Greetings,
Martijn
Comment #2
PWG CreditAttribution: PWG commentedThanks, but that's what I meant with the "clone module" (aka clone_node). :)
Petter
Comment #3
Summit CreditAttribution: Summit commentedHi,
Sorry for my misunderstanding. Yes please file a patch to get this rocking!
Greetings,
Martijn
Comment #4
quicksketchThe 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.
Comment #5
PWG CreditAttribution: PWG commentedYou 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
Comment #6
quicksketchI 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.
Comment #7
doublejosh CreditAttribution: doublejosh commentedThe Node Clone module seems to work fine with Webforms for my installation of Drupal 5.5
http://drupal.org/project/node_clone
Comment #8
PWG CreditAttribution: PWG commented*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
Comment #9
quicksketchAh 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.
Comment #10
PWG CreditAttribution: PWG commentedInstalled node clone module 5.x-1.1 and...webform cloning including form components works like a charm. Brilliant. Thanks!
Petter
Comment #11
quicksketchI 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.
Comment #12
ctmiller CreditAttribution: ctmiller commentedI 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 .
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.