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.

Pre Populating Dropdown Lists Automatically

Mehr
8 Jahre 5 Monate her #2187 von Thinamani
Pre Populating Dropdown Lists Automatically wurde erstellt von Thinamani
Hi There,

I have created a server build request form using VisForms. In the form fields the requester enters details about the server and what is is used for and who the owner is. I have a particular text field to enter the Business Unit of which the server belongs to or is requested by. I would like to make the text field into a drop down list and automatically pre populate the drop down list with a list of business units from a text file. Currently the only way to populate the dropdown list is to manually enter the list items within the Admin Form Fields edit screen.

Is there a way for me to possibly re code it to look into a text file and pre populate it from the front end?

Thank you
Pavetiran Thinamani

Mehr
8 Jahre 5 Monate her #2189 von Administrator AV
Administrator AV antwortete auf Pre Populating Dropdown Lists Automatically
Hi Pavetiran,

at the moment Visforms expects the drop down list options to be created in the Admin Form Fields edit screen. The business logic of managing drop down fields in the code is quite complex and the code relies on this assumption.
- There is code that prevents you from creating and storing a field of type select without options in the Admin Form
- There is code that checks that a submitted value for a field of type select is a valid option (of the option list stored for this field) to prevent data tempering.
- ...
So, although it would not be too difficult to add options to a select field dynamically (using a text file) re coding Visforms to work with it, is not so easy (and in my opinion not possible with advanced knowledge of the Visforms code and of php coding) and can break Visforms easily.
I'm sorry. I never thought about this possibility and designed the code the way it is (focusing on security).
But this is an interesting feature and I will take it into account for further development in the future.

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