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 Form Inputs in Matrix

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 Form Inputs in Matrix (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

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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

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...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

HTML5 Form Inputs in Matrix

  • 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!