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.

Disabling default Enter key action

More
8 years 13 hours ago - 8 years 12 hours ago #3036 by mligrani
Disabling default Enter key action was created by mligrani
Hi guys,
time by time discovering new features of this great extension.
now it comes to default action for "enter" key on the PC keyboard.

it's associated to the "submit" form button, but in our project it should not, in order to prevent uncomplete record submission, when the user presses "Enter" expecting only to go to the next field.

Submit button should be linked for our needs only to the next action after the last field has been populated.
Waiting for (maybe) a more customizable solution, would it be possible simply to disable the association between the Enter key and the submit button?
thank you in advance
regards

massimo
Last edit: 8 years 12 hours ago by mligrani. Reason: adding icon

More
8 years 11 hours ago #3037 by Administrator AV
Replied by Administrator AV on topic Disabling default Enter key action
Hi,

thanks for your suggestion and your request.

At the moment I can see no simple way to create a customizable solution to disable the association between the Enter key and the submit button. This is mostly due to the fact, that there is already a lot of javascript running in order to validate user inputs properly, to make conditional fields work, to create multi page forms with result page and progress indicator....

But maybe the feature to add a result page to a form, which is part of the multi page form extension , could solve your problem. If you add a result page to a form, as far as I can see, the association is disabled and only a click on a button triggers the buttons event.

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: mligrani

More
8 years 4 hours ago #3038 by mligrani
Replied by mligrani on topic Disabling default Enter key action
Hi Aicha, and thank you once more for your quick answer.
So, a little bad news.. well, I will think to your solution, I'm not sure it's good for us because of some requirements of the project (basically related to the short number of steps required to provide data from the "field" operators, a kind of a quick guided ride through the boxes to fill and a final "submit")
In case I will purchase the extension,
anyway thank you again.

regards

Massimo

More
7 years 11 months ago #3039 by Administrator AV
Replied by Administrator AV on topic Disabling default Enter key action
Hi Massimo,

maybe this post on stackoverflow can be of help.

You would have to to add a similar piece of javascript code to Visforms (Wrap it in a jQuery(document).ready(); statement and use the proper form id) for example using a template override. Please use jQuery instead of $.
In theory 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 :-).
The following user(s) said Thank You: mligrani

More
7 years 11 months ago #3051 by mligrani
Replied by mligrani on topic Disabling default Enter key action
Hi Aicha, and thank you for the suggestion. I also found that tip by myself doin' wide search about this topic.
Is it correct to add that code to the main index.php file in a <script> tag in the <head>section?
moreover, it seems the form does not display correctly on iOS devices (iPhone), in Safari browser. It appears correctly when accessed, but as you tap on any data field, the labels move left, remaining partially hidden to the user. Do you have any suggestion?

More
7 years 11 months ago #3052 by Administrator AV
Replied by Administrator AV on topic Disabling default Enter key action
Hi,

usually it is o.k. to add the script via script tag in the head section of the main index.php

I think, that there was a post on this forum about a problem with displaying the form on some mobile ios devices, but actually we sadly found no reproducable description of the problem and therefore no solution for this and I have no means to reproduce and test it.

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