In testing a new form, I've had a couple of testers submit the form before they'd completed it because they hit the "Enter" key. I know it's pretty normal for "Enter" to result in submitting a form if the cursor is not in a field that accepts "Enter" for line breaks, but I'm wondering if it's possible to disable this?
What would be needed to make it so that "Enter" can't work as an alternative to clicking on the Submit button?
Thanks,
Scott
Hi Scott,
I think that there are some JavaScript solutions - Google will find you some suggestions.
You could also make a required field near the end so that people will get a validation error if they submit too early.
Bob
Thanks Bob. I did think about the required field near the end, but I've also found some javascript solutions that I may try.
Scott
Hi indra,
I wish Scott will share his code but a quick Google search will bring some useful results, "JS disable submit enter clicked" or so ?
Cheers,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
Thanks a lot.
A quick try shows plenty of information.
However, I have no time to do the experiment now.
I'll try it later and share it here once I find the trick.
Regards,
Indra
Thanks Scott!
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.