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

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

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!