CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Copying Drupal Civi Webforms
Pages: [1]

Author Topic: Copying Drupal Civi Webforms  (Read 830 times)

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Copying Drupal Civi Webforms
October 31, 2014, 05:10:28 am
Hi,

We want a webform to produce a different activity if it was sent out as part of a "tracking survey" than if people sign up for the first time.

1) What is the industry gold-standard way of copying Drupal webforms? Would it be possible to use 'Features' for this? If not, does anyone have a script that we can use?

2) Is there a better way of achieving the same effect, perhaps by using aliasing of webform names? The problem there is that our webform is actually several joined together! So how could we tell it to move to a different next form depending on the url of this one?
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Copying Drupal Civi Webforms
October 31, 2014, 05:40:21 am
Not sure if this is the "gold standard", but we had good luck using Node Clone: https://www.drupal.org/project/node_clone
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Copying Drupal Civi Webforms
October 31, 2014, 05:53:06 am
I did some work on this a few months back. Previously there were some hacks in the module to support node_clone. I removed those and replaced it with very standard drupal hook implementations (node_load and node_insert) which ought to work in a variety of situations. I've tested with node_clone and node_export and both work well. I'd be interested to hear back from people who have tried other methods.
Try asking your question on the new CiviCRM help site.

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: Copying Drupal Civi Webforms
October 31, 2014, 07:08:52 am
Thank you both for responding, we'll try those soon.

J
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

SeaScoot

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.39-36.0
  • PHP version: 5.4.29
Re: Copying Drupal Civi Webforms
November 14, 2014, 11:06:54 am
Quote from: Coleman Watts on October 31, 2014, 05:53:06 am
I've tested with node_clone and node_export and both work well. I'd be interested to hear back from people who have tried other methods.

I am using node clone.  This is not an issue directly related to Webform CiviCRM Integration itself, but I think is worth mentioning.  I found that if a webform is associated with a node referencing any field collections, then use of the Field Collection Node Clone module was required to ensure collection data were not incorrectly shared.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Copying Drupal Civi Webforms
November 14, 2014, 11:14:42 am
Hey SeaScoot - do you know about our efforts to have questions/answers like this at drupal.stackexchange.com and help us all get these regular questions managed in a better way. If you don't already have one, would you set yourself up an account on Drupal StackExchange, ask/answer questions over there, and of course 'commit' to area51.stackexchange.com/proposals/77367/civicrm
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Copying Drupal Civi Webforms
December 16, 2014, 06:03:55 am
I just used Node Clone on a webform and it worked just fine  ;)
Andy Clark

naomisl

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.32
Re: Copying Drupal Civi Webforms
December 19, 2014, 11:06:35 am
I also use node clone, and it works perfectly.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Copying Drupal Civi Webforms

This forum was archived on 2017-11-26.