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.

Redirect to the detail after form sent

Mehr
2 Monate 1 Woche her #10095 von Administrator IV
Administrator IV antwortete auf Redirect to the detail after form sent
Hello gms,

1: it is possible to have the field pre-selected and hidden.

In the field configuration, tab 'Basic Options' you have to make the following settings:
Option 'Preselect solitary option' = 'True'
Option 'Hide when preselected' = 'True'

Your solution works well and is probably sufficient for you.

The solution with a 'Visforms Custom Plugin'
- would be the technically safe option and
- requires little code.

2: A technically safe option means here:

The next record ID to be assigned is fetched 'early'.
However, if the form is sent 'late', the next data record ID to be assigned may already be different because other forms have been sent by other users in the meantime.
In such a case, the redirection would be to another user's data.

In a 'Visforms Custom Plugin', however, you can access the data record ID that is actually used.

3: The secure SQL statement looks like this.
Code:
select ifnull(max(id),0) + 1 as label, ifnull(max(id),0) + 1 as value from #__visforms_[form-id];

This SQL statement also works for the very first submission of the form if there is no data in the data table yet.
In this case the SQL function max() would return 'null'.
And a 'null + 1' would also return a 'null', i.e. not 1 and there would be an error in the redirect URL.

SQL max() function with null values:
www.w3resource.com/sql/aggregate-functio...with_null_values.php
MySQL IFNULL() Function:
www.w3schools.com/sql/func_mysql_ifnull.asp

4: We think your requirement is a good addition to the existing options for a redirect as a simple configuration.

I have created an issue for development in the wish list:
Issue [VF-1004] Forum: Redirect after Form Submit: Add Option: Redirect to detail-view of submitted form data

When we release the new feature, you will be explicitly informed about the release here in the topic.
Thank you again for your contribution!

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

Mehr
2 Monate 1 Woche her #10098 von qms
Superb!!!
yes my solution is not technically save
but since only 1 user using  the form at any given time this is enough for now (might be changed in the future)
i still gonna play with custom plugin for a bit, though

Thanks for the outstanding support
i'm glad i choose this form

Cheers
 

Mehr
2 Monate 1 Woche her #10100 von Administrator IV
Administrator IV antwortete auf Redirect to the detail after form sent
Thanks for your great feedback and you're welcome!
We try our best...

: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