Hello, I use the “wimble” template on my homepage and use Visform components for forms (https://vi-solutions.de/de/subscribe) .
Unfortunately, this conditional display of form fields no longer works correctly.
According to the Visforms administrator, however, this is due to my template and not the Visforms component.
Here is the link to the affected page:
https://www.landlerhilfe.at/home/index.php/christkindl-aus-der-schuhschachtel/seiten/unterstuetzung-beim-making-of
When you make a selection from the “Wählen Sie die Art der Unterstützung aus*” list, additional fields should appear after the selection, but they do not.
The following error appears in the developer tools from browser:
Uncaught TypeError: Cannot read properties of undefined (reading 'localName')
at HTMLInputElement.<anonymous> (main.js:238:30)
at HTMLInputElement.dispatch (jquery.min.js?3.7.1:2:40035)
at v.handle (jquery.min.js?3.7.1:2:38006)
at Object.trigger (jquery.min.js?3.7.1:2:70124)
at HTMLInputElement.handler (jquery.min.js?3.7.1:2:37521)
at HTMLInputElement.dispatch (jquery.min.js?3.7.1:2:40035)
at v.handle (jquery.min.js?3.7.1:2:38006)
at HTMLInputElement.handler (jquery.min.js?3.7.1:2:37391)
at HTMLInputElement.dispatch (jquery.min.js?3.7.1:2:40035)
at v.handle (jquery.min.js?3.7.1:2:38006)
https://www.landlerhilfe.at/home/templates/wimble/js/main.js
jquery.min.js?3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'localName') TypeError: Cannot read properties of undefined (reading 'localName')
at HTMLInputElement.<anonymous> (https://www.landlerhilfe.at/home/templates/wimble/js/main.js:238:30)
at HTMLInputElement.dispatch (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:40035)
at v.handle (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:38006)
at Object.trigger (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:70124)
at HTMLInputElement.<anonymous> (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:70726)
at ce.each (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:3129)
at ce.fn.init.each (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:1594)
at ce.fn.init.trigger (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:70701)
at ce.fn.<computed> [as focus] (https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1:2:86549)
at HTMLDocument.<anonymous> (https://www.landlerhilfe.at/home/index.php/christkindl-aus-der-schuhschachtel/seiten/unterstuetzung-beim-making-of:651:65) undefined
ce.Deferred.exceptionHook @ jquery.min.js?3.7.1:2
t @ jquery.min.js?3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?3.7.1:2
c @ jquery.min.js?3.7.1:2
fireWith @ jquery.min.js?3.7.1:2
fire @ jquery.min.js?3.7.1:2
c @ jquery.min.js?3.7.1:2
fireWith @ jquery.min.js?3.7.1:2
ready @ jquery.min.js?3.7.1:2
P @ jquery.min.js?3.7.1:2
https://www.landlerhilfe.at/home/media/vendor/jquery/js/jquery.min.js?3.7.1
main.js:249 Uncaught TypeError: Cannot read properties of undefined (reading 'localName')
at HTMLInputElement.<anonymous> (main.js:249:34)
at HTMLInputElement.dispatch (jquery.min.js?3.7.1:2:40035)
at v.handle (jquery.min.js?3.7.1:2:38006)
In an earlier version that I restored on my backup web space, the handling still works correctly:
https://christl.it/landlerhilfe/index.php/christkindl-aus-der-schuhschachtel/seiten/unterstuetzung-beim-making-of
Here is also the feedback from Visforms: https://vi-solutions.de/de/forum/19-joomla-extension-visforms/2934-bedingte-anzeige-felder-werden-nicht-angezeigt#11805
"Hallo Christoph,
der Javascript Fehler entsteht im Javscript deines Templates (in der Datei main.js).
Dieses Javascript läuft auf Visforms an.
Der Code prüft aber nicht, ob $(this).prev()[0] existiert (was es im Falle von Visforms nicht tut) und versucht dann direkt auf eine Eigenschaft dieses nicht exsitierenden Elements zuzugreifen.
So etwas erzeugt in Javascript immer einen Fehler.
Was zur Folge hat, dass dann auch Visforms nicht mehr funktioniert.
Es müsste also der Fehler im Javascript des Templates behoben werden.
Herzliche Grüße,
Aicha"
Joomla! 5.3.3 Stable [ Timu ] 19-August-2025 16:00 GMT
Wimble 2.1.2
Visforms Version 5.5.1, Subscription Version 5.5.1
I hope you can help me.
thank you!