views:

111

answers:

4

I've tried searching for the answer to this question all kinds of ways but with no success.

Is there a list of "standard" names for fields in an HTML form? For example, "First Name", "Home Phone", etc. I suspect there's probably not an official standard but more of a loose convention. I am creating a form and if possible I'd like it to play nicely with form fillers, accessibility software, etc.

What information do form fillers typically use to determine where to put a user's phone number or email address in a form?

+1  A: 

What information do form fillers typically use to determine where to put a user's phone number or email address in a form?

There is no widely applied standard I know of, and most sites pretty much do as they like. I think every automatic form filler has to have the ability to detect those fields intelligently, so I would say you can basically name them as you please.

You could, however, look at what other popular formats like vCard name their elements after. That's probably as close to a standard as you will get.

Pekka
+3  A: 

See http://www.ietf.org/rfc/rfc3106.txt

Also some info about Google toolbar auto fill here http://www.google.com/support/forum/p/Toolbar/thread?tid=7ce6293ebaa69edb&hl=en

Martin Smith
Ahh very nice! I don't think I came across this in my search although with a name like " Field Specifications for E-Commerce" I probably would have glossed over anyway.
Josh Einstein
"This does not specify an Internet standard of any kind" -- and thank goodness for that: those field names are awful :)
Ian Clelland
I'm undecided between +1 for actually presenting somehting like a standard and -1 because the field names really *are* awful :) The vCard ones aren't much better, either.
Pekka
I voted up because it's a good attempt at a standard but you're right there's no way I'm using those field names. :)
Josh Einstein
Google toolbar does recognize those though along with a whole bunch of other key terms that they don't list. I agree that the suggested names are pretty horrible though!
Martin Smith
+1  A: 

I would say no, but I'm sure the makers of form filling software have thought of this. As long as you keep your names relevant they should understand what you mean. Call them things like 'firstName' and not 'formFieldOne' and you should be fine.

Maybe you could have a look at the html of popular websites to see what they call their inputs?

Yeodave
That's a good suggestion. I've thought about checking out the HTML for Google and Windows Live signups because I assume they'd have made their form fillers work with their own forms so hopefully I'll spot some commonalities.
Josh Einstein
A: 

Best practices, standards and guidelines, there is a huge difference between all of these and usually each can be take in a particular context. For example, fo this particular item, there is not standard, especially not a W3C standard in regards to form field naming, however, when taking into consideration items such as acessibility, e.g. Section 508, there are standards.

http://www.access-board.gov/sec508/guide/1194.22.htm

Granted, these are not around the names per sey of the fields themselves but rather how you would construct the label of the names to allow for consumable accessibility (screen readers).

What naming standards such as this come down to is that you should scope out requirements and do tests around usability/accessibility - for your organzation. This means you should name fields (labels and actual controls) in a way in which your organization can easily consume and understand them.

A simple example, at one organization the term 'address' may fly for street, in another it would be confusing and interpreted as the entire mail address.

Joshua