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.

Submit button not working when checkbox is enabled

More
10 years 3 months ago #364 by kanu
My version of Joomla is 2.5.6
When a checkbox field is published submit will not work. When I unpublish it, it works.My form has 12 total fields. Any ideas will be very helpful. Thanks

More
10 years 3 months ago #365 by Administrator AV
Replied by Administrator AV on topic Submit button not working when checkbox is enabled
Hi Kanu,

can I have a link to the form please (with the checkbox enabled).

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
10 years 3 months ago #366 by kanu
Here is the link: site1.bricknbrick.com/index.php/landlords/renters-survey

Thanks for your assistance

More
10 years 3 months ago #368 by Administrator AV
Replied by Administrator AV on topic Submit button not working when checkbox is enabled
Hi kanu,

I took a look at the link. When I look at the forms code everything looks ok. But nevertheless submit doesn't work properly as you described.

Visforms rely on JavaScript to check, if user inputs fulfill forms requirements (like input is required). Usually you would get an error message when a "required" field is left empty and you press submit button.

your case fields with inputs that don't fulfill requirements are marked (with a red border) but the error message is missing. Thats very weird and would mean, that a part of the form validation works properly others not. I suspect that submitting the form or checking the checkbox is a part that doesn't work.

Usually when you rightclick the website (form) and choose view page source, so that you can see the html source code, you would have script tags that include mootools-core.js, core.js and formcheck.js in the head section of html code. These links are include by visforms using standard Joomla Framework code.

I think that your template changes these script calls (because the script tags I mentioned above are missing and there are other scripts tags instead) and somehow interferes with the JavaScript code of formcheck as well. You could try to test this by changing the template of your website to a Joomla! default template (i.e.Beez_20) and test if you are able to submit form then. (which I am quite confident of).

I don't know much about the template you use. But maybe this information may give you some clue where to start looking. Maybe there is the possibility to use the mootools framework of Joomla! without any interference.

Let me know how you come along.

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
10 years 3 months ago #375 by Administrator AV
Replied by Administrator AV on topic Submit button not working when checkbox is enabled
Hi kanu,

today I just stumble upon the solution of your Problem. It's so tiny I overlooked it (being to much conserned with potetial javascript issues).

If you create a field of type checkbox you always have to file the "value" parameter of that fields. You left it empty. That's the problem. I think that's good news, isn't it?

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

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum