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?

Calendar button not working

More
7 years 5 months ago - 7 years 5 months ago #4419 by ferino
Calendar button not working was created by ferino
Hello,
I have installed Visforms 3.9.0 on my site (Joomla 3.7.2)
I have problem with Calendar button. Date field is OK, but when I click to Calendar button, nothing happens.
I noticed that the button is too pressed to the field. I do not know if it can be related.

Thank for answer and sorry for my english :)
Code:
http://www.karavany-na-prenajom.sk/rezervacia-karavanu-0
Last edit: 7 years 5 months ago by ferino.

More
7 years 5 months ago #4421 by Administrator AV
Replied by Administrator AV on topic Calendar button not working
Hi,

there is a Javascript problem on the page.
I'm not sure where it exactly comes from.

Usually the Javascript error message which is shown, when a user enters an invalid e-mail address in a field of type email, the Javascript error message would be

"Please enter a valid email: <br /><span>E.g. yourname&#64;domain.com</span>"

This text is rendered in ONE LINE in the html source code of the website.

On your website the text is rendered in two lines

"Please enter a valid email: <br />
<span>E.g. yourname&#64;domain.com</span>"

This causes a severe Javascript error.
I do not know, why the text is displayed in two lines on your website and I think that this is the result of another extension or some code that is run by your template.

It is the same problem with the error message for fields of type url, which is rendered in two lines on your website.

"Please enter a valid url: <br />
<span>E.g. www.domain.com "

Best way to fix it would be to find out, who is modifying the source code.

Alternatively you could fix the problem by creating language overrides (using the Joomla! language manager). I think that removing the <br /> in the texts would solve the problem. As far as I can see it would be enough to create overrides for the language tags COM_VISFORMS_ENTER_VALID_EMAIL and COM_VISFORMS_ENTER_VALID_URL for the English language on the "site".

Please use the console of your browser in order to check, it the Javascript errors are fixed afterwards.

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
7 years 5 months ago #4424 by ferino
Replied by ferino on topic Calendar button not working
Hi,
I found this in the source code of the page:
Code:
jQuery(document).ready(function () { jQuery.extend(jQuery.validator.messages, { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email: <br /> <span>E.g. yourname&#64;domain.com</span>", url: "Please enter a valid url: <br /> <span>E.g. http://www.domain.com</span>", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Please enter a valid number.", digits: "Please enter a digit.", creditcard: "Please enter a valid credit card number.", equalTo: "Please repeat the value.", maxlength: jQuery.validator.format("Please enter no more than {0} characters."), minlength: jQuery.validator.format("Please enter at least {0} characters."), rangelength: jQuery.validator.format("Please enter {0} to {1} character."), range: jQuery.validator.format("Please enter a number between {0} and {1}."), max: jQuery.validator.format("Please enter a number lower or equal {0}."), min: jQuery.validator.format("Please enter a number greater or equal {0}."), customvalidation: "Invalid Input" });

Is not your code?

More
7 years 5 months ago #4426 by Administrator AV
Replied by Administrator AV on topic Calendar button not working
No,

original looks so.
Code:
jQuery(document).ready(function () { jQuery.extend(jQuery.validator.messages, { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email: <br /><span>E.g. yourname&#64;domain.com</span>", url: "Please enter a valid url: <br /><span>E.g. http://www.domain.com</span>", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Please enter a valid number.", digits: "Please enter a digit.", creditcard: "Please enter a valid credit card number.", equalTo: "Please repeat the value.", maxlength: jQuery.validator.format("Please enter no more than {0} characters."), minlength: jQuery.validator.format("Please enter at least {0} characters."), rangelength: jQuery.validator.format("Please enter {0} to {1} character."), range: jQuery.validator.format("Please enter a number between {0} and {1}."), max: jQuery.validator.format("Please enter a number lower or equal {0}."), min: jQuery.validator.format("Please enter a number greater or equal {0}."), customvalidation: "Invalid Input" }); });

You see, there are text indents and no line breaks (without closing " and opening ") in in the email and ulr message text

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
7 years 5 months ago #4428 by ferino
Replied by ferino on topic Calendar button not working
It's probably conflict with some other component, but I just do not know who.

I try language overrides, but no success...

More
7 years 5 months ago - 7 years 5 months ago #4430 by Administrator AV
Replied by Administrator AV on topic Calendar button not working
Remove the <br /> from the translations, when you create language overrides. Use just the text
Zadajte správny email
and
Zadajte správnu url
And of course you have to make these override for the correct language then.
This should work!

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 :-).
Last edit: 7 years 5 months ago by Administrator AV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum