The document outlines best practices for designing effective forms in eCommerce, emphasizing the importance of autofill, real-time validation, and clear labeling of input fields. It recommends using HTML5 input types, leveraging browser capabilities for autocomplete, and managing focus during validation failures. Additionally, it highlights the potential for increased conversion rates by optimizing forms for mobile use and suggests utilizing web components for improved efficiency.
Introduction to forms and best practices for improvement in eCommerce applications.
The importance of forms in every page of eCommerce and general overview of form usage.
Best design principles and HTML5 input types to enhance form usability and user experience.
Implementing real-time validation techniques to improve form accuracy and user feedback.
Statistics on mobile web usage and the impact of forms on conversion rates and eCommerce.
Future of eCommerce forms using web components and the benefits of Polymer's Gold Elements.Further resources and information on form usability, performance insights, and best practices.
Offer suggestions duringinput 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.
Label and NameInputs
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">
19.
Label and NameInputs
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
●Use JavaScript and the
Constraints Validation API
for complex validation.
● manage focus when
validation fails.
● Autocorrect when you can!
22.
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.
Google Confidential andProprietary
86%
spent in apps
14%
spent in the
browser
Smartphone users spend most of their time in apps
Google Confidential and ProprietarySource: Flurry 2014
26.
Google Confidential andProprietary
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
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