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.

Texteingabe wird Link

More
9 months 2 weeks ago #9621 by it@pf-t.de
Texteingabe wird Link was created by it@pf-t.de
Hallo zusammen,

ich habe eine Frage. Wir möchten in unserem Intranet ein Telefonverzeichnis anlegen. Es handelt sich um ein ziemliches Standardformular mit Name, Vorname,.. und Durchwahl. Jetzt wäre es natürlich schön, wenn beim Anlegen des Datensatzes, die Formulareingabe in einen Link angezeigt wird, damit man auch anrufen kann wenn man auf die Durchwahl klickt. Ich habe das mit einem anderen Joomla plugin mal so im html Code gelöst :

<a href='Tel:{{ durchwahl }}'>{{ durchwahl }}</a>

Das hat super funktioniert, allerdings bin ich mir wirklich nicht sicher, wie ich das am besten in Viforms anstellen kann. Gibt es da vielleicht einen einfachen Vorschlag, ich bin leider kein Webentwickler. Danke für jeden Hinweis.
 

More
9 months 2 weeks ago #9627 by Administrator IV
Replied by Administrator IV on topic Texteingabe wird Link
Hallo it@pf-t.de,

diese spezielle Anforderung kannst du in Visforms mit etwas JavaScript lösen.
Eine andere Lösung gibt es leider nicht.

Im folgenden eine komplette kleine Lösung für eine ganz ähnliche Anforderung:
<a href='Tel:postal-code'>postal-code</a>

Mit folgendem JavaScript-Code wird der Wert in der Spalte 'postal code' des Formular-Feldes mit der ID 5, in einen ganz ähnlichen anklickbaren Link umgewandelt.
Code:
jQuery(document).ready(function() {     jQuery('table.visdata td.data-f5').each(function () {         const data = jQuery(this).text();         jQuery(this).empty();         jQuery(this).append(`<a href="Tel:${data}" target="_blank">${data}</a>`);     }); });

Datenliste ohne den JavaScript-Code:
vi-solutions.de/forum-uploads/data-list-postalcode-normal.png

Datenliste mit dem JavaScript-Code:
vi-solutions.de/forum-uploads/data-list-postalcode-link.png

Formular-Konfiguration 'Front-End-Web-Assets' mit dem JavaScript-Code:
vi-solutions.de/forum-uploads/data-list-...nfiguration-code.png

Das Hinzufügen von JavaScript wird in der Dokumentation beschrieben.
JavaScript und CSS hinzufügen:
docs.joomla-4.visforms.vi-solutions.de/d...a-script-extensions/
Front-End-Web-Assets:
docs.joomla-4.visforms.vi-solutions.de/d...ons/add-script-fewa/

Liebe Grüße, 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
9 months 2 weeks ago #9629 by it@pf-t.de
Replied by it@pf-t.de on topic Texteingabe wird Link
Das funktioniert wunderbar, vielen Dank für die schnelle Lösung.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum