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.

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
1 month 5 days ago - 1 month 4 days 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: 1 month 4 days ago by yellowbird.

More
1 month 4 days ago - 1 month 4 days 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 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 :-).
Last edit: 1 month 4 days ago by Administrator IV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum