Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Make a copy of a form

More
8 years 10 months ago #2417 by conte64
Make a copy of a form was created by conte64
Hi,
I'm using Visforms 3.5.7 on Joomla 3.4.8.
I have to create multilanguage version of a form containing tens of "select" fields with many options and tens of fields depending on other fields using Conditional Field.

I've been able to duplicate the form with select options but Conditional Field have not been copied.
Is there a method to duplicate a form with ALL its parameters, either using Joomla itself or database queries?

Thank you very much
Regards

More
8 years 10 months ago #2418 by Administrator AV
Replied by Administrator AV on topic Make a copy of a form
Hi,

if you want to "copy" a form with it's fields you have to use the "batch" button in the Visforms administration (form list view). Keep the option "Copy existing fields with form" checked (which is the default).

This will copy the form and all it's fields but nevertheless, the selections of conditions which you made in any conditional field in the original form will always be removed during the copying process. The reason for this is, that the condition is a reverence to a specific field id and the field with this id is in the original form and not the copy.

The batch copy process works field by fields. So there is no information about the new id of the other fields in the first place, when a field copy is made. With a noticeable amout of work It is certainly possible to improve this feature and set the references in the copied conditional field as well but at the moment this is not a feature in Visforms.

Actually I though, that using the batch copy function to copy forms would mostly be used to either create translations or to create similar forms. In both cases it is necessary to check and modify the copied form and fields anyway (in order to translate the option labels for example) and therefore it would be ok to reset the conditions.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
8 years 9 months ago #2421 by conte64
Replied by conte64 on topic Make a copy of a form
Hi,
thank you for your quick reply!

I suspected it was because Conditions were based on text instead of ID. But if they are linked to IDs (good new :-)) it should be easy to the "copy" code modify (or add) link after a row is inserted in db and its id has been returned. A bit slower but easy.

Anyway, I've understood the problem and the fact that, waiting a future release which will implement this improvement, I have to re-insert conditional fields by hand, one by one :-)

Thank you very much
Kind regards

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum