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?

validation of fields not working properly

More
9 years 6 months ago #1576 by IreneLennings
validation of fields not working properly was created by IreneLennings
:(
Dear Aicha,

I'm using Joomla 3.4.1 en Visforms 3.4.3.
No other extensions present apart from noconflict and JCE.

It looks like the email comparison and the error text that I defined are not evaluated.
I have put breaks on the document ready statement and on the rules statement.
So, the run stops like expected on the document ready statement, but it doesn't enter the statement, but skips to the end on the next step!

jQuery(document).ready( function(){
var validator = jQuery(document).ready(function() {
jQuery('#visform1').validate({
wrapper: "p",
//absolutly necessary when working with tinymce!
ignore: ".ignore",
rules: {
"email-herhaling" : {equalTo: "#field2",}, },
messages: {
"naam": {required: "Vul hier uw naam in",},"email-herhaling": {email: "De twee email adressen zijn niet gelijk aan elkaar",required: "De twee email adressen zijn niet gelijk aan elkaar",equalTo: "De twee email adressen zijn niet gelijk aan elkaar",}, },
errorPlacement: function (error, element){
error.appendTo('div.fc-tbx' + element.attr("id"));
error.addClass("errorcontainer");
},

}); etc....

Have you any ideas on what could be wrong?
Regards Irene

More
9 years 6 months ago #1579 by Administrator AV
Replied by Administrator AV on topic validation of fields not working properly
Hi Irene,

this validation options usually works fine. This must be a problem on your system.
Joomla! 3.4.1 is fine with Visforms, too.

Here some suggestions that come into mind.

Did you create template overrides for the form layouts in your template (based on the old Visforms 3.1.2 files?
They will no longer work with Visforms 3.4.3

EqualTo validation is now part of the Visforms core, so you can just use the option in the field configuration. Did you use this option?

If you cannot figure it by yourself I would at least need a link to the form.

Kind 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 6 months ago #1580 by IreneLennings
Replied by IreneLennings on topic validation of fields not working properly
Dear Aicha,

Just to be sure I deïnstalled visforms. Downloaded Visforms (visForms_j3.3.6_3.4.3) from your site and installed it.
There's one difference: I can't access the script anymore, let alone debug it in firebug...

There are no overrides.
I used the Equal to option.

Here is the link: joopvangoozen.nl/index.php/contact
Let me know if you need back end access.
(Please don't mind the styling, I haven't done that yet)

Thanks in advance!
Irene

More
9 years 6 months ago #1582 by IreneLennings
Replied by IreneLennings on topic validation of fields not working properly
After adding the line: <jdoc:include type="head" /> in my template, I can use the debugger as expected. Pfff that's a relief!

But the run stil skips the document.ready function after pressing "versturen"....

More
9 years 6 months ago #1583 by Administrator AV
Replied by Administrator AV on topic validation of fields not working properly
Hi Irene,

please include
Code:
JHtml::_('jquery.framework');

in your template.
This will fix the problem, I think.

As almost every Joomla! 3 Template includes the bootstrap framework (and the jQuery Library with it) I actually overlooked, that I have forgotten to include the jQuery Library in Visforms for those who do not have it.

I have fixed this Problem in Visforms 3.5.0 but as this is still a beta Version I do not show it in the auto updater.

So you have to make sure that the template includes the jQuery with the code above.

Kind 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 6 months ago #1585 by IreneLennings
Replied by IreneLennings on topic validation of fields not working properly
Dear Aicha,

It does solve the problem!
I hadn't included the jquery library in my template.
So now i know how to include it (and bootstrap and mootools) in a simple and elegant way!

Thank you very much,

Regards
Irene

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum