Answered
Hitting Enter Key with online form
When my users hit the enter key instead of clicking on
submit, it just reloads the form and doubles any url variables that
I'm passing. The page reloads itself
<cfif isDefined('form.submit')>
Perform actions
<cfelse>
Display form
</cfif>
The url would be http://192.168.1.1/test.cfm?cfid=3455 When the use hits enter it becomes http://192.168.1.1/test.cfm?cfid=3455cfid=3455. and just keeps adding everytime the user hits enter instead of clicking submit. Is there a way to make the enter key select the submit button by default?
Thanks!
<cfif isDefined('form.submit')>
Perform actions
<cfelse>
Display form
</cfif>
The url would be http://192.168.1.1/test.cfm?cfid=3455 When the use hits enter it becomes http://192.168.1.1/test.cfm?cfid=3455cfid=3455. and just keeps adding everytime the user hits enter instead of clicking submit. Is there a way to make the enter key select the submit button by default?
Thanks!