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?

conditional logic fields do not show

More
1 week 6 days ago #11130 by Fdeus
Hi, there,
I'm new to VISforms. I just started a new form trying different kinds of fields and different functions. It seems that conditional logic does not work at all. With Firebug I see the following

jQuery.Deferred exception: jQuery(...).displayChanger is not a function TypeError: jQuery(...).displayChanger is not a function at HTMLDocument.<anonymous> ( www.foreigndocumentsexpress.com/media/co...76a4d88d9c3aa:844:22 ) at e ( www.foreigndocumentsexpress.com/media/ve...min.js?3.7.1:2:27028 ) at t ( www.foreigndocumentsexpress.com/media/ve...min.js?3.7.1:2:27330 ) undefined

Here is the link to the page:  Project - U.S. Apostille Services  In the form, when the option"Albania" is chosen, the second field "Goal" should appear. It does not.

Thank you for your kind attention.
Elena

More
1 week 4 days ago #11131 by Administrator IV
Replied by Administrator IV on topic conditional logic fields do not show
Hello Elena,

Thank you for the link to the affected page.

The JavaScript library jQuery is integrated twice on your page.
jQuery may only be loaded once on the page.
Loading jQuery the second time causes errors and missing functions.

The situation:

First loading of jQuery:

Through Visforms in the head tag, in the Joomla-compliant manner:
<script src="/media/vendor/jquery/js/jquery.min.js?3.7.1"></script>

If integrated via this central Joomla core function, Joomla ensures that jQuery is only loaded once.
No matter how many extensions are loaded in total.
Joomla provides this functionality to the extensions.

Second loading of jQuery:

Very late and almost at the very bottom of the page, probably directly through the code of another extension. Not at the very bottom of the page, but just before the closing head tag:
<script src="/media/vendor/jquery/js/jquery.min.js"></script>

But if the extension directly includes the jQuery, bypassing the central Joomla functionality, there is no check to see if the jQuery is already loaded.
I suspect that it directly includes the extension 'com_baforms' itself in this way.

I can't see it with absolute certainty.
But the 2nd call is between the CSS link for the extension 'com_baforms' and a JavaScript link for the extension 'com_baforms'.
This strongly suggests that the extension 'com_baforms' is also loading the second and incorrectly included jQuery.

The solution:
You have to deactivate the extension that loads jQuery a second time in a non-Joomla-compliant way.
Most likely it is the extension 'com_baforms'.


Best regards, Ingmar

: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
1 week 4 days ago #11136 by Fdeus
Replied by Fdeus on topic conditional logic fields do not show
Dear Ingmar,

Thank you very much. I removed the baform from this page and everything seems to be working smoothly.
Thank you again for your concise explanation and timely response.
Sincerely,
Elena

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum