Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

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

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

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?

Verknüpfte Bedingung im Formelfeld

More
8 months 2 weeks ago #11123 by bfba
V1: Visforms Version 4.4.3, Subscription Version 4.4.3
V2: Joomla 4.4.10
V3: PHP 8.3.16


Ich baue mit Hilfe des Muster Verkaufsformulars von Visforms ein Formular, dass auch eine Formel mit einer verknüpften Bedingung enthalten soll.
In einer Listbox stehen Optionswerte von 1 bis 350 (Zahlenwerte) die Listbox hat den Feldnamen [WERT7].

In einem Berechnungsfeld möchte ich nun eine Formel in dieser Art ausführen:
([WERT7] >= 152) ?([TOTAL]*1.5) : 0
dies klappt auch soweit gut.

Nun zum eigentlichen Problem:
Im vorderen Bedingungsfeld: (Bedingung) ? Alternative wenn Bedingung erfüllt ist : Alternative wenn Bedingung nicht erfüllt ist
möchte ich 2 Zahlenwerte als Bedingung eingeben, also in der Art: ([WERT7] 152 bis 322) ?([TOTAL]*1.5) : 0

Wie könnte ich das umsetzen? 
Bin für jeden Lösungsansatz dankbar.

Viele Grüße
Mike

More
8 months 2 weeks ago - 8 months 2 weeks ago #11124 by Administrator IV
Replied by Administrator IV on topic Verknüpfte Bedingung im Formelfeld
Hallo Mike,

die Lösung ist einfach.

Zu: 2 Zahlenwerte als Bedingung eingeben.
Code:
(2 <= [NUMBER1] && [NUMBER1] <= 4) ? 1 : 0

Liegt der Wert für das Feld 'number1' zwischen inklusive 2 und 4 ist das Formel-Ergebnis 1.
Für alle anderen Werte für das Feld 'number1' ist das Formel-Ergebnis 0.

Liebe Grüße, Ingmar

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

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 4.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 8 months 2 weeks ago by Administrator IV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum