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.

Bei Berechnungen Wörter statt Zahlen ausgeben

More
3 years 10 months ago #6882 by bm
Hallo,
vielleicht ist das jetzt eine dumme Frage, aber ich probiere es trotzdem:
Ist es irgendwie möglich, in Berechnungsformeln als Ergebnis einen Buchstaben bzw. ein Wort statt einer Zahl auszugeben? Also ungefähr so:

Statt
([WERT] == 2) ? (2)
dann so:
([WERT] == 2) ? (Orange)

Also nach dem Prinzip dass die 1 den Apfel bedeutet, die 2 die Orange, die 3 die Banane usw.
Ich habe das ausprobiert aber dann gibt er mir eine "0" als Ergebnis aus.
Aber vielleicht gibt es hier noch einen Trick, den ich nicht kenne?

Viele Grüße

More
3 years 10 months ago #6883 by Administrator AV
Replied by Administrator AV on topic Bei Berechnungen Wörter statt Zahlen ausgeben
Hallo,

saubere, fehlerfreie Berechnung, die sowohl im Browser als auch im PHP immer korrekt funktioniert, ist eine relativ delikate Angelegenheit. Theoretisch ist hier zwar auch mehr möglich und selbstverständlich ließe visForms sich auch noch weiter entwickeln, aber ein solches Feature einzubauen wäre ziemlich aufwendig.

Deshalb sind Berechnungen aktuell wirklich auf mathematische Ausdrücke und Zahlen begrenzt.

Gruß,
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
3 years 10 months ago #6884 by bm
OK. Vielen Dank für die schnelle Antwort. So etwas habe ich mir schon gedacht, aber als letzten Strohalm, dachte ich, ich frage trotzdem mal.

Viele Grüße

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum