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
7 years 11 months ago #3053 by mligrani
Replied by mligrani on topic Disabling default Enter key action
Hi Aicha,
could it help providing you the URL of the pilot site? do you have an iOS device to test with?
thanks
regs

massimo

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

thanks a lot, but sadly I have no such device.
Maybe I could try to use an emulator but I'm not sure if that is good enough.

But if you like to you could mail me the link to contact@vi-solutions.de

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 #3055 by mligrani
Replied by mligrani on topic Disabling default Enter key action
Ok,
let's try with the jQuery statement. Can I please ask you a little further help?
So I have 2 visforms, let's say their names are "alpha" and "beta", their ID respectively are 1 and 2.
I would like to disable the enter key for both.

I would add the following <script> section to my <head>:

<script type="text/javascript">
jQuery(document).ready() {
jQuery('input').keypress(function(e) {
var code = (e.keyCode ? e.keyCode : e.which);
if ( (code==13) || (code==10))
{
jQuery(this).blur();
return false;
}
}
};
</script>

Do you think it's ok?
thanks

m.

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

as a spontanious reaction I would say there is an e.preventDefault(); missing in the if statement of this code and I would have thought that you would bind the event handler not to all input elements on your website (Query('input') but to a specific form which has the id-Attribut visform1 respectively visform2 (if you display the form via a menu item) as in jQuery('#visform1, #visform2').

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