Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

error message using checkbox

Mehr
7 Jahre 2 Monate her #4071 von ec1
error message using checkbox wurde erstellt von ec1
Hello,
I created a checkbox field with required=Yes, checked value=1, default=unchecked
When I open the Form, get following error:

Notice: Undefined property: stdClass::$unchecked_value in /home/.sites/88/site7547518/web/frgneu/components/com_visforms/lib/business/checkbox.php on line 111

I noticed that I can't set the unchecked value ?!

Thanks,
Eva

Mehr
7 Jahre 2 Monate her #4073 von Administrator AV
Administrator AV antwortete auf error message using checkbox
Hi Eva,

thanks for this post.

did you update Visforms?
Was the checkbox create before the update?

Then please just open the checkbox field in the administration and save it.

Does this solve your problem? If not, just let me know.

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

Mehr
7 Jahre 2 Monate her #4074 von Administrator AV
Administrator AV antwortete auf error message using checkbox
Hi,

ok, I think, this will not solve the problem.

Actually this is a notice, that will not effect proper working of Visforms and that will not show up on a productive system with productive error message levels. Nevertheless I will of course fix it.

Please open the file mentioned in the warning.
Replace the code at line 111 which is
Code:
$this->field->calculationValue = ($this->field->configurationDefault === "checked") ? $this->field->attribute_value : $this->field->unchecked_value;
with
Code:
$this->field->calculationValue = ($this->field->configurationDefault === "checked") ? $this->field->attribute_value : (isset($this->field->unchecked_value)) ? $this->field->unchecked_value : 0;

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

Mehr
7 Jahre 2 Monate her #4075 von ec1
ec1 antwortete auf error message using checkbox
Hello Aicha,
thanks that worked! You were right, that was just a notice message as the message level was still set to "Developer" . When lowering it it's gone. After the correction to the file it also works fine!
Thanks a lot
Eva

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum