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.

issue in calculation field with multiple selcet field

More
3 years 9 months ago #6951 by hooman52
Hi,
I'm trying do make a form with some select type fields and I total amount field as a calculation.
I need user select a services category from a selection field. based on this selection, another selection displayed in form for selecting an Item form services list. then total amount calculate and display price of Items that would be selected by user.
All works fine except when I try to allow multiple selection. when I do one of service selection multiple, total amount doesn't work. also conditional field does not work too. Let me give you live test site and you will try it in front end:
1- go to leyla-yeni.tk
2- change language to EN
3- go to online services -> E-commerce. and you will see the form.
4- go to step-2 ( services) . select service 1. you will see another selection field for Items. select one item and you wil see total amount will display correct price.
5- from first selection try to select service 2 and do the same.
in these steps form works fine. and no issue.
6- now try to select service 3. you will see a multiple selection. when you try to select some items, total amount doesn't display anything.
7- now try to select service 1 from first selection. and you will see that form doesn't hide service 3 selection.
I hope you will find a solution and help me to solve this issue.
Thanks

More
3 years 9 months ago #6953 by Administrator AV
Replied by Administrator AV on topic issue in calculation field with multiple selcet field
Hi,

using fields of type select with the option mulitselect enabled is not supported in calculations.

If you do enable mulitselect on a select field, which is used in a calculation, this will cause a Javascript error.
It is this error, which is then responsible for the "not working" of the conditional fields as well.
So this is just a follow up error of the invalide use of a mulitselection field in the calculation.

Multiselection and conditional fields do work properly.

Regards,
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 9 months ago #6954 by hooman52
Hi,
Is it possible to use checkbox with multiple choice selection or not?
Also I need to know do you plan to add this functionality for calculation field or not? I mean support for multi selection.
May be we want to try to solve it, et me know this issue is caused only by Javascript side? I mean is it possible to solve only by changing javascript or not?
thanks

More
3 years 9 months ago #6955 by Administrator AV
Replied by Administrator AV on topic issue in calculation field with multiple selcet field
Hi,

the field type checkbox group cannot be used in calculations.
Basically it is the same reason as with multi select listboxes.

If you have a multi selection, you get more than one value, with which you would have to replace the placeholder in the formula. How should the formular handle such a situation? Basically this would require, to provide a complete new syntax for the placeholder replacement, which is way to complicated. There is no intention, to implement this.

You could try to use a separate field of type checkbox for each option.
Than you have a different placeholder for each option and can define, how to handle multiple selections inside your equation properly.

Regards,
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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum