SlideShare a Scribd company logo
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.

More Related Content

PDF
2009 Nissan Cube Service Repair Manual
DOC
Matematika
PDF
TEFL Certificate
PDF
Notas de corte Castilla La Mancha.pdf
DOCX
Penilaian Sumatif Akhir Semester 1 Bahasa Inggris Kelas 6 TA 2024 2025 Kurik...
PPTX
Introduction to StratusForms #SayNoToInfoPath
PPTX
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
PPTX
SharePoint Saturday Cologne 2019 - Spice up your SharePoint list with Power...
2009 Nissan Cube Service Repair Manual
Matematika
TEFL Certificate
Notas de corte Castilla La Mancha.pdf
Penilaian Sumatif Akhir Semester 1 Bahasa Inggris Kelas 6 TA 2024 2025 Kurik...
Introduction to StratusForms #SayNoToInfoPath
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
SharePoint Saturday Cologne 2019 - Spice up your SharePoint list with Power...

Similar to Quick & Easy SharePoint Forms with StratusForms (20)

PDF
Next Level PowerApps SPS St Louis
PPTX
Building your first power apps from scratch a step by step walkthrough
PPTX
Using jQuery to Maximize Form Usability
PPTX
SPTechCon Dev Days - Third Party jQuery Libraries
PPTX
The latest insights on SharePoint Form Solutions
PPTX
RISPUG - Top Form - Using PowerApps to Replace List Forms
PPTX
Next Level PowerApps
PPTX
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
PPTX
InfoPath alternatives and the potential of PowerApps
PDF
SPS Philly 2013 - Building Business Solutions Using InfoPath
PPTX
How to Give Infopath Everlasting Beauty
PPTX
InfoPath alternatives and the PowerApps potential
PDF
SPSDC PowerApps and Flow by Hemendra Patel
PDF
Real World InfoPath with SharePoint 2010 - List vs Library Forms
PDF
Top 20 something info path 2010 tips and trips - sps-ozarks12
PPTX
The SharePoint & jQuery Guide
PPTX
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
PPTX
Powering Up SharePoint Forms with PowerApps
PPTX
Advanced SharePoint 2010 InfoPath Development
PPTX
COB - PowerApps - the good, the bad and the ugly - early 2018
Next Level PowerApps SPS St Louis
Building your first power apps from scratch a step by step walkthrough
Using jQuery to Maximize Form Usability
SPTechCon Dev Days - Third Party jQuery Libraries
The latest insights on SharePoint Form Solutions
RISPUG - Top Form - Using PowerApps to Replace List Forms
Next Level PowerApps
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
InfoPath alternatives and the potential of PowerApps
SPS Philly 2013 - Building Business Solutions Using InfoPath
How to Give Infopath Everlasting Beauty
InfoPath alternatives and the PowerApps potential
SPSDC PowerApps and Flow by Hemendra Patel
Real World InfoPath with SharePoint 2010 - List vs Library Forms
Top 20 something info path 2010 tips and trips - sps-ozarks12
The SharePoint & jQuery Guide
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
Powering Up SharePoint Forms with PowerApps
Advanced SharePoint 2010 InfoPath Development
COB - PowerApps - the good, the bad and the ugly - early 2018
Ad

More from April Dunnam (13)

PPTX
Power Apps Accessibility.pptx
PDF
EPPC22_Hands On with the Latest Power Platform Features.pdf
PPTX
M365 Virtual Conference: Power Apps Makeover
PPTX
M365 Virtual Conference: Componentize Your Power Apps
PPTX
Power Apps Makeover: Basic to Beautiful SPS Charlotte
PPTX
PowerApps, Forms, Flow, oh my!
PPTX
Powering the Modern Classroom with PowerApps & PowerBI
PPTX
Intro to PowerApps and Flow
PPTX
Search Driven Solutions
PPTX
Tulsa techfest awesomelysimplesharepointsolutions
PPTX
Tulsa techfest awesomelysimplesharepointsolutions
PPTX
Tulsa Tech Fest - SharePoint 2013 Lessons Learned
PPTX
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Power Apps Accessibility.pptx
EPPC22_Hands On with the Latest Power Platform Features.pdf
M365 Virtual Conference: Power Apps Makeover
M365 Virtual Conference: Componentize Your Power Apps
Power Apps Makeover: Basic to Beautiful SPS Charlotte
PowerApps, Forms, Flow, oh my!
Powering the Modern Classroom with PowerApps & PowerBI
Intro to PowerApps and Flow
Search Driven Solutions
Tulsa techfest awesomelysimplesharepointsolutions
Tulsa techfest awesomelysimplesharepointsolutions
Tulsa Tech Fest - SharePoint 2013 Lessons Learned
Tulsa Tech Fest - SharePoint 2013: Intro To Branding & Design Manager
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectral efficient network and resource selection model in 5G networks
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding

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.

Editor's Notes

  • #5: 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.
  • #6: Cross SP compatible because it has a data library. Uses Mark Andersons SPServices library to do CRUD operations in SharePoint.
  • #7: Available for CDN
  • #8: Cathy Dew has a talk on SharePoint and PowerApps tomorrow at 11.
  • #9: Available for CDN