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.

Wichtig Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Aufgrund von Feiertagen und Urlaub ist bei Anfragen im Forum in der Zeit vom 20. Dezember 2024 bis zum 8.Januar 2025 mit verlängerten Antwortzeiten zu rechnen.

Textare placeholder

Mehr
8 Jahre 6 Monate her - 8 Jahre 6 Monate her #3117 von ttome
Textare placeholder wurde erstellt von ttome
Hi!
What a problem to add placeholder attr to textarea?
Why the default layout doesn't have this function??

So, sometimes, i need this future, so i rewrite a bit this Perfect Extension!
All process in 3 steps!

1. Find the textarea.php here:
Code:
components/com_visforms/lib/html/field/textarea.php

and add this code somewere (for example on line 98)
Code:
if (!isset($attributeArray['placeholder']) || $attributeArray['placeholder'] == "") { $attributeArray['placeholder'] = "Test"; }

2. Now find this file:
Code:
administrator/components/com_visforms/models/forms/visfield.xml

And add this code (for example on line 476):
Code:
<field name="f_textarea_attribute_placeholder" type="text" label="COM_VISFORMS_PLACEHOLDER" description="COM_VISFORMS_PLACEHOLDER_DESC" class="inputbox" size="50" maxlength="" />

3. Save new constants
Code:
COM_VISFORMS_PLACEHOLDER
- label name

and
Code:
COM_VISFORMS_PLACEHOLDER_DESC
- label description

in file that placed here:
Code:
administrator/components/com_visforms/language/en-GB/en-GB.com_visforms.ini

NB
This future doesn't work with HTML-editor

That's all.
I think it will be usefull to add this attr to a default layout
Thank You and sorry for my bad english!
Letzte Änderung: 8 Jahre 6 Monate her von ttome.

Mehr
8 Jahre 6 Monate her #3118 von Administrator AV
Administrator AV antwortete auf Textare placeholder
Hi,

thanks for this post.

Have you tested, if the placeholder works as well as expected, when you enable the "HTML-Editor" Option in the field configuration?

Have you tested with different browsers as well, with and without textarea as editor?

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
8 Jahre 6 Monate her #3119 von ttome
ttome antwortete auf Textare placeholder
Hi

No, it doesn't work with HTML-editor of course.
But it works great with simple textarea. In my forms i usually use it without editor.

It works in Safari (5+), Internet Explorer (10+), Google Chrome (10+), Firefox (4+) & Opera (11.50+).

Mehr
8 Jahre 6 Monate her #3120 von Administrator AV
Administrator AV antwortete auf Textare placeholder
Hi,

thanks for your tests and your reply once again!

In a component like Visforms, which is used by thousands of people and for very different forms, I have to provide functionality which always works as expected. So, if there is an option "placeholder" for the textarea, certainly some users would expect, that they can enable the placeholder and the html Editor option, both.

If I wanted to add your code to the Visforms core, I would have to write some more core, which would hide and clear the "placeholder" option properly, if the html-editor option is being enabled. I think, this is the reason, why I did not include a placeholder option for textareas in the first place. But maybe I can do this in a future release.

And of course everybody can use your code posted here. Thanks for making it available for everybody!

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
8 Jahre 6 Monate her #3158 von Administrator AV
Administrator AV antwortete auf Textare placeholder
Hi,

this will be a feature of the next Visforms Release of the Beta-Version (3.8.3), which will probably be released in the next month.

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

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum