SlideShare a Scribd company logo
1 of 29
Download to read offline
HTML 5 Forms in Matrix!
Dave Letorey – Squiz UK!
@dletorey!
HTML5 Form Input Types!
•  There are a number of new input
   types in the HTML 5 spec!
 •    Date!             •    Number!
 •    Time!             •    Range!
 •    Month!            •    Tel!
 •    Week!             •    URL!
 •    Datetime-local!   •    Color!
 •    Email!            •    Search!
HTML5 Input Types!
•  All of these new input types, if not
   supported by the users browser, will
   fallback to Text input fields!
Creating an HTML 5 form in
Matrix!
•  As these new input types are not in
   Matrix, these all need to be added as
   Text field type!
•  This is good as the fallback type is a
   text type!
Changing the Default Output!
•  This is Achieved using Page Contents
   & Thank You bodycopies!
Page Contents code!
<input name="qxxx:qy" id="xxx:qy"type="zzz" />!
Where: !
•  xxx is the assetid for the form/section!
•  y is the question number!
•  zzz is the input type e.g. email, text, tel,
  date, time, etc.!
Thank you code!
zzz: %response_xxx_qy%!
Where: !
•  xxx is the assetid for the form/
  section!
•  y is the question number!
•  zzz is the name of your question.!
Required attribute!
•  HTML5 form inputs have a required
   attribute!
•  The browser will then add a message
   if it is not filled in!
Required syntax!
<input type="text" required />!
                 or!
      <input type="text"
    required="required" />!
!
HTML5 does not require the quotes!
Autofocus attribute!
This attribute will give focus to an input
field when the page is loaded!
Syntax:!
        <input type="text"
             autofocus />!
!
Placeholder attribute!
The placeholder attribute is used to
populate text that gives the user a hint
as to what to do. !
The text is removed when the field has
focus!
Placeholder syntax!
      <input type="text"
     placeholder="http://
     www.example.com" />!
!
Pattern attribute!
The input types: email, number, url, etc
are really baked-in regular expression!
Using the pattern attribute you can add
regular expressions to any input type!
Syntax:!
        <input type="text"
     pattern="[reg-exp]" />!
Min Max attribute!!
A Min & Max can be set on Date, Time,
Number, Range, etc input types!
Syntax:!
       <input type="date"
         min="1969-08-26"
       max="2012-07-4" />!
!
Step attribute!
For input types that involve numbers,
e.g. you can make them step in
increments!
Syntax:!
  <input type="range" min="0"
      max="100" step="5" />!
!
Styling Input fields with CSS!
CSS3 introduced 2 new pseudo classes for
form inputs!
input:valid {!
 !background-color: green;!
}!
input:invalid {!
 !background-color: red;!
}!
!
Why should I care about this?!
•  It makes it easier for users to fill in
   your forms!
•  It makes forms much more accessible!
Input Support!




   supported !partial!not supported!
Attribute Support!




   supported !partial!not supported!
http://wufoo.com/html5 !
type="date"!
type="time"!
type="range"!
type="email"!
Modernizr + Polyfills!
•  Modernizr is a JavaScript file that
   detects if a browser supports the new
   features!
  •  http://modernizr.com/!
•  Polyfills can be used to add these
   new input fields and attributes into
   browser that do not support them!
Modernizr + Polyfills!
•  Polyfills:!
  •  webforms2

     https://github.com/
     westonruter/webforms2!
  •  html5forms

     https://github.com/zoltan-
     dulac/html5Forms.js!
Resources!
HTML5 forms!
•  Form Input types:

   http://bit.ly/sfusers01!
•  HTML 5 rocks:

   http://bit.ly/sfusers02!
•  Dive into HTML 5:

   http://bit.ly/sfusers03!
•  Introducing HTML5:

   http://bit.ly/sfusers04!
Resources!
Support!
•  Can I Use:

   http://bit.ly/sfusers05!
•  Current Support:

   http://bit.ly/sfusers06!
Resources!
Polyfills!
•  Progressively enhancing HTML5 forms:

   http://bit.ly/sfusers07!
•  Making HTML5 & CSS3 work with Polyfills & Shims:

   http://bit.ly/sfusers08!
•  Using modernizr & html5forms:

   http://bit.ly/sfusers09!
•  Modernizr:

   http://bit.ly/sfusers10!
•  html5forms.js:

   http://bit.ly/sfusers11!
•  webforms2:

   http://bit.ly/sfusers12!
Resources!
Example!
•  Example you can play with:

   http://bit.ly/sfusers13!

More Related Content

Similar to Html5 Forms in Squiz Matrix - Dave Letorey

css and Input attributes
css and Input attributescss and Input attributes
css and Input attributesSiji P
 
Training HTML5 CSS3 Ilkom IPB
Training HTML5 CSS3 Ilkom IPBTraining HTML5 CSS3 Ilkom IPB
Training HTML5 CSS3 Ilkom IPBWahyu Putra
 
Journey To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The SkeletonJourney To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The SkeletonIrfan Maulana
 
網頁程式設計
網頁程式設計網頁程式設計
網頁程式設計傳錡 蕭
 
[Pardot Now] Designing within Pardot
[Pardot Now] Designing within Pardot[Pardot Now] Designing within Pardot
[Pardot Now] Designing within PardotPardot
 
Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)Salman Memon
 
Web design training , Web Design Training In Kolkata
Web design training , Web Design Training In KolkataWeb design training , Web Design Training In Kolkata
Web design training , Web Design Training In KolkataW3webschool
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxkarthiksmart21
 
ICONUK 2018 - Do You Wanna Build a Chatbot
ICONUK 2018 - Do You Wanna Build a ChatbotICONUK 2018 - Do You Wanna Build a Chatbot
ICONUK 2018 - Do You Wanna Build a ChatbotPaul Withers
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptxMattMarino13
 
Selfish Accessibility — CodeDaze
Selfish Accessibility — CodeDazeSelfish Accessibility — CodeDaze
Selfish Accessibility — CodeDazeAdrian Roselli
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML FormNosheen Qamar
 
Perfect Styling - How to write better CSS
Perfect Styling - How to write better CSSPerfect Styling - How to write better CSS
Perfect Styling - How to write better CSSArtem Tabalin
 
Wordcamp St. Louis - Clean Coding
Wordcamp St. Louis - Clean CodingWordcamp St. Louis - Clean Coding
Wordcamp St. Louis - Clean Codinginspector_fegter
 
Getting Information through HTML Forms
Getting Information through HTML FormsGetting Information through HTML Forms
Getting Information through HTML FormsMike Crabb
 
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...Paul Hunt
 
SPSBE building an faq for end users
SPSBE building an faq for end usersSPSBE building an faq for end users
SPSBE building an faq for end usersPaul Hunt
 

Similar to Html5 Forms in Squiz Matrix - Dave Letorey (20)

css and Input attributes
css and Input attributescss and Input attributes
css and Input attributes
 
Training HTML5 CSS3 Ilkom IPB
Training HTML5 CSS3 Ilkom IPBTraining HTML5 CSS3 Ilkom IPB
Training HTML5 CSS3 Ilkom IPB
 
Journey To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The SkeletonJourney To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The Skeleton
 
網頁程式設計
網頁程式設計網頁程式設計
網頁程式設計
 
[Pardot Now] Designing within Pardot
[Pardot Now] Designing within Pardot[Pardot Now] Designing within Pardot
[Pardot Now] Designing within Pardot
 
Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)
 
Web design training , Web Design Training In Kolkata
Web design training , Web Design Training In KolkataWeb design training , Web Design Training In Kolkata
Web design training , Web Design Training In Kolkata
 
CSS
CSSCSS
CSS
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
ICONUK 2018 - Do You Wanna Build a Chatbot
ICONUK 2018 - Do You Wanna Build a ChatbotICONUK 2018 - Do You Wanna Build a Chatbot
ICONUK 2018 - Do You Wanna Build a Chatbot
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx
 
Selfish Accessibility — CodeDaze
Selfish Accessibility — CodeDazeSelfish Accessibility — CodeDaze
Selfish Accessibility — CodeDaze
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
Perfect Styling - How to write better CSS
Perfect Styling - How to write better CSSPerfect Styling - How to write better CSS
Perfect Styling - How to write better CSS
 
Wordcamp St. Louis - Clean Coding
Wordcamp St. Louis - Clean CodingWordcamp St. Louis - Clean Coding
Wordcamp St. Louis - Clean Coding
 
Getting Information through HTML Forms
Getting Information through HTML FormsGetting Information through HTML Forms
Getting Information through HTML Forms
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
 
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...
Creating an FAQ for end users, An evolution of an idea - SharePoint Saturday ...
 
SPSBE building an faq for end users
SPSBE building an faq for end usersSPSBE building an faq for end users
SPSBE building an faq for end users
 

More from Squiz

Squiz and Funnelback Scotland Seminar May 2013
Squiz and Funnelback Scotland Seminar May 2013Squiz and Funnelback Scotland Seminar May 2013
Squiz and Funnelback Scotland Seminar May 2013Squiz
 
Hot Topics in Web Experience Management - Squiz Seminar May 2013
Hot Topics in Web Experience Management - Squiz Seminar May 2013Hot Topics in Web Experience Management - Squiz Seminar May 2013
Hot Topics in Web Experience Management - Squiz Seminar May 2013Squiz
 
Squiz & Bodleian Libraries Project - Event Presentation Slides
Squiz & Bodleian Libraries Project - Event Presentation SlidesSquiz & Bodleian Libraries Project - Event Presentation Slides
Squiz & Bodleian Libraries Project - Event Presentation SlidesSquiz
 
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012Hot Topics in Web Experience Management - Squiz Seminar Nov 2012
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012Squiz
 
Squiz Roadmap and Edit+ - Squiz Scotland User Summit
Squiz Roadmap and Edit+ - Squiz Scotland User SummitSquiz Roadmap and Edit+ - Squiz Scotland User Summit
Squiz Roadmap and Edit+ - Squiz Scotland User SummitSquiz
 
Answering the Mobile Challenge - Squiz Scotland User Summit
Answering the Mobile Challenge - Squiz Scotland User SummitAnswering the Mobile Challenge - Squiz Scotland User Summit
Answering the Mobile Challenge - Squiz Scotland User SummitSquiz
 
Squiz Seminar July 2012
Squiz Seminar July 2012Squiz Seminar July 2012
Squiz Seminar July 2012Squiz
 
Squiz London Seminar May 2012
Squiz London Seminar May 2012Squiz London Seminar May 2012
Squiz London Seminar May 2012Squiz
 
Squiz scotland seminar march 2012
Squiz scotland seminar march 2012Squiz scotland seminar march 2012
Squiz scotland seminar march 2012Squiz
 
Squiz Scotland Seminar March 2012
Squiz Scotland Seminar March 2012Squiz Scotland Seminar March 2012
Squiz Scotland Seminar March 2012Squiz
 
Squiz Seminar - 8th March 2012
Squiz Seminar - 8th March 2012Squiz Seminar - 8th March 2012
Squiz Seminar - 8th March 2012Squiz
 
Digital Publishers Forum - Stephen Morgan Presentation
Digital Publishers Forum - Stephen Morgan PresentationDigital Publishers Forum - Stephen Morgan Presentation
Digital Publishers Forum - Stephen Morgan PresentationSquiz
 
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012Squiz
 
Context Aware Computing - Online Information Presentation by Stephen Morgan
Context Aware Computing - Online Information Presentation by Stephen MorganContext Aware Computing - Online Information Presentation by Stephen Morgan
Context Aware Computing - Online Information Presentation by Stephen MorganSquiz
 
Squiz Seminar - Optimising Online Channels: Phil Taylor
Squiz Seminar - Optimising Online Channels: Phil TaylorSquiz Seminar - Optimising Online Channels: Phil Taylor
Squiz Seminar - Optimising Online Channels: Phil TaylorSquiz
 
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift Squiz
 
City University Case Study - Squiz Web Experience Management Seminar
City University Case Study - Squiz Web Experience Management SeminarCity University Case Study - Squiz Web Experience Management Seminar
City University Case Study - Squiz Web Experience Management SeminarSquiz
 
Westminster Abbey Presentation - Squiz Web Experience Management Seminar
Westminster Abbey Presentation - Squiz Web Experience Management SeminarWestminster Abbey Presentation - Squiz Web Experience Management Seminar
Westminster Abbey Presentation - Squiz Web Experience Management SeminarSquiz
 
Squiz - Trends in Web Experience Management
Squiz - Trends in Web Experience ManagementSquiz - Trends in Web Experience Management
Squiz - Trends in Web Experience ManagementSquiz
 
Stephen Morgan: Squiz Government Seminar Presentation -
Stephen Morgan: Squiz Government Seminar Presentation - Stephen Morgan: Squiz Government Seminar Presentation -
Stephen Morgan: Squiz Government Seminar Presentation - Squiz
 

More from Squiz (20)

Squiz and Funnelback Scotland Seminar May 2013
Squiz and Funnelback Scotland Seminar May 2013Squiz and Funnelback Scotland Seminar May 2013
Squiz and Funnelback Scotland Seminar May 2013
 
Hot Topics in Web Experience Management - Squiz Seminar May 2013
Hot Topics in Web Experience Management - Squiz Seminar May 2013Hot Topics in Web Experience Management - Squiz Seminar May 2013
Hot Topics in Web Experience Management - Squiz Seminar May 2013
 
Squiz & Bodleian Libraries Project - Event Presentation Slides
Squiz & Bodleian Libraries Project - Event Presentation SlidesSquiz & Bodleian Libraries Project - Event Presentation Slides
Squiz & Bodleian Libraries Project - Event Presentation Slides
 
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012Hot Topics in Web Experience Management - Squiz Seminar Nov 2012
Hot Topics in Web Experience Management - Squiz Seminar Nov 2012
 
Squiz Roadmap and Edit+ - Squiz Scotland User Summit
Squiz Roadmap and Edit+ - Squiz Scotland User SummitSquiz Roadmap and Edit+ - Squiz Scotland User Summit
Squiz Roadmap and Edit+ - Squiz Scotland User Summit
 
Answering the Mobile Challenge - Squiz Scotland User Summit
Answering the Mobile Challenge - Squiz Scotland User SummitAnswering the Mobile Challenge - Squiz Scotland User Summit
Answering the Mobile Challenge - Squiz Scotland User Summit
 
Squiz Seminar July 2012
Squiz Seminar July 2012Squiz Seminar July 2012
Squiz Seminar July 2012
 
Squiz London Seminar May 2012
Squiz London Seminar May 2012Squiz London Seminar May 2012
Squiz London Seminar May 2012
 
Squiz scotland seminar march 2012
Squiz scotland seminar march 2012Squiz scotland seminar march 2012
Squiz scotland seminar march 2012
 
Squiz Scotland Seminar March 2012
Squiz Scotland Seminar March 2012Squiz Scotland Seminar March 2012
Squiz Scotland Seminar March 2012
 
Squiz Seminar - 8th March 2012
Squiz Seminar - 8th March 2012Squiz Seminar - 8th March 2012
Squiz Seminar - 8th March 2012
 
Digital Publishers Forum - Stephen Morgan Presentation
Digital Publishers Forum - Stephen Morgan PresentationDigital Publishers Forum - Stephen Morgan Presentation
Digital Publishers Forum - Stephen Morgan Presentation
 
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012
Squiz Scotland Seminar - Hot Topics for Web Experience Management - Feb 2012
 
Context Aware Computing - Online Information Presentation by Stephen Morgan
Context Aware Computing - Online Information Presentation by Stephen MorganContext Aware Computing - Online Information Presentation by Stephen Morgan
Context Aware Computing - Online Information Presentation by Stephen Morgan
 
Squiz Seminar - Optimising Online Channels: Phil Taylor
Squiz Seminar - Optimising Online Channels: Phil TaylorSquiz Seminar - Optimising Online Channels: Phil Taylor
Squiz Seminar - Optimising Online Channels: Phil Taylor
 
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift
Squiz Seminar - Optimising Online Channels: Nick Peart, Clearswift
 
City University Case Study - Squiz Web Experience Management Seminar
City University Case Study - Squiz Web Experience Management SeminarCity University Case Study - Squiz Web Experience Management Seminar
City University Case Study - Squiz Web Experience Management Seminar
 
Westminster Abbey Presentation - Squiz Web Experience Management Seminar
Westminster Abbey Presentation - Squiz Web Experience Management SeminarWestminster Abbey Presentation - Squiz Web Experience Management Seminar
Westminster Abbey Presentation - Squiz Web Experience Management Seminar
 
Squiz - Trends in Web Experience Management
Squiz - Trends in Web Experience ManagementSquiz - Trends in Web Experience Management
Squiz - Trends in Web Experience Management
 
Stephen Morgan: Squiz Government Seminar Presentation -
Stephen Morgan: Squiz Government Seminar Presentation - Stephen Morgan: Squiz Government Seminar Presentation -
Stephen Morgan: Squiz Government Seminar Presentation -
 

Recently uploaded

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Html5 Forms in Squiz Matrix - Dave Letorey

  • 1. HTML 5 Forms in Matrix! Dave Letorey – Squiz UK! @dletorey!
  • 2. HTML5 Form Input Types! •  There are a number of new input types in the HTML 5 spec! •  Date! •  Number! •  Time! •  Range! •  Month! •  Tel! •  Week! •  URL! •  Datetime-local! •  Color! •  Email! •  Search!
  • 3. HTML5 Input Types! •  All of these new input types, if not supported by the users browser, will fallback to Text input fields!
  • 4. Creating an HTML 5 form in Matrix! •  As these new input types are not in Matrix, these all need to be added as Text field type! •  This is good as the fallback type is a text type!
  • 5. Changing the Default Output! •  This is Achieved using Page Contents & Thank You bodycopies!
  • 6. Page Contents code! <input name="qxxx:qy" id="xxx:qy"type="zzz" />! Where: ! •  xxx is the assetid for the form/section! •  y is the question number! •  zzz is the input type e.g. email, text, tel, date, time, etc.!
  • 7. Thank you code! zzz: %response_xxx_qy%! Where: ! •  xxx is the assetid for the form/ section! •  y is the question number! •  zzz is the name of your question.!
  • 8. Required attribute! •  HTML5 form inputs have a required attribute! •  The browser will then add a message if it is not filled in!
  • 9. Required syntax! <input type="text" required />! or! <input type="text" required="required" />! ! HTML5 does not require the quotes!
  • 10. Autofocus attribute! This attribute will give focus to an input field when the page is loaded! Syntax:! <input type="text" autofocus />! !
  • 11. Placeholder attribute! The placeholder attribute is used to populate text that gives the user a hint as to what to do. ! The text is removed when the field has focus!
  • 12. Placeholder syntax! <input type="text" placeholder="http:// www.example.com" />! !
  • 13. Pattern attribute! The input types: email, number, url, etc are really baked-in regular expression! Using the pattern attribute you can add regular expressions to any input type! Syntax:! <input type="text" pattern="[reg-exp]" />!
  • 14. Min Max attribute!! A Min & Max can be set on Date, Time, Number, Range, etc input types! Syntax:! <input type="date" min="1969-08-26" max="2012-07-4" />! !
  • 15. Step attribute! For input types that involve numbers, e.g. you can make them step in increments! Syntax:! <input type="range" min="0" max="100" step="5" />! !
  • 16. Styling Input fields with CSS! CSS3 introduced 2 new pseudo classes for form inputs! input:valid {! !background-color: green;! }! input:invalid {! !background-color: red;! }! !
  • 17. Why should I care about this?! •  It makes it easier for users to fill in your forms! •  It makes forms much more accessible!
  • 18. Input Support! supported !partial!not supported!
  • 19. Attribute Support! supported !partial!not supported! http://wufoo.com/html5 !
  • 24. Modernizr + Polyfills! •  Modernizr is a JavaScript file that detects if a browser supports the new features! •  http://modernizr.com/! •  Polyfills can be used to add these new input fields and attributes into browser that do not support them!
  • 25. Modernizr + Polyfills! •  Polyfills:! •  webforms2
 https://github.com/ westonruter/webforms2! •  html5forms
 https://github.com/zoltan- dulac/html5Forms.js!
  • 26. Resources! HTML5 forms! •  Form Input types:
 http://bit.ly/sfusers01! •  HTML 5 rocks:
 http://bit.ly/sfusers02! •  Dive into HTML 5:
 http://bit.ly/sfusers03! •  Introducing HTML5:
 http://bit.ly/sfusers04!
  • 27. Resources! Support! •  Can I Use:
 http://bit.ly/sfusers05! •  Current Support:
 http://bit.ly/sfusers06!
  • 28. Resources! Polyfills! •  Progressively enhancing HTML5 forms:
 http://bit.ly/sfusers07! •  Making HTML5 & CSS3 work with Polyfills & Shims:
 http://bit.ly/sfusers08! •  Using modernizr & html5forms:
 http://bit.ly/sfusers09! •  Modernizr:
 http://bit.ly/sfusers10! •  html5forms.js:
 http://bit.ly/sfusers11! •  webforms2:
 http://bit.ly/sfusers12!
  • 29. Resources! Example! •  Example you can play with:
 http://bit.ly/sfusers13!