I have a form on one site with about 40 fields and want to make an exact copy of that form for another website. How would I go about doing this? Thanks.

Comments

quicksketch’s picture

In theory, the node_export module should be able to handle this problem, but it seems to not be functioning with webform nodes. For inner-site copying, the node_clone module works perfectly.

haysuess’s picture

I see...This sucks. It clones the node, and when i go to import it and try to save it says "an illegal choice has been detected" 3 times. I think it is trying to use the components for the e-mail settings but I don't think they exist yet. Any idea when it'll be fixed?

quicksketch’s picture

No, I don't maintain the node_export module. I've taken extra precautions to make sure Webform works properly with node_clone module, I think that node_export just needs further work. You might also try working with the maintainer of node_clone (which is supported by the maintainer) to add in the functionality of node_export to it, as node_export is a hacked-up version of node_clone anyway.

quicksketch’s picture

Status: Active » Closed (fixed)
ErikAllen’s picture

I had previously created a HUGE webform (over 150 questions) for an online in-depth application for a client. I actually ended up doing 2 of them. So when my client said they wanted the same applications on another website I did for them... I was at a loss as to how to get the info over without having to redo them again. After doing some poking around, I found that NODE_EXPORT was probably my best bet. So I installed the module on both sites, exported the webform in question on site #1 and then imported it on site #2. After finishing it off and hitting SAVE... I was presented with this error:

"An illegal choice has been detected - please contact the site administrator"

For some reason I couldn't "save" the info without this error showing up. However, when I hit the VIEW tab, everything looked fine. I went into another browser and checked out the page without logging in. Page looks fine, but I have this error at the top of that page:

"warning: Invalid argument supplied for foreach() in /../../../../../...com/sites/all/modules/webform/webform.module on line 2626."

Now what's weird, is that I don't get the second error while logged in... only as an anonymous user.

Any thoughts as to how I can fix this? I'd REALLY like to avoid having to remake these webforms.

Erik