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.

Disabling fields in VisForms Display Data option

Mehr
8 Jahre 6 Monate her #2119 von Thinamani
Hi There,

I have added a new field in my form and I would like that field to be locked for editing when the admin clicks on "DisplayData" from the Visforms Forms menu.
Currently the field of IP is locked for editing and I would like to make my field locked as well like the IP field.

Is there a way to achieve this?

Kind Regards

Mehr
8 Jahre 6 Monate her #2121 von Administrator AV
Administrator AV antwortete auf Disabling fields in VisForms Display Data option
Hi,

at the moment it is only possible to allow a user to edit all data in the "displayData" View in the administration panel or to disallow it for all data. When I developed the code which allows you to edit data in backend this was meant to be a very simple feature, which simply allows administrators to correct user input, for example if a user has mistyped their name or addresss...
Using this feature and editing data, requires knowledge about the form, which I expected an administrator would have. As you can see, there is no validation of the inputs an administrator makes and there is no information available for example about what would be a valid input values for select, radios...

During the last two month I developed a Visforms extension, which allows you to enable users (or admins) to edit submitted form data in the frontend. ( vi-solutions.de/en/frontend-data-edit-de...dit-data-in-frontend ) This was a frequently requested feature for Visforms (and it took quite a lot of effort to implement it). The frontend data edit supports ACL down to the field level. In contrast to the display data view in the administration panel, the frontend data edit displays the form once again and uses the user inputs which are stored in the data base as default values. It has full form validation.

I hope this answer will help you.

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 #2122 von Thinamani
Hi Aicha,

Then how is it possible that the IP Address Field in the "diplayData" view within the administration panel is locked and not editable?

All I want is to pretty much do the same to one more field that I do not want changed by anyone. I am sure that there is a file within the VisForms components that hold the code to lock that field when being displayed.

Mehr
8 Jahre 6 Monate her #2124 von Thinamani
Hi Aicha,

I had a quick look at the back end coding and found the file named edit.php under administrator/components/com_visforms/views/visdata/tmpl

I made a copy of your original coding and then changed the coding to set the particular field I needed as ReadOnly in the displayData view within the administration panel.

I have emailed you the screen shots of what I have changed and the result in the front end. I have highlighted the coding changes I have made.

Kind Regards

Mehr
8 Jahre 6 Monate her #2125 von Administrator AV
Administrator AV antwortete auf Disabling fields in VisForms Display Data option
Hi,

sorry I was pretty much out of office yesterday. As you have already figured by yourself, I have hard coded for some administrative fields, which should not be editable, that they are readonly just as you did now for your field.

I is a good solution for you to set a field with a specific id to readonly in the same way. And thanks for sharing your solution here.

Please keep in mind, that you will loose your changes with each Visforms update. Maybe you can create a template override of the edit.php file in the administrator template in order to prevent that (I have never check if it is possible to create template overrides in administrator templates but I think it is quite probable, that Joomla! has implemented this feature for administrator templates as well.)

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