Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

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

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

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.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Custom validation (server based) [solved]

More
7 months 3 weeks ago - 7 months 3 weeks ago #11234 by yellowbird
Custom validation (server based) [solved] was created by yellowbird
Hello Ingmar,

thank you very much! I knew I was missing something obvious I read earlier...
Last edit: 7 months 3 weeks ago by yellowbird.

More
7 months 3 weeks ago - 7 months 3 weeks ago #11238 by Administrator IV
Replied by Administrator IV on topic Custom validation (server based)
Hello yellowbird,

Visforms also has a plugin interface for custom validation of form entries in the backend.

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/d...-plugin-development/

Custom plugin event system:
docs.joomla-4.visforms.vi-solutions.de/d...-plugin-development/

There is a complete, ready-made custom plugin with all events and auxiliary functions as a template that comes with the Visforms installation:
docs.joomla-4.visforms.vi-solutions.de/d...-plugin-development/

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

The relevant event for you is the following:
Code:
onVisformsBeforeFormSave

In this event handler you can
- attach your own validation,
- correctly write a meaningful error message to $form->errors in the event of an error,
- correctly set the result argument.

Best regards, Ingmar [/code][/code]

:idea: I recommend you the new and up-to-date documentation for Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 4.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 4.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 7 months 3 weeks ago by Administrator IV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum