Forums

Copy (duplicate) elements on form using Wizard?

bmheck 24 Jun, 2013
Is there any way to copy (duplicate) form elements within a form (or, for that matter, across forms) when using the Wizard?

For example, we have a form in which users must enter two addresses. Naturally the addresses have exactly the same elements (street address, city, state, etc.). So it would be nice to build the needed elements for the first address, then just copy them all for the second address. Of course, we then have to reconfigure the elements in the second address with different names and such, but this still seems easier than starting from scratch.

I could use custom HTML or something like that, I guess, but that kills the possibility of using a bunch of neat built-in ChronoForms features.

Edit: and a related question: is it possible to move an existing element into a container? That is, there is an element already defined outside a container, either outside all containers or in Container A. Can I move that element into Container B? Just dragging does not seem to do it.

Have looked around on the tutorials, FAQs, and here but have not found answers, whether possible and if so how. Sorry if they are old questions; if so, just point me to the right source.

Thanks!
GreyHead 25 Jun, 2013
Hi bmheck,

At present the answer is No and No :-( Max might add this in some future version but I wouldn't hold your breath.

You could possibly do it by editing the form record in the database table but that's probably more trouble than it's worth.

One workaround would be to copy the code from one address block out of the Form Code box and put an edited version into a Custom Code action (all of the ChronoForms functionality will still work).

Bob
bmheck 25 Jun, 2013
Thanks, Bob. I see what you are saying about the workaround and will give that a try. Thanks!
schip 28 Jan, 2014
Hi, actually, adding an element is fairly simple.

In the wizard, right click on the element (in chrome) to open the code-inspector. (firebug for Firefox). The last hidden field named "container_id" is the one you want to change. Change the number to the ID of the container you want it to be in. Save your form and the assignment will be shown.

I didn't find a solution for the copying part though - unfortunately.
This topic is locked and no more replies can be posted.