Best Practices For Form Design

112
1 BEST PRACTICES FOR FORM DESIGN LUKE WROBLEWSKI IA SUMMIT 2007

description

Luke Wroblewski talks about the importance of clear form design.

Transcript of Best Practices For Form Design

Page 1: Best Practices For Form Design

1

BEST PRACTICES FORFORM DESIGNLUKE WROBLEWSKIIA SUMMIT 2007

Page 2: Best Practices For Form Design

2

Luke Wroblewski

Yahoo! Inc.• Senior Principal Designer

LukeW Interface Designs• Principal & Founder• Product design & strategy services

Author• Site-Seeing: A Visual Approach to Web Usability

(Wiley & Sons)• Functioning Form: Web applications, product

strategy, & interface design articlesPreviously

• eBay Inc., Lead Designer• University of Illinois, Instructor• NCSA, Senior Designer

http://www.lukew.com

Page 3: Best Practices For Form Design

3

WHY DOES FORMDESIGN MATTER?

Page 4: Best Practices For Form Design

4

SHOPPING

http://www.flickr.com/photos/stitch/187139723/

Page 5: Best Practices For Form Design

5

SHOPPINGONLINE

Page 6: Best Practices For Form Design

6

ACCESS

Images from Flickr users katielips, pealco, and *nathan

Page 7: Best Practices For Form Design

7

ACCESSONLINE

Page 8: Best Practices For Form Design

8

DATA INPUT

Page 9: Best Practices For Form Design

9

DATA INPUTONLINE

Page 10: Best Practices For Form Design

10

Why Forms Matter

• How customers “talk” to companies online• Commerce ($)

• User: Enable purchasing• Business: Maximize sales

• Access (membership)• User: Enable participation• Business: Increase customers & grow communities

• Engagement• User: Enable information entry & manipulation• Business: Accumulate content & data

Page 11: Best Practices For Form Design

11

Design Principles

• Minimize the pain• No one likes filing in forms• Smart defaults, inline validation, forgiving inputs

• Illuminate a path to completion

• Consider the context• Familiar vs. foreign• Frequently used vs. rarely used

• Ensure consistent communication• Errors, Help, Success• Single voice despite many stakeholders

Page 12: Best Practices For Form Design

12

Analyzing Performance

• Usability Testing• Errors, issues, assists, completion rates, time spent per

task, satisfaction scores

• Eye Tracking• Completion times, fixations, saccades

• Customer Support• Top problems, number of incidents

• Best Practices• Common solutions, unique approaches

• Site Tracking• Completion rates, entry points, exit points, elements

utilized, data entered

Page 13: Best Practices For Form Design

13

Design Patterns

Information

Interaction

Feedback

+

+

Visual Communication

Affordances

Engagement

Disclosure

Response

Verification

Page 14: Best Practices For Form Design

14

INFORMATION

Page 15: Best Practices For Form Design

15

Information

• Layout• Label positioning• Content groupings

• Input Affordances• Formats, required fields

• Actions• Primary & secondary

• Help & Tips• Visual Hierarchy

Page 16: Best Practices For Form Design

16

Top Aligned Labels

• When data beingcollected is familiar

• Minimize time tocompletion

• Require more verticalspace

• Spacing or contrast isvital to enableefficient scanning

• Flexibility forlocalization andcomplex inputs

Page 17: Best Practices For Form Design

17

Top-aligned Labels

Page 18: Best Practices For Form Design

18

Right Aligned Labels

• Clear associationbetween label andfield

• Requires less verticalspace

• More difficult to justscan labels due toleft rag

• Fast completiontimes

Page 19: Best Practices For Form Design

19

Right-aligned labels

Page 20: Best Practices For Form Design

20

Left Aligned Labels

• When data required isunfamiliar

• Enables labelscanning

• Less clear associationbetween label andfield

• Requires less verticalspace

• Changing label lengthmay impair layout

Page 21: Best Practices For Form Design

21

Left-aligned labels

Page 22: Best Practices For Form Design

22

Eye-tracking Data

• July 2006 study by MatteoPenzo

• Left-aligned labels• Easily associated labels with

the proper input fields• Excessive distances between

labels inputs forced users totake more time

• Right-aligned labels• Reduced overall number of

fixations by nearly half• Form completion times were

cut nearly in half• Top-aligned labels

• Permitted users to captureboth labels & inputs with asingle eye movement’

• Fastest completion times

Page 23: Best Practices For Form Design

23

• For reducedcompletion times &familiar data input: topaligned

• When vertical screenspace is a constraint:right aligned

• For unfamiliar, oradvanced data entry:left aligned

BEST PRACTICE

Page 24: Best Practices For Form Design

24

Required Form Fields

• Indication of required fields ismost useful when• There are lots of fields• But very few are required• Enables users to scan form to see

what needs to be filled in

• Indication of optional fields ismost useful when• Very few fields are optional

• Neither is realy useful when• All fields are required

Page 25: Best Practices For Form Design

25

All fields required

Page 26: Best Practices For Form Design

26

All fields required

Page 27: Best Practices For Form Design

27

Most fields required

Page 28: Best Practices For Form Design

28

Few fields optional

Page 29: Best Practices For Form Design

29

Page 30: Best Practices For Form Design

30

Page 31: Best Practices For Form Design

31

• Try to avoid optionalfields

• If most fields arerequired: indicateoptional fields

• If most fields areoptional: indicaterequired fields

• Text is best, but * oftenworks for requiredfields

• Associate indicatorswith labels

BEST PRACTICE

Page 32: Best Practices For Form Design

32

Field Lengths

• Field lengths canprovide valuableaffordances

• Appropriate fieldlengths provide enoughspace for inputs

• Random field lengthsmay add visual noise toa form

Page 33: Best Practices For Form Design

33

Page 34: Best Practices For Form Design

34

Page 35: Best Practices For Form Design

35

Page 36: Best Practices For Form Design

36

• When possible, usefield length as anaffordance

• Otherwise consider aconsistent length thatprovides enough roomfor inputs

BEST PRACTICE

Page 37: Best Practices For Form Design

37

Content Grouping

• Content relationshipsprovide a structuredway to organize a form

• Groupings provide• A way to scan

information required at ahigh level

• A sense of howinformation within a formis related

Page 38: Best Practices For Form Design

38

Lots of content grouping

Page 39: Best Practices For Form Design

39

Excessive visual noise

Page 40: Best Practices For Form Design

40

Minimum amount necessary

Page 41: Best Practices For Form Design

41

Page 42: Best Practices For Form Design

42

Minimum amount necessary

Page 43: Best Practices For Form Design

43

Page 44: Best Practices For Form Design

44

• Use relevant contentgroupings to organizeforms

• Use the minimumamount of visualelements necessary tocommunicate usefulrelationships

BEST PRACTICE

Page 45: Best Practices For Form Design

45

Actions

• Not all form actions are equal• Reset, Cancel, & Go Back are secondary actions: rarely

need to be used (if at all)• Save, Continue, & Submit are primary actions: directly

responsible for form completion

• The visual presentation of actions should matchtheir importance

Page 46: Best Practices For Form Design

46

Page 47: Best Practices For Form Design

47

Page 48: Best Practices For Form Design

48

• Avoid secondaryactions if possible

• Otherwise, ensure aclear visual distinctionbetween primary &secondary actions

BEST PRACTICE

Page 49: Best Practices For Form Design

49

Help & Tips

• Help & Tips are useful when:• Asking for unfamiliar data• Users may question why data is being requested• There are recommended ways of providing data• Certain data requests are optional

• However, Help & Tips can quickly overwhelm aform if overused

• In these cases, you may want to consider adynamic solution• Automatic inline exposure• User activated inline exposure• User activated section exposure

Page 50: Best Practices For Form Design

50

Help Text

Page 51: Best Practices For Form Design

51

Lots of Help/Tips

Page 52: Best Practices For Form Design

52

Page 53: Best Practices For Form Design

53

Automatic inline exposure

Page 54: Best Practices For Form Design

54

Automatic inline exposure

Page 55: Best Practices For Form Design

55

User-activated inline exposure

Page 56: Best Practices For Form Design

56

User-activated inline exposure

Page 57: Best Practices For Form Design

57

User-activated section exposure

Page 58: Best Practices For Form Design

58

• Minimize the amount ofhelp & tips required tofill out a form

• Help visible andadjacent to a datarequest is most useful

• When lots of unfamiliardata is beingrequested, considerusing a dynamic helpsystem

BEST PRACTICE

Page 59: Best Practices For Form Design

59

INTERACTION

Page 60: Best Practices For Form Design

60

Interaction

• Path to Completion• “Tabbing”• Progressive Disclosure• Exposing dependencies

Page 61: Best Practices For Form Design

61

Path to Completion

• Primary goal for every form iscompletion

• Every input requires consideration &action• Remove all unnecessary data requests• Enable flexible data input

• Provide a clear path• Enable smart defaults

Page 62: Best Practices For Form Design

62

Remove Unnecessary Inputs

Page 63: Best Practices For Form Design

63

Flexible Data Input

(555) 123-4444555-123-4444555 123 4444555.123.44445551234444

Page 64: Best Practices For Form Design

64

Smart Defaults

Page 65: Best Practices For Form Design

65

Path to Completion

Page 66: Best Practices For Form Design

66

Clear Path to Completion

Page 67: Best Practices For Form Design

67

Path to completion

Page 68: Best Practices For Form Design

68

• Remove allunnecessary datarequests

• Enable smart defaults• Employ flexible data

entry• Illuminate a clear path

to completion• For long forms, show

progress & save

BEST PRACTICE

Page 69: Best Practices For Form Design

69

Tabbing

• Many users interact with a form by“tabbing” between fields

• Proper HTML markup can ensuretabbing works as expected

• Multi-column form layouts may conflictwith expected tabbing behavior

Page 70: Best Practices For Form Design

70

Page 71: Best Practices For Form Design

71

• Remember to accountfor tabbing behavior

• Use the tabindexattribute to controltabbing order

• Consider tabbingexpectations whenlaying out forms

BEST PRACTICE

Page 72: Best Practices For Form Design

72

Progressive Disclosure

• Not all users require all availableoptions all the time

• Progressive disclosure providesadditional options when appropriate• Advanced options• Gradual engagement

Page 73: Best Practices For Form Design

73

Exposing Options

Page 74: Best Practices For Form Design

74

Exposing Options

Page 75: Best Practices For Form Design

75

Dialog

Page 76: Best Practices For Form Design

76

Progressive Disclosure

Page 77: Best Practices For Form Design

77

Gradual Engagement

Page 78: Best Practices For Form Design

78

Page 79: Best Practices For Form Design

79

• Map progressivedisclosure toprioritized user needs

• Most effective whenuser-initiated

• Maintain a consistentapproach

BEST PRACTICE

Page 80: Best Practices For Form Design

80

Selection Dependent Inputs

• Sometimes an initial data input requiresor enables additional inputs• More options become available because of

an initial input• Further clarification required due to initial

input

Page 81: Best Practices For Form Design

81

Selection Dependent Inputs

Page 82: Best Practices For Form Design

82

Page Level

Section Tabs

Section Finger Tabs

Expose Below

Section Selectors

Expose Within

Page 83: Best Practices For Form Design

83

Inactive Until Selected Exposed & Grouped

Page 84: Best Practices For Form Design

84

Exposing Dependent Inputs

• Page Level• Requires additional step

• Section Tabs• Often go unnoticed• Require smart defaults

• Finger Section Tabs• Follow path to completion scan line

• Section Selectors• Effectively Group information• Hide some options

• Expose Below & Expose Within• Potential for confusion

• Inactive Until Selected & Exposed within Groups• Association between primary selection is impaired

Page 85: Best Practices For Form Design

85

• Maintain clearrelationship betweeninitial selection options

• Clearly associateadditional inputs withtheir trigger

• Avoid “jumping” thatdisassociates initialselection options

BEST PRACTICE

Page 86: Best Practices For Form Design

86

FEEDBACK

Page 87: Best Practices For Form Design

87

Feedback

• Inline validation• Assistance

• Errors• Indication & Resolution

• Progress• Indication

• Success• Verification

Page 88: Best Practices For Form Design

88

Inline Validation

• Provide direct feedback as data isentered• Validate inputs• Suggest valid inputs• Help users stay within limits

Page 89: Best Practices For Form Design

89

Password Validation

Page 90: Best Practices For Form Design

90

Unique User Name Validation

Page 91: Best Practices For Form Design

91

Valid Input Suggestions

Page 92: Best Practices For Form Design

92

Maximum Character Count

Page 93: Best Practices For Form Design

93

• Use inline validation forinputs that havepotentially high errorrates

• Use suggested inputsto disambiguate

• Communicate limits

BEST PRACTICE

Page 94: Best Practices For Form Design

94

Errors

• Errors are used to ensure all requireddata is provided and valid• Clear labels, affordances, help/tips &

validation can help reduce errors

• But some errors may still occur• Provide clear resolution in as few steps

as possible

Page 95: Best Practices For Form Design

95

Error Messaging

Page 96: Best Practices For Form Design

96

Short Forms: too much?

Page 97: Best Practices For Form Design

97

Short Forms

Page 98: Best Practices For Form Design

98

Short Forms

Page 99: Best Practices For Form Design

99

Page 100: Best Practices For Form Design

100

• Clearly communicatean error has occurred:top placement, visualcontrast

• Provide actionableremedies to correcterrors

• Associate responsiblefields with primaryerror message

• “Double” the visuallanguage where errorshave occurred

BEST PRACTICE

Page 101: Best Practices For Form Design

101

Progress

• Sometimes actions require some time toprocess• Form submission• Data calculations• Uploads

• Provide feedback when an action is inprogress

Page 102: Best Practices For Form Design

102

Disable Submit Button

Page 103: Best Practices For Form Design

103

• Provide indication oftasks in progress

• Disable “submit”button after user clicksit to avoid duplicatesubmissions

BEST PRACTICE

Page 104: Best Practices For Form Design

104

Success

• After successful form completionconfirm data input in context• On updated page• On revised form

• Provide feedback via• Message (removable)• Animated Indicator

Page 105: Best Practices For Form Design

105

Page 106: Best Practices For Form Design

106

Page 107: Best Practices For Form Design

107

Animated Indication

Page 108: Best Practices For Form Design

108

• Clearly communicate adata submission hasbeen successful

• Provide feedback incontext of datasubmitted

BEST PRACTICE

Page 109: Best Practices For Form Design

109

Additional Tips

• Avoid changing inputs provided byusers• With later inputs• After an error has occurred

• Let users know if difficult to obtaininformation is required prior to sendingthem to a form

Page 110: Best Practices For Form Design

110

Accessibility & Mark-up

• Use <label> tags to associate labels with inputs• Properly read by screen readers• Most browsers treat text with <label> tags as

clickable: larger actions• Use the tabindex attribute to provide a “tabbing” path

• Provides control over tabbing order• Enables forms to be navigated by keyboard

• Consider the accesskey attribute for additionalkeyboard support• Direct access to associated input fields

• Consider <fieldset> to group related form fields

Page 111: Best Practices For Form Design

111

Web Form Creation Tools

• Wufoo• http://www.wufoo.com

• Form Assembly• http://www.formassembly.com

• icebrrg• http://www.icebrrg.com

Page 112: Best Practices For Form Design

112

For more information…

• Functioning Form• www.lukew.com/ff/

• Site-Seeing: A VisualApproach to Web Usability• Wiley & Sons

• Drop me a note• [email protected]