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.

Custom Field Problem

More
7 years 6 months ago #3704 by fede491
Custom Field Problem was created by fede491
Hi Aicha,
I'm using Visforms version 3.8.9 and I’m using the custom field extension, but I have a problem:
If I use this formula:

([FATTURATO] >= 50000) ? ([FATTURATO]*0.012) : 0

everything works fine

but I use this:

([FATTURATO] <= 50000) ? ([FATTURATO]*0.012) : 0

after saving, the text is modified in this way

([FATTURATO] FATTURATO]*0.012) : 0

and of course the calculation does not work I’ve the same problem although I use only the less than sign (<)

This is very strange for me...

More
7 years 6 months ago - 7 years 6 months ago #3705 by Administrator AV
Replied by Administrator AV on topic Custom Field Problem
Hi,

thanks for the post.
I will check into this as soon as possible.
As the greater sign seem to work, maybe as a workaround you can just switch the order.

(50000 > [FATTURATO])

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 :-).
Last edit: 7 years 6 months ago by Administrator AV.

More
7 years 6 months ago #3706 by Administrator AV
Replied by Administrator AV on topic Custom Field Problem
Hi,

I was able to reproduce the problem and to figure where it comes form.
It is easy to fix.
Please open the file administrator/components/com_visforms/models/forms/visfield.xml

At line 707 - 709 you find the following code
Code:
<field name="f_calculation_equation" type="textarea" label="COM_VISFORMS_CALCULATION_EQUATION" description="COM_VISFORMS_CALCULATION_EQUATION_DESC" class="inputbox" rows="5" />

replace it with
Code:
<field name="f_calculation_equation" type="textarea" label="COM_VISFORMS_CALCULATION_EQUATION" description="COM_VISFORMS_CALCULATION_EQUATION_DESC" class="inputbox" rows="5" filter="raw" />

I will add the fix to the Visforms core, so that it will be release with the next version.

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
7 years 5 months ago #3758 by fede491
Replied by fede491 on topic Custom Field Problem
Thank you!!!

More
7 years 5 months ago #3760 by Administrator AV
Replied by Administrator AV on topic Custom Field Problem
You're very welcome and I have to thank you for pointing me to a bug in Visforms!

Kind 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