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.

Due to public holidays and vacations, longer response times can be expected for inquiries in the forum between May 18, 2024 and June 2, 2024.

Fields validation

More
9 years 11 months ago #605 by xomi
Fields validation was created by xomi
Hi, I'm trying this component and I find it very useful and nice to use.

But I'd need to validate some fields (as spanish id card or bank account) that have hash digits, and I don't know where are the best place and way to do it. I'd like to do it as an override or plugin of the component, avoiding conflicts when updating the component.

Did you think on any solution to this?

Thanks a lot.

More
9 years 11 months ago #606 by Administrator AV
Replied by Administrator AV on topic Fields validation
Hi Xomi,

can I conclude from your statement that you want to do it as an override or plugin, that you have JavaScript development skills?

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

More
9 years 11 months ago #608 by xomi
Replied by xomi on topic Fields validation
Yes, I have both JavaScript and PHP development skills.

More
9 years 11 months ago #610 by Administrator AV
Replied by Administrator AV on topic Fields validation
Hi xomi,

Visforms uses the jQuery validator plugin.
Plugin is using standard jQuery plugin development methods and is extendable.
You can use the addMethod function to add custom validation. Documentation is on jqueryvalidation.org/jQuery.validator.addMethod/

You can use the code in componentes/com_visforms/views/visforms/default.php at about line 230 as example. I already included a custom date validation there.

I think this gives you enough options to keep you custom validation code seperate from the Visforms code.

Regards,
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: xomi

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum