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.

Redirect to the detail after form sent

Mehr
10 Monate 2 Wochen her #10040 von qms
Hello,
is it possible to redirect after successful form submit to the detail of that last submitted form?
i hope this question is understandable as English is not my native

Thank you
 

Mehr
10 Monate 2 Wochen her - 10 Monate 2 Wochen her #10042 von Administrator IV
Administrator IV antwortete auf Redirect to the detail after form sent
Hello gms,

After submitting the form you can navigate to the form data.
There are 2 different scenarios that are slightly different.

Below are the configuration settings for both scenarios.

- Scenario 1
Configuration for: User can submit any number of forms
Form: Tab Basic: Name = 'redirect-1'
Form: Tab Basic: Maximum one form submission = No
Form: Tab Result: Save Result = Yes
Form: Tab Result: Redirect URL = http://localhost/developj5/index.php/redirect-1-form/redirect-1-data-edit
Form: Tab Dataview in Frontend: Allow Frontend Data View = Yes
Form: Tab Dataview in Frontend: Own Data only = Yes
Form: Tab Dataview in Frontend: Auto Publish Data = Yes
Form: Tab Form Permissions: Registered: Edit own data in Frontend: Allowed
Field: Tab Advanced: Display Data In Frontend: List and Details
Menu: Menu-Type 'Form data with edit link': Alias = 'redirect-1-data-edit'
Menu: Tab Form Data Display Options: Editable Record Sets Only = Yes

- Scenario 2
Configuration for: User can submit a maximum of 1 form
Form: Tab Basic: Name = 'redirect-2'
Form: Tab Basic:
Form: Tab Basic: Maximum one form submission = Yes
Form: Tab Basic: Action instead of Form: Tab: Selected option 'Redirect to edit view'
Form: Tab Result: Save Result = Yes
Form: Tab Result: Redirect URL = http://localhost/developj5/index.php/redirect-2-form
Form: Tab Dataview in Frontend: Allow Frontend Data View = Yes
Form: Tab Dataview in Frontend: Own Data only = Yes
Form: Tab Dataview in Frontend: Auto Publish Data = Yes
Form: Tab Form Permissions: Registered: Edit own data in Frontend: Allowed
Field: Tab Advanced: Display Data In Frontend: List and Details

Below is the sequence of presentation for the user for both scenarios.

- Scenario 1
Fresh form:
vi-solutions.de/forum-uploads/redirect-f...data_form-1_form.png
List of user records with edit link:
vi-solutions.de/forum-uploads/redirect-f...1_form-submitted.png
Editing the data set:
vi-solutions.de/forum-uploads/redirect-f...mitted_edit-view.png

- Scenario 2
Fresh form:
vi-solutions.de/forum-uploads/redirect-f...data_form-2_form.png
Editing the data set:
vi-solutions.de/forum-uploads/redirect-f...2_form-submitted.png

For scenario 1, an intermediate step is required because there are several data records per user for the form.
It is not possible to simply display the one record for the last form submission.

For scenario 2 it is of course also possible to forward
- only to the short data list (with exactly 1 data record) with edit link
- and not immediately to editing the data record.

Kind regards, Ingmar

: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 :-).
Letzte Änderung: 10 Monate 2 Wochen her von Administrator IV.

Mehr
10 Monate 2 Wochen her #10043 von qms
actually i was thinking of something more simple
lets say this is the url for a particular record
index.php?option=com_visforms&view=visformsdata&layout=detailitem&id=1&cid=2
where cid=2 is the auto increment value from that form table
is there a way to insert that cid as variable so that when form is submitted i can recall the new id value from database and put it on url redirect

Mehr
10 Monate 2 Wochen her - 10 Monate 2 Wochen her #10054 von Administrator IV
Administrator IV antwortete auf Redirect to the detail after form sent
Hello gms,

Unfortunately, this option is not available in Visforms as a simple configuration.
One option for developers is to create a custom plugin.

The documentation describes how to create a 'Visforms Custom Plugin'.
Custom Plugin Creation:
docs.joomla-4.visforms.vi-solutions.de/e...-plugin-development/
Custom Plugin Event System:
docs.joomla-4.visforms.vi-solutions.de/e...-plugin-development/
There is a complete custom plugin with all events and help functions as a template that comes with the installation of Visforms:
docs.joomla-4.visforms.vi-solutions.de/e...-plugin-development/

The developer can then decide for himself what else should happen.
Creating a custom plugin requires some PHP development experience on Joomla.

If you need help developing the plugin, we can help you with that - even with the complete implementation.
Please understand that we have to calculate this effort at our current hourly rate of 75 euros plus VAT and at least 1 hour.

In your case you have to use the Visforms event 'onVisformsBeforeSuccessAction'.
There you put your redirect URL in the form object element '$visform->redirecturl'.
You can access all data (current form data as well as all data from the database) and set the redirect URL as desired.

If the Visforms plugin 'Custom Redirects' is activated, you have to be careful.
You have to make sure that it is called before the custom plugin.
You do this by sorting the plugins in the Joomla administration.

Kind regards, Ingmar

: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 :-).
Letzte Änderung: 10 Monate 2 Wochen her von Administrator IV.

Mehr
10 Monate 2 Wochen her - 10 Monate 1 Woche her #10061 von qms
yes this is exactly what i'm looking for
currently i am fiddling with visform default installation on test server

thanks for direction

Cheers
edit: i found new approach by playing with database
 
Letzte Änderung: 10 Monate 1 Woche her von qms. Begründung: new idea

Mehr
10 Monate 1 Woche her #10084 von qms
For those who wants to achieve similar result
this is what i did without touching custom plugin or database, just using normal subs feature
First you need an additional field either radio or select sql ( i prefer radio)
then add query to get MAX 'id' value from database and increment it by 1
then you can use it as url paramater with custom name cid

this is not optimal solution but enough for me as of now
Next step is to auto select the radio value (is that possible?)
and hide it so that user won't need to see it


Cheers

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum