Form API

Disable login field memory

Here's a tweak that makes the login form a little more secure. It attempts to disable the auto-complete features of browsers to remember the values of the username and password fields.

Condensing Forms with Help Icons

A project I'm currently working to clean up a bit has some lengthy forms in it. They're already broken up a bit with CCK Fieldgroup Tabs, but I wanted to trim them down a bit further.

By theming the form elements, we can take the description of a field and use it as the title attribute of a small help icon image attached to the field. Then the user can hover over that to see the description, but it takes up much less vertical screen real estate.

Initializing and Refreshing a Multi-Step Form

I've been working on a relatively complex multi-step form for a while now. It takes a URL argument that represents a set of stored options to control display and behavior. Thanks to $form_state['storage'] that is pretty easy to grab once and keep through all the steps.

Syndicate content