SlideShare a Scribd company logo
Forms
What are the
best practices?
How can you
improve today?!
How do
you nail
Forms?
Image Credit: https://www.flickr.
com/photos/russell_darnell/5547532092
Every page in
commerce is
trying to
convert.
+Ido Green
@greenido
ido-green.appspot.com
Forms
in
General
How
Design efficient
form
eCommerce
Autofill rocks!
Next
Gold Elements!
How?!
Take
advantage of
the device
● Use existing data to
pre-populate fields
● Ensure forms are
auto-fillable by
browsers
● Show users how far
along they are
● Don’t break the
“back” button
Provide visual
calendars when
selecting dates
How to
choose
the best
input
type?
HTML5 input types
url emailTel
More types: https://goo.gl/Hg7HOO
Offer suggestions during input with datalist
Live example: https://goo.gl/RdwFhd
<label for="frmFavChocolate">Type of Chocolate</label>
<input type="text" name="fav-choc" id="frmChocolate"
list="chocType">
<datalist id="chocType">
<option value="white">
<option value="milk">
<option value="dark">
</datalist>
(!) The datalist values are provided as suggestions. Users are not restricted to the suggestions provided.
HTML5 input types
url emailTel
More types: https://goo.gl/Hg7HOO
Optimize text
entry
Let the
browser help
you on-board
users
Dropdowns Should be the UI of Last Resort
Luke Wroblewski - http://goo.gl/7ZmQ4J
Better password form fields
More: https://aerotwist.com/blog/better-password-form-fields/
Label and Name Inputs
More: https://goo.gl/TqLAh2
● Use labels on form
inputs, and make them
visible.
● Use placeholders to
provide guidance.
<label for="frmAddressS">Address</label>
<input type="text" name="ship-address"
required id="frmAddressS"
placeholder="123 Any Street"
autocomplete="shipping street-address">
Label and Name Inputs
More: https://goo.gl/TqLAh2
Leverage the browser’s ability to
auto-complete the form
a. Use established name's for
elements
b. Include the
autocomplete attribute.
Provide real-time validation
Leverage the browser's built-in validation attributes like:
● pattern - <input type="text" pattern="^d{5,6}(?:[-s]d{4})?$" ...>
● required - <input type="text" required pattern= "^...$" ...>
● min / max - <input type="number" min="1" max="13" step="0.5" ...>
More: https://goo.gl/f8N29E
Provide real-time validation
● Use JavaScript and the
Constraints Validation API
for complex validation.
● manage focus when
validation fails.
● Autocorrect when you can!
Provide real-time validation
● Show validation errors in
real time: bit.ly/form-
validation
● If the user tries to submit
an invalid form, show all
fields they need to fix.
eCommerce
Google Confidential and Proprietary
86%
spent in apps
14%
spent in the
browser
Smartphone users spend most of their time in apps
Google Confidential and ProprietarySource: Flurry 2014
Web Forms The Right Way
Google Confidential and Proprietary
94%
of users look to
take commercial
action via the
mobile web
Reach more users looking to spend money
Source: Google/Ipsos 2014 Google Confidential and Proprietary
use
autocomplete
types
30% increase in form fill speed
when using Autofill
(*Chrome usage data)
Optimize for
Autofill
More: https://goo.gl/CGzH9g
4x Increase
in
conversion
66-93% of
Mobile
Commerce
Mobile
Optimized
sites
*Flurry & Business Insider *Forbes - goo.gl/pIbSlz
Forms are the ‘gatekeeper’ for anything (=signup, payment, information etc’)
The Future?!
Web
Components
Web Components - Save you leg work!
● Custom elements can bake in best practices, cutting down
on boilerplate and missed opportunities
● Polymer has built a dedicated set of ECommerce
elements, a.k.a. “Gold Elements” which you can use in
any application
● Live Example
github.com/notwaldorf/polymer-gold-elements-demo
<gold-cc-input name=”cc”></gold-cc-input>
<label for="frmCCNum">Card Number</label>
<input name="cc" id="frmCCNum"
autocomplete="cc-number">
Functionally
equivalent
<gold-cc-input name=”cc” error-message=”Try again” auto-validate></gold-cc-input>
● Built-in support for auto-fill
● Auto-validation attributes
● Display card types
● Custom error messages
Resources
25 Principles
goo.gl/5MbvDK
Resources
bit.ly/pagespeedinsights
bit.ly/mobilefriendlytest
developers.google.com/web/
Ido Green
@greenido
+GreenIdo
ido-green.appspot.com
Thank
you!

More Related Content

PPTX
URL Shortener-4.pptx
PDF
UI/UX Tips & Tricks for developers
PPTX
Introduction to HTML.pptx
PPTX
How to learn HTML in 10 Days
KEY
CSS and CSS3
PPTX
PPTX
Search Engine Optimization
ODP
URL Shortener-4.pptx
UI/UX Tips & Tricks for developers
Introduction to HTML.pptx
How to learn HTML in 10 Days
CSS and CSS3
Search Engine Optimization

What's hot (8)

PDF
HTML5 Básico: Formulários (aula 2)
PPTX
Html ppt
PDF
HTML Dasar : #4 Paragraf
PPT
Using SQL Queries to Insert, Update, Delete, and View Data.ppt
PPTX
Css pseudo-classes
PPT
Java Script ppt
PPTX
Html5 Basic Structure
PPTX
HTML LIST
HTML5 Básico: Formulários (aula 2)
Html ppt
HTML Dasar : #4 Paragraf
Using SQL Queries to Insert, Update, Delete, and View Data.ppt
Css pseudo-classes
Java Script ppt
Html5 Basic Structure
HTML LIST
Ad

Similar to Web Forms The Right Way (20)

PDF
How to make (more) money on the web?
PPT
HTML5 Mullet: Forms & Input Validation
PDF
Best Practices For Ecommerce With Payment & Identity-Yohan Totting (Developer...
PPTX
HTML5 Forms OF DOOM
ODP
Forms part 1 : Increasing conversions with good use of forms
PDF
Design better forms – Mobile UX London
PDF
Web Forms People Don't Hate
PPT
Designing Great Forms
PDF
Why Nobody Fills Out My Forms (Updated)
PDF
Why Nobody Fills Out My Forms
PDF
Why Nobody Fills Out My Forms
PDF
HTML5 Forms - KISS time - Fronteers
PPTX
Data validation in web applications
PPTX
html 5 new form attribute
KEY
Building & Breaking Web Forms with Quaid-JS
PPTX
HTML FORMS.pptx
PDF
8 Checkout optimization Lessons Based on 5+ Years of Testing
 
PPTX
PDF
Ux tips for creating user friendly forms
PDF
Why Nobody Fills Out My Forms 2 - Electric Boogalo
How to make (more) money on the web?
HTML5 Mullet: Forms & Input Validation
Best Practices For Ecommerce With Payment & Identity-Yohan Totting (Developer...
HTML5 Forms OF DOOM
Forms part 1 : Increasing conversions with good use of forms
Design better forms – Mobile UX London
Web Forms People Don't Hate
Designing Great Forms
Why Nobody Fills Out My Forms (Updated)
Why Nobody Fills Out My Forms
Why Nobody Fills Out My Forms
HTML5 Forms - KISS time - Fronteers
Data validation in web applications
html 5 new form attribute
Building & Breaking Web Forms with Quaid-JS
HTML FORMS.pptx
8 Checkout optimization Lessons Based on 5+ Years of Testing
 
Ux tips for creating user friendly forms
Why Nobody Fills Out My Forms 2 - Electric Boogalo
Ad

More from Ido Green (20)

PDF
מדמיון למציאות - 9.2024 - הרצאה במכינת כפר הנשיא
PDF
How to get things done - Lessons from Yahoo, Google, Netflix and Meta
PDF
Crypto 101 and a bit more [Sep-2022]
PPTX
The Future of Continuous Software Updates Is Here
PPTX
Open Source & DevOps Market trends - Open Core Summit
PPTX
DevOps as a competitive advantage
PPTX
Data Driven DevOps & Technologies (swampUP 2019 keynote)
PDF
Create An Amazing Apps For The Google Assistant!
PDF
VUI Design
PDF
Google Assistant - Why? How?
PDF
The Google Assistant - Macro View (October 2017)
PDF
Actions On Google - GDD Europe 2017
PDF
Building conversational experiences with Actions on Google
PDF
Actions On Google - How? Why?
PDF
Startups Best Practices
PDF
Progressive Web Apps For Startups
PDF
Earn More Revenue With Firebase and AdMob
PDF
How To Grow Your User Base?
PDF
Amp Overview #YGLF 2016
PDF
AMP - Accelerated Mobile Pages
מדמיון למציאות - 9.2024 - הרצאה במכינת כפר הנשיא
How to get things done - Lessons from Yahoo, Google, Netflix and Meta
Crypto 101 and a bit more [Sep-2022]
The Future of Continuous Software Updates Is Here
Open Source & DevOps Market trends - Open Core Summit
DevOps as a competitive advantage
Data Driven DevOps & Technologies (swampUP 2019 keynote)
Create An Amazing Apps For The Google Assistant!
VUI Design
Google Assistant - Why? How?
The Google Assistant - Macro View (October 2017)
Actions On Google - GDD Europe 2017
Building conversational experiences with Actions on Google
Actions On Google - How? Why?
Startups Best Practices
Progressive Web Apps For Startups
Earn More Revenue With Firebase and AdMob
How To Grow Your User Base?
Amp Overview #YGLF 2016
AMP - Accelerated Mobile Pages

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Machine Learning_overview_presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
MIND Revenue Release Quarter 2 2025 Press Release
Machine Learning_overview_presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
1. Introduction to Computer Programming.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Spectroscopy.pptx food analysis technology
Spectral efficient network and resource selection model in 5G networks
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A comparative analysis of optical character recognition models for extracting...
Empathic Computing: Creating Shared Understanding
MYSQL Presentation for SQL database connectivity

Web Forms The Right Way