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 (Moderator: Donald Lobo) »
  • CiviCRM Integrated Webform Export
Pages: [1]

Author Topic: CiviCRM Integrated Webform Export  (Read 893 times)

Guanhuan

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
CiviCRM Integrated Webform Export
July 24, 2014, 03:37:57 am
Hi guys. Is there any way to export and import a CiviCRM integrated webform? I tried “node export” and “webform share” and they seems cannot bring back the CiviCRM fields properly.

I am using
Drupal 7.26
CiviCRM 4.4.4
Webform 7.x-4.0-rc1
Webform CiviCRM Integration 7.x-4.5

Many thanks!

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: CiviCRM Integrated Webform Export
July 24, 2014, 03:40:47 am
i thought i had some luck with node export - but i still had to go through and say eg 3 x contacts and 2 x email fields, but once i did that i found that many of the settings were still there and implemented fine

but guessing it hasn't been like that for you? or did you not try those extra steps
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

Guanhuan

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
Re: CiviCRM Integrated Webform Export
July 24, 2014, 03:50:30 am
Quote from: petednz on July 24, 2014, 03:40:47 am
i thought i had some luck with node export - but i still had to go through and say eg 3 x contacts and 2 x email fields, but once i did that i found that many of the settings were still there and implemented fine

but guessing it hasn't been like that for you? or did you not try those extra steps

When I use webform_share to import the webform, I enabled CiviCRM on that webform and deleted the default contact fieldset that CiviCRM created before the import. Some of the fields seems working such as the "Contact 1" filedset, "Exist Contact" and the rest of the contacts and some memberships and relationships went missing.

Brylie Christopher Oxley

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.x
Re: CiviCRM Integrated Webform Export
July 24, 2014, 03:55:05 am
You might also consider the Migrate Webform module. I am not sure if it will work, but just found it while researching this question.
https://www.drupal.org/project/migrate_webform
Brylie Oxley
http://brylie.gnumedia.org

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: CiviCRM Integrated Webform Export
July 24, 2014, 03:59:04 am
look forward to the report on how it works. not tried it. but then never wanted to also shift submissions etc - but of course that doesn't stop it being useful
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

Brylie Christopher Oxley

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.x
Re: CiviCRM Integrated Webform Export
July 24, 2014, 04:02:06 am
Looking further into this issue, it seems like part of the difficulty is that Webforms are implemented as nodes(source). This means they have a specific Node ID, which can cause conflicts between deployments.

There is a module, currently with support for Webform 3, that aims to mitigate the Node ID conflict issue while integrating with Features module:
https://www.drupal.org/project/webform_features

I have filed a feature request for webform_features to support Webform 4.x, as it is a dependency for Webform CiviCRM.
https://www.drupal.org/node/2308965
« Last Edit: July 24, 2014, 04:16:30 am by Brylie Christopher Oxley »
Brylie Oxley
http://brylie.gnumedia.org

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: CiviCRM Integrated Webform Export
July 24, 2014, 06:40:54 am
I spent a bit of time working on this a few months back and was able to get webform-civicrm to play nicely with both node_clone and node_export. I haven't tried any others but I can vouch for those two working with the both the 3.x and 4.x versions of webform-civicrm.
See https://www.drupal.org/node/2111713
Try asking your question on the new CiviCRM help site.

Guanhuan

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
Re: CiviCRM Integrated Webform Export
July 24, 2014, 08:02:58 am
Quote from: Coleman Watts on July 24, 2014, 06:40:54 am
I spent a bit of time working on this a few months back and was able to get webform-civicrm to play nicely with both node_clone and node_export. I haven't tried any others but I can vouch for those two working with the both the 3.x and 4.x versions of webform-civicrm.
See https://www.drupal.org/node/2111713
Thanks Coleman. I just realise that node_export is quite compatible with it.
I tried using node_export to export and import the webforms to some other sites and they all work fine. CiviCRM on that webform is automatically enabled. All the Civi fields are brought back right even custom fields if there are custom fields that match the keys on the sites.

Quote from: petednz on July 24, 2014, 03:40:47 am
i thought i had some luck with node export - but i still had to go through and say eg 3 x contacts and 2 x email fields, but once i did that i found that many of the settings were still there and implemented fine

but guessing it hasn't been like that for you? or did you not try those extra steps

It is different situation on another site which has exactly same version of modules and CiviCRM. After import, none of Civi fields are there  and CiviCRM is not enabled on that webform.

Then I tried what petednz said and it acually works for this site. I manually enabled CiviCRM on the form and selected the same number of contacts, and then, most of the setups are back automatically even though the contact types and labels need to be set before these happen.

I don't know exactly why the scenario vary on the different sites but guess this is not too bad. :)

Thanks for helping me out, guys!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM Integrated Webform Export

This forum was archived on 2017-11-26.