SlideShare une entreprise Scribd logo
1  sur  23
Quick & Easy SharePoint
Forms with StratusForms
April Dunnam
Lead Consultant/Developer at ThriveFast
MAKE SURE TO THANK OUR SPONSORS!
WEAR YOUR NACS WRISTBAND FOR
LUNCH SPECIALS ON BRANSON LANDING
PLAY VENDOR BINGO FOR YOUR
CHANCE TO WIN A i7 16GB 1TB SURFACE
BOOK
About the Presenter
• SENIOR CONSULTANT/DEVELOPER AT THRIVEFAST
• WORKING WITH SHAREPOINT SINCE 2007
• ACTIVE BLOGGER, SPEAKER AND USER GROUP LEADER
• KARAOKE QUEEN
@aprildunnam
www.sharepointsiren.com
www.thrivefast.com
What is StratusForms?
• Free jQuery library
• 100 % Client side form creation
• Build Forms using standard
HTML, CSS and JavaScript
• Utilizes SPServices for
SharePoint CRUD
operations
• You can write additional
business logic using
JavaScript to interact with
other systems
• www.stratusforms.com
Functionality
• Works with SharePoint 2007, 2010, 2013, 2016 & O365
• Stores all form fields in one non-proprietary JSON object
• Can promote fields in the form to SharePoint list fields
• Supports many field types including People Pickers (2013 only)
• Other features
• Repeating content
• Parent/Child List Relationships
• Form and Field encryption/password protection
• File Upload
Limitations
• No visual editor
• Requires developer skillset
• Documentation
• Not all features are documented
• Mostly videos or slack channel – email info@stratusforms.com to join
• No support for Managed Meta Data
• More steps required to work with O365 Modern Sites
• Can deploy the Content Editor SPFX web part to work with modern sites
• https://github.com/rob-windsor/ContentEditorSpfx
StratusForms vs PowerApps
StratusForms
• Free
• Works on SP 2007, 2010, 2013, 2016, O365
• Requires HTML/JS/CSS skills
• Can add code to connect to other systems
• Can design responsive form to be mobile
friendly
• Use if on SP 2007 – 2016 or if PowerApps
doesn’t fit your needs on SPOnline
PowerApps
• Requires O365 Subscription
• Only works in O365 although you can
connect to on-prem SP
• No development skills required
• Multiple connectors to other systems with
no code required
• Native desktop and mobile apps
• Consider it first if on SPOnline Modern Site –
Microsoft is pushing this as the InfoPath
replacement
Getting started with StratusForms
• Download required files and sample forms
• https://github.com/mrackley/StratusForms
• Has dependencies on Jquery, Jquery UI and SPServices
• Set up your back-end SharePoint List
• Create Multi-Line Plain Text Field called “StratusFormsData”
• This is where the JSON object is stored
• Create fields for any data you want promoted to the list
Code Basics
• Every element needs a unique ID <input type=“text” id=“Email”>
• Make a field required using a class <input type=“text” id=“Email”
class=“required”>
• Promote a field to a SharePoint List Field (use INTERNAL field
name)
• <input type=“text” id=“Email” class=“required” listFieldName=“Title”>
• Get internal field name by going to List Settings - > Click the name of your
column and look for Field= in the address bar
Tips to Make Life Easier
• Always start with the minimal.js example and see if you can get that
working first. Build from there.
• Triple check your column names to make sure you have the correct
internal field name.
• Order Matters!
• Make sure you’re script link paths are valid and in the right order
• For example: jQuery and SPServices needs to run before StratusForms JS
• Developer Tools are your friend
• Caching will get you. Added something and it’s not showing up? Clear
your cache
• It is case sensitive. Check your column names and code to see if they
match
• Reduce HTML creation time by using a generation tool like Bootsnip or
StratusForms Builder
Initializing a Form
$("#SFForm").StratusFormsInitialize({
htmlForm: ”<link to html>",
queryStringVar: "formID",
listName: ”<name of your list>",
completefunc: function()
{
}
});
});
Add/Update a Form
function SubmitForm()
{
$("#SFForm").StratusFormsSubmit({
listName: ”<list name>",
completefunc: function(id) {
alert("Save was successful. ID = " + id);
window.location = window.location.pathname +
"?formID=" + id;
}
});
}
Field Validation
• Custom field validation
<input type=“text” id=“Email” class=“required”
listFieldName=“Title” validate="validEmail">
• Built in validation functions
• Date - validDate
• Email - validEmail
• Phone # - vaildPhone
• Social Security Number - validSSN
People Picker
<div id="myID" listFieldName="<internal field name of person field>"
data-StratusFormsType="PeoplePicker"></div>
• Must include SharePoint client libraries for it to work:
<script type="text/javascript" src="/_layouts/15/clientforms.js" ></script>
<script type="text/javascript" src="/_layouts/15/clientpeoplepicker.js"
></script> <script type="text/javascript" src="/_layouts/15/autofill.js"
></script> <script type="text/javascript"
src="/_layouts/15/clienttemplates.js" ></script>
• Must use ExecuteOrDelayUntilScriptLoaded instead of
$(document).ready to initialize your form to make sure the client
libraries are loaded first
ExecuteOrDelayUntilScriptLoaded(Init,"SP.js"); function Init() { //StratusForms
Initialization code goes here }
Setting People Picker Programmatically
//to set people picker to value of current user:
$("#<id of people picker
div>").StratusFormsAddCurrentUserToPeoplePicker();
//to set people picker to value of another user:
$("#<id of people picker
div>").StratusFormsAddCurrentUserToPeoplePicker(<id of user>);
File Upload
<div class="SFDontSave" id="<unique ID>" data-StratusFormsType="File" data-
StratusFormsFileOptions="{libraryName:'<name of document library>',
lookupField:'<internal name of lookup field in document library>',
displayOnly:false}"></div>
Parameters:
• libraryName: Name of the document library you created to store your files
• lookupfield: Internal field name of the lookup field you created in the
document library
• displayOnly: If set to “true” users will see a list of clickable links for the
uploaded files for the current form, but not see upload functionality. If set to
“false” users will see a list of clickable links for any previously uploaded files
AND an file upload element to upload new files.
• *files are not actually uploaded to the document library until the user
submits the form to save/update it*
Reporting
• Can utilize SharePoint views and your promoted fields
• jQuery DataTables and SPServices for additional reporting needs
• https://datatables.net
• http://sympmarc.github.io/SPServices/
• http://stefaanvangoolen.com/jquery-datatable-with-spservices-data-on-a-
sharepoint-page/
Demo: Building Your First Form with
StratusForms
Minimal and Timesheet examples
Download at https://github.com/mrackley/StratusForms
DEMO: Form Builder
• Allows you to configure your list and
columns and it will spit out the
necessary HTML/JS
• NOTE: The link is hidden but it’s still
accessible if you have the path. The
code it spits out references an old
version of StratusForms (1.2) where the
latest version is 1.5. If you want to
utilize features in the 1.5 version you’ll
need to update your script references
• Doesn’t have all of the features but it
will get you 75% there
• http://www.stratusforms.com/formbuil
der.html
DEMO: Field Reporting Solution
Custom Responsive Daily Field Report Using StratusForms
Thank You!
www.sharepointsiren.com
www.thrivefast.com
@aprildunnam
April.Dunnam@thrivefast.com
MAKE SURE TO
ATTEND THE
ATTENDEE
PARTY FRIDAY
NIGHT AT
7:30PM AT
BLACK OAK
GRILL FOR
GREATE LIVE
MUSIC
GET YOUR
FREE DRINK
TICKETS AT THE
END OF THE
DAY SESSION
PRIZE DRAWINGS HAPPEN AFTER THE END OF THE DAY SESSIONS ON FRIDAY AND
SATURDAY. YOU MUST ATTEND THE END OF THE DAY SESSION TO WIN.

Contenu connexe

Tendances

Tendances (12)

Curso de Java Persistence API (JPA) (Java EE 7)
Curso de Java Persistence API (JPA) (Java EE 7)Curso de Java Persistence API (JPA) (Java EE 7)
Curso de Java Persistence API (JPA) (Java EE 7)
 
파이썬 객체 클래스 이해하기
파이썬  객체 클래스 이해하기파이썬  객체 클래스 이해하기
파이썬 객체 클래스 이해하기
 
Ksug2015 - JPA2, JPA 기초와매핑
Ksug2015 - JPA2, JPA 기초와매핑Ksug2015 - JPA2, JPA 기초와매핑
Ksug2015 - JPA2, JPA 기초와매핑
 
Lessons Learned from Building 100+ C++/Qt/QML Devices
Lessons Learned from Building 100+ C++/Qt/QML DevicesLessons Learned from Building 100+ C++/Qt/QML Devices
Lessons Learned from Building 100+ C++/Qt/QML Devices
 
Don't Be Mocked by your Mocks - Best Practices using Mocks
Don't Be Mocked by your Mocks - Best Practices using MocksDon't Be Mocked by your Mocks - Best Practices using Mocks
Don't Be Mocked by your Mocks - Best Practices using Mocks
 
Integration testing with spring @snow one
Integration testing with spring @snow oneIntegration testing with spring @snow one
Integration testing with spring @snow one
 
How to Design Indexes, Really
How to Design Indexes, ReallyHow to Design Indexes, Really
How to Design Indexes, Really
 
Curso de Enterprise JavaBeans (EJB) (JavaEE 7)
Curso de Enterprise JavaBeans (EJB) (JavaEE 7)Curso de Enterprise JavaBeans (EJB) (JavaEE 7)
Curso de Enterprise JavaBeans (EJB) (JavaEE 7)
 
Fundamentos de JDBC
Fundamentos de JDBCFundamentos de JDBC
Fundamentos de JDBC
 
Qt Item Views In Depth
Qt Item Views In DepthQt Item Views In Depth
Qt Item Views In Depth
 
스프링 어플리케이션의 문제해결사례와 안티패턴
스프링 어플리케이션의 문제해결사례와 안티패턴스프링 어플리케이션의 문제해결사례와 안티패턴
스프링 어플리케이션의 문제해결사례와 안티패턴
 
Domain Modeling with FP (DDD Europe 2020)
Domain Modeling with FP (DDD Europe 2020)Domain Modeling with FP (DDD Europe 2020)
Domain Modeling with FP (DDD Europe 2020)
 

Similaire à Quick & Easy SharePoint Forms with StratusForms

SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
Rob Windsor
 
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
Kiril Iliev
 
Advanced SharePoint 2010 Features
Advanced SharePoint 2010 FeaturesAdvanced SharePoint 2010 Features
Advanced SharePoint 2010 Features
Ivor Davies
 
SPS Philly 2013 - Building Business Solutions Using InfoPath
SPS Philly 2013 - Building Business Solutions Using InfoPathSPS Philly 2013 - Building Business Solutions Using InfoPath
SPS Philly 2013 - Building Business Solutions Using InfoPath
Prashant G Bhoyar (Microsoft MVP)
 

Similaire à Quick & Easy SharePoint Forms with StratusForms (20)

The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConThe SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 
Share point development 101
Share point development 101Share point development 101
Share point development 101
 
2012 MindSurf - Augmenting Business Process with SharePoint
2012 MindSurf - Augmenting Business Process with SharePoint2012 MindSurf - Augmenting Business Process with SharePoint
2012 MindSurf - Augmenting Business Process with SharePoint
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 
Utilizing jQuery in SharePoint: Get More Done Faster
Utilizing jQuery in SharePoint: Get More Done FasterUtilizing jQuery in SharePoint: Get More Done Faster
Utilizing jQuery in SharePoint: Get More Done Faster
 
SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013 SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013
 
SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePoint
 
Drew madelung sp designer workflows - sp-biz
Drew madelung   sp designer workflows - sp-bizDrew madelung   sp designer workflows - sp-biz
Drew madelung sp designer workflows - sp-biz
 
2013 MN IT Govt Symposium - Implement No Code Solutions with SharePoint and I...
2013 MN IT Govt Symposium - Implement No Code Solutions with SharePoint and I...2013 MN IT Govt Symposium - Implement No Code Solutions with SharePoint and I...
2013 MN IT Govt Symposium - Implement No Code Solutions with SharePoint and I...
 
SPSNJ 2013 Building Business Solutions using InfoPath
SPSNJ 2013 Building Business Solutions using InfoPathSPSNJ 2013 Building Business Solutions using InfoPath
SPSNJ 2013 Building Business Solutions using InfoPath
 
SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
 
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery librariesTulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
 
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
 
InfoPath alternatives and the PowerApps potential
InfoPath alternatives and the PowerApps potentialInfoPath alternatives and the PowerApps potential
InfoPath alternatives and the PowerApps potential
 
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
jsSaturday - PhoneGap and jQuery Mobile for SharePoint 2013
 
Advanced SharePoint 2010 Features
Advanced SharePoint 2010 FeaturesAdvanced SharePoint 2010 Features
Advanced SharePoint 2010 Features
 
SPS Philly 2013 - Building Business Solutions Using InfoPath
SPS Philly 2013 - Building Business Solutions Using InfoPathSPS Philly 2013 - Building Business Solutions Using InfoPath
SPS Philly 2013 - Building Business Solutions Using InfoPath
 
Introduction To Microsoft SharePoint 2013
Introduction To Microsoft SharePoint 2013Introduction To Microsoft SharePoint 2013
Introduction To Microsoft SharePoint 2013
 

Plus de April Dunnam

Tulsa Tech Fest - SharePoint 2013 Lessons Learned
Tulsa Tech Fest - SharePoint 2013 Lessons LearnedTulsa Tech Fest - SharePoint 2013 Lessons Learned
Tulsa Tech Fest - SharePoint 2013 Lessons Learned
April Dunnam
 
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design ManagerTulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
April Dunnam
 

Plus de April Dunnam (16)

Power Apps Accessibility.pptx
Power Apps Accessibility.pptxPower Apps Accessibility.pptx
Power Apps Accessibility.pptx
 
EPPC22_Hands On with the Latest Power Platform Features.pdf
EPPC22_Hands On with the Latest Power Platform Features.pdfEPPC22_Hands On with the Latest Power Platform Features.pdf
EPPC22_Hands On with the Latest Power Platform Features.pdf
 
M365 Virtual Conference: Power Apps Makeover
M365 Virtual Conference: Power Apps MakeoverM365 Virtual Conference: Power Apps Makeover
M365 Virtual Conference: Power Apps Makeover
 
M365 Virtual Conference: Componentize Your Power Apps
M365 Virtual Conference: Componentize Your Power AppsM365 Virtual Conference: Componentize Your Power Apps
M365 Virtual Conference: Componentize Your Power Apps
 
Power Apps Makeover: Basic to Beautiful SPS Charlotte
Power Apps Makeover: Basic to Beautiful SPS CharlottePower Apps Makeover: Basic to Beautiful SPS Charlotte
Power Apps Makeover: Basic to Beautiful SPS Charlotte
 
PowerApps, Forms, Flow, oh my!
PowerApps, Forms, Flow, oh my!PowerApps, Forms, Flow, oh my!
PowerApps, Forms, Flow, oh my!
 
Next Level PowerApps SPS St Louis
Next Level PowerApps SPS St LouisNext Level PowerApps SPS St Louis
Next Level PowerApps SPS St Louis
 
Powering Up SharePoint Forms with PowerApps
Powering Up SharePoint Forms with PowerAppsPowering Up SharePoint Forms with PowerApps
Powering Up SharePoint Forms with PowerApps
 
Next Level PowerApps
Next Level PowerAppsNext Level PowerApps
Next Level PowerApps
 
Powering the Modern Classroom with PowerApps & PowerBI
Powering the Modern Classroom with PowerApps & PowerBIPowering the Modern Classroom with PowerApps & PowerBI
Powering the Modern Classroom with PowerApps & PowerBI
 
Intro to PowerApps and Flow
Intro to PowerApps and FlowIntro to PowerApps and Flow
Intro to PowerApps and Flow
 
Search Driven Solutions
Search Driven SolutionsSearch Driven Solutions
Search Driven Solutions
 
Tulsa techfest awesomelysimplesharepointsolutions
Tulsa techfest awesomelysimplesharepointsolutionsTulsa techfest awesomelysimplesharepointsolutions
Tulsa techfest awesomelysimplesharepointsolutions
 
Tulsa techfest awesomelysimplesharepointsolutions
Tulsa techfest awesomelysimplesharepointsolutionsTulsa techfest awesomelysimplesharepointsolutions
Tulsa techfest awesomelysimplesharepointsolutions
 
Tulsa Tech Fest - SharePoint 2013 Lessons Learned
Tulsa Tech Fest - SharePoint 2013 Lessons LearnedTulsa Tech Fest - SharePoint 2013 Lessons Learned
Tulsa Tech Fest - SharePoint 2013 Lessons Learned
 
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design ManagerTulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
 

Dernier

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
Victor Rentea
 

Dernier (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
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
 
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, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
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, ...
 
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...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"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 ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Quick & Easy SharePoint Forms with StratusForms

  • 1. Quick & Easy SharePoint Forms with StratusForms April Dunnam Lead Consultant/Developer at ThriveFast
  • 2. MAKE SURE TO THANK OUR SPONSORS! WEAR YOUR NACS WRISTBAND FOR LUNCH SPECIALS ON BRANSON LANDING PLAY VENDOR BINGO FOR YOUR CHANCE TO WIN A i7 16GB 1TB SURFACE BOOK
  • 3. About the Presenter • SENIOR CONSULTANT/DEVELOPER AT THRIVEFAST • WORKING WITH SHAREPOINT SINCE 2007 • ACTIVE BLOGGER, SPEAKER AND USER GROUP LEADER • KARAOKE QUEEN @aprildunnam www.sharepointsiren.com www.thrivefast.com
  • 4. What is StratusForms? • Free jQuery library • 100 % Client side form creation • Build Forms using standard HTML, CSS and JavaScript • Utilizes SPServices for SharePoint CRUD operations • You can write additional business logic using JavaScript to interact with other systems • www.stratusforms.com
  • 5. Functionality • Works with SharePoint 2007, 2010, 2013, 2016 & O365 • Stores all form fields in one non-proprietary JSON object • Can promote fields in the form to SharePoint list fields • Supports many field types including People Pickers (2013 only) • Other features • Repeating content • Parent/Child List Relationships • Form and Field encryption/password protection • File Upload
  • 6. Limitations • No visual editor • Requires developer skillset • Documentation • Not all features are documented • Mostly videos or slack channel – email info@stratusforms.com to join • No support for Managed Meta Data • More steps required to work with O365 Modern Sites • Can deploy the Content Editor SPFX web part to work with modern sites • https://github.com/rob-windsor/ContentEditorSpfx
  • 7. StratusForms vs PowerApps StratusForms • Free • Works on SP 2007, 2010, 2013, 2016, O365 • Requires HTML/JS/CSS skills • Can add code to connect to other systems • Can design responsive form to be mobile friendly • Use if on SP 2007 – 2016 or if PowerApps doesn’t fit your needs on SPOnline PowerApps • Requires O365 Subscription • Only works in O365 although you can connect to on-prem SP • No development skills required • Multiple connectors to other systems with no code required • Native desktop and mobile apps • Consider it first if on SPOnline Modern Site – Microsoft is pushing this as the InfoPath replacement
  • 8. Getting started with StratusForms • Download required files and sample forms • https://github.com/mrackley/StratusForms • Has dependencies on Jquery, Jquery UI and SPServices • Set up your back-end SharePoint List • Create Multi-Line Plain Text Field called “StratusFormsData” • This is where the JSON object is stored • Create fields for any data you want promoted to the list
  • 9. Code Basics • Every element needs a unique ID <input type=“text” id=“Email”> • Make a field required using a class <input type=“text” id=“Email” class=“required”> • Promote a field to a SharePoint List Field (use INTERNAL field name) • <input type=“text” id=“Email” class=“required” listFieldName=“Title”> • Get internal field name by going to List Settings - > Click the name of your column and look for Field= in the address bar
  • 10. Tips to Make Life Easier • Always start with the minimal.js example and see if you can get that working first. Build from there. • Triple check your column names to make sure you have the correct internal field name. • Order Matters! • Make sure you’re script link paths are valid and in the right order • For example: jQuery and SPServices needs to run before StratusForms JS • Developer Tools are your friend • Caching will get you. Added something and it’s not showing up? Clear your cache • It is case sensitive. Check your column names and code to see if they match • Reduce HTML creation time by using a generation tool like Bootsnip or StratusForms Builder
  • 11. Initializing a Form $("#SFForm").StratusFormsInitialize({ htmlForm: ”<link to html>", queryStringVar: "formID", listName: ”<name of your list>", completefunc: function() { } }); });
  • 12. Add/Update a Form function SubmitForm() { $("#SFForm").StratusFormsSubmit({ listName: ”<list name>", completefunc: function(id) { alert("Save was successful. ID = " + id); window.location = window.location.pathname + "?formID=" + id; } }); }
  • 13. Field Validation • Custom field validation <input type=“text” id=“Email” class=“required” listFieldName=“Title” validate="validEmail"> • Built in validation functions • Date - validDate • Email - validEmail • Phone # - vaildPhone • Social Security Number - validSSN
  • 14. People Picker <div id="myID" listFieldName="<internal field name of person field>" data-StratusFormsType="PeoplePicker"></div> • Must include SharePoint client libraries for it to work: <script type="text/javascript" src="/_layouts/15/clientforms.js" ></script> <script type="text/javascript" src="/_layouts/15/clientpeoplepicker.js" ></script> <script type="text/javascript" src="/_layouts/15/autofill.js" ></script> <script type="text/javascript" src="/_layouts/15/clienttemplates.js" ></script> • Must use ExecuteOrDelayUntilScriptLoaded instead of $(document).ready to initialize your form to make sure the client libraries are loaded first ExecuteOrDelayUntilScriptLoaded(Init,"SP.js"); function Init() { //StratusForms Initialization code goes here }
  • 15. Setting People Picker Programmatically //to set people picker to value of current user: $("#<id of people picker div>").StratusFormsAddCurrentUserToPeoplePicker(); //to set people picker to value of another user: $("#<id of people picker div>").StratusFormsAddCurrentUserToPeoplePicker(<id of user>);
  • 16. File Upload <div class="SFDontSave" id="<unique ID>" data-StratusFormsType="File" data- StratusFormsFileOptions="{libraryName:'<name of document library>', lookupField:'<internal name of lookup field in document library>', displayOnly:false}"></div> Parameters: • libraryName: Name of the document library you created to store your files • lookupfield: Internal field name of the lookup field you created in the document library • displayOnly: If set to “true” users will see a list of clickable links for the uploaded files for the current form, but not see upload functionality. If set to “false” users will see a list of clickable links for any previously uploaded files AND an file upload element to upload new files. • *files are not actually uploaded to the document library until the user submits the form to save/update it*
  • 17. Reporting • Can utilize SharePoint views and your promoted fields • jQuery DataTables and SPServices for additional reporting needs • https://datatables.net • http://sympmarc.github.io/SPServices/ • http://stefaanvangoolen.com/jquery-datatable-with-spservices-data-on-a- sharepoint-page/
  • 18. Demo: Building Your First Form with StratusForms Minimal and Timesheet examples Download at https://github.com/mrackley/StratusForms
  • 19. DEMO: Form Builder • Allows you to configure your list and columns and it will spit out the necessary HTML/JS • NOTE: The link is hidden but it’s still accessible if you have the path. The code it spits out references an old version of StratusForms (1.2) where the latest version is 1.5. If you want to utilize features in the 1.5 version you’ll need to update your script references • Doesn’t have all of the features but it will get you 75% there • http://www.stratusforms.com/formbuil der.html
  • 20. DEMO: Field Reporting Solution Custom Responsive Daily Field Report Using StratusForms
  • 22. MAKE SURE TO ATTEND THE ATTENDEE PARTY FRIDAY NIGHT AT 7:30PM AT BLACK OAK GRILL FOR GREATE LIVE MUSIC GET YOUR FREE DRINK TICKETS AT THE END OF THE DAY SESSION
  • 23. PRIZE DRAWINGS HAPPEN AFTER THE END OF THE DAY SESSIONS ON FRIDAY AND SATURDAY. YOU MUST ATTEND THE END OF THE DAY SESSION TO WIN.

Notes de l'éditeur

  1. It’s a jQuery library. InfoPath replacement. 100 % client side based. Anything you can do with HTML/JS/CSS you can do in StratusForms. Can be responsive. Limits of your forms are limits of your HTML and JS skills.
  2. Cross SP compatible because it has a data library. Uses Mark Andersons SPServices library to do CRUD operations in SharePoint.
  3. Available for CDN
  4. Cathy Dew has a talk on SharePoint and PowerApps tomorrow at 11.
  5. Available for CDN