Saturday, February 11, 2012
  Search
Support Forum
Submit button always has focus
Last Post 14 Jan 2010 11:41 PM by LhasaLabs. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
LhasaLabs
New Member
New Member
Send Private Message
Posts:3


--
13 Jan 2010 08:03 PM  
Hi. We have FormMaster 2008 v2.0.5 installed on a DNN 5.x site. We have a form with multiple textboxes, radio button fields, drop-down list fields, etc. If a user hits anyplace on the form (say, after completing a textbox entry, which is common behavior), the form submit action is taken and the form is submitted prematurely. How do we remove focus from the submit button until the user actually clicks the submit button. FYI, we have replaced the default submit link with a grahical submit button. Any insights?

Thanks,
LoriLee
Code 5
Moderator
Advanced Member
Advanced Member
Send Private Message
Posts:907


--
14 Jan 2010 12:11 PM  
Unfortunatly this is a problem with ASP.NET in general for example. In DNN 5.2.1 go into the Admin Settings, put your cursor in the Title field and hit Enter. You will probaly wind up on the Basic Settings page, not what was expected.

And to your point of the submit button having focus on a form. that is normal behavior for any HTML form. In any HTML form when one of the form fields has focus hitting the enter key will submit the form, been that way for years. Users who do this are used to apps like Excel where the Enter Key brings you to the next field down. 

To prevent the form from being submitted in this way, try a required field validator used on a field that is needed and placed toward the end of the form. If it is a big form make sure to use an alert box (you can set this up in Validation Settings)
LhasaLabs
New Member
New Member
Send Private Message
Posts:3


--
14 Jan 2010 11:41 PM  
Thanks for your reply. After I posted this I noticed that this was standard behavior on all forms everywhere. Duh...

I appreciate the response. We use formmaster in nearly every DNN instance we have - it's part of our standard build toolkit. Thanks for providing such a great product and support.

-LoriLee
You are not authorized to post a reply.

Active Forums 4.2
Copyright 2004-2012 Code 5 Systems, LLC.