Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Formular beenden mit eigenem Fehlertext für SubmitHandler

More
5 years 1 week ago - 5 years 1 week ago #6124 by MaliRaj
Hallo Aicha, (wie) kann ich im UserCodeTeil in der public function onVisformsBeforeFormSave mit einem 'return false' (nach einer zusätzlichen Validierung) eine eigene Fehlermeldung für die Bildschirm-Ausgabe erzeugen und die weitere Formular-Verarbeitung abbrechen/beenden? Ist das so einfach möglich? Im Moment bleibe ich bei einem return false einfach im Formular hängen, ohne es speichern zu können. Ich möchte es aber gern mit einer eigenen Fehlermeldung beenden.

Freundliche Grüße aus PM
Heinz
Last edit: 5 years 1 week ago by MaliRaj.

More
5 years 1 week ago #6125 by Administrator AV
Replied by Administrator AV on topic Formular beenden mit eigenem Fehlertext für SubmitHandler
Hallo,

nein das geht so nicht.
Es wird nur auswertet, ob ein "false" zurück kommt und wenn dem so ist, dann wird das Formular wieder vorgezeigt.

Du kannst nur ähnlich wie z.B. in den Visforms Plugins "delaydoubleregistration" und "maxsubmissions" in deinem eigenen Code eine Nachricht an die Joomla! Message Queue übergeben mit
JFactory::getApplication()->enqueueMessage();
Diese würde dann angezeigt.
Gruß,
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 :-).
The following user(s) said Thank You: MaliRaj

More
5 years 1 week ago - 5 years 6 days ago #6126 by MaliRaj
Vielen Dank für deine Hilfe. Das veruche ich dann so umzusetzen.
Nachtrag:
Genial!! Das funktioniert prima!! :cheer:

Freundliche Grüße aus PM
Heinz
Last edit: 5 years 6 days ago by MaliRaj.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum