Agaric Design Collective

For usability, Drupal should focus on the first relevant form field

By Benjamin Melançon
on 08 Oct
0 comments

Key words and phrases

jquery focus on first drupal form on the page usability enhancement automatically highlight form field element in keyboard navigation

Tags

Description

For a basic, but nice, usability improvement Drupal, for all pages where a form is the center of attention, the first form field that people should type in should have the keyboard focus given to it.

Here's a method for doing it with JQuery: http://www.gerd-riesselmann.net/development/focus-first-form-field-with-...

This would have to skip the search field, which is often at the top, unless the search field were the only form field on a page, in which case it might make a lot of sense to target the search field. It should also not focus on send-to-friend and other miscellaneous fields in sidebars or other non-main forms.

Of course, there's a module for thatTM

http://drupal.org/project/focus

 

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.