MS Forms: Create Quiz quick and easy

What it is?

For introduction on what is MS forms and to get started with MS Forms, refer previous article on MS Forms.

Getting Started with Quiz using MS Forms

Note: Currently, while this article is being written, Microsoft Forms is available for only First Release customers.

  • Login to your Office 365 account
  • From the Navigation bar, select “Forms” as show below:

1_1

Creating your first form:

  • Creating a new form is pretty easy. You can either create “New Form” or “New Quiz”. Click on “New Quiz

2_1

  • Form Design area has two main sections-

Questions: Where you can design the form, add questions, attach images etc. The form you design here will be presented to the end users

Responses: This is the result area where all responses will be analysed and presented

2_2

  • Click on the “Untitled quiz” section and enter Title and Description of the form. You can also attach images. Images can be imported form 3 locations:
  1. Image search using Bing Search
  2. OneDrive
  3. Upload from your local machine or network drive
  • Enter Title a title and Description.
  • Click on “Add Question” it will present option of Field type as below:

1_5

  • Click on “Text”. It will add a text field with an option to enter “Question” value. Your questions can be configured with variety of options based on data type selected.

2_3

  • For any particular option , there are few options which can be configured as below:

2_4

  • Add more questions as required.
  • I created a simple quiz with below fields

2_5

  • Once you are done designing the form, click on “Share” from top navigation to get options of how the form can be shared with either users of your tenant or anonymous users

1_8

  • From the “Send and Collect Responses” dropdown, select “Anyone with the link can respond” and click on “Copy”
  • Now you are ready to present you form to users. Quick and easy!
  • When user will access this quiz and submit the answers, user will get result of the quiz as below:

2_6

View and Analyse Response

  • To view response, open the form and click on Responses Tab. You can see the total count of response received in tab heading itself also, the average score based on total responses would also be displayed.

2_7

  • Also, for choice fields, it automatically creates visual representation in form of Pie charts based on responses received.

2_8

  • You can also view the responses in excel. And save it for further analysis or exporting.
  • To review the answers, click on “Review Answers” You can review answers in two ways, either review according to “Person” or Review according to “Questions”
  • When you review by “Person”, it will Show response of each and every respondents individually. It will give details like Name, Time taken to complete the quiz, his score and is replies to each questions.

2_9

  • When you review by “Questions”, it will give details of average score for that question, count of responses received against each options (clicking on which will give a popup containing details of all respondents who selected that option).

2_10.png

Conclusion:

Microsoft Forms is very nicely designed and users can create forms and quiz very easily and quickly. It will save a lot of time and the biggest plus points is all responses are analysed pretty well.

Microsoft Forms : Exploring MS forms

What it is?

With Microsoft Forms, you can create surveys, quizzes, and polls, and easily see results as they come in. When you create a quiz or form, you can invite others to respond to it using any web browser, even on mobile devices. As results are submitted, you can use built-in analytics to evaluate responses. Form data, such as quiz results, can be easily exported to Excel for additional analysis or grading.

Getting Started

Note: Currently, while this article is being written, Microsoft Forms is available for only First Release customers.

  • Login to your Office 365 account
  • From the Navigation bar, select “Forms” as show below:

1_1

Creating your first form:

  • Creating a new form is pretty easy. You can either create “New Form” or “New Quiz”. As of now, we would create New Form so click on that option.

1_2

  • Form Design area has two main sections-

Questions: Where you can design the form, add questions, attach images etc. The form you design here will be presented to the end users

Responses: This is the result area where all responses will be analysed and presented

1_3

  • Click on the “Untitled Form” section and enter Title and Description of the form. You can also attach images. Images can be imported form 3 locations:
  1. Image search using Bing Search
  2. OneDrive
  3. Upload from your local machine or network drive
  • Enter Title “Apply for a Job” and Description “Please take a minute to fill out the following form.”
  • Click on “Add Question” it will present option of Field type as below:

1_5

  • Click on “Text”. It will add a text field with an option to enter “Question” value. Your questions can be configured with variety of options based on data type selected.

1_6

  • Add more questions as required. You can also change the order of questions using arrow buttons.
  • I created a simple form with below fields

1_7

  • Once you are done designing the form, click on “Share” from top navigation to get options of how the form can be shared with either users of your tenant or anonymous users

1_8

  • From the “Send and Collect Responses” dropdown, select “Anyone with the link can respond” and click on “Copy”
  • Now you are ready to present you form to users. Quick and easy!

View and Analyse Response

  • To view response, open the form and click on Responses Tab. You can see the total count of response received in tab heading itself

1_9

  • Another helpful thing here is it shows the Average Response time required to complete the form.

1_10

  • Also, for choice fields, it automatically creates visual representation in form of Pie charts based on responses received.

1_11

  • You can also view the responses in excel. And save it for further analysis or exporting.

Conclusion:

All I can say is, MS Forms is extremely simple and quick way to create forms and quiz. Over and above just getting response from users in excel, MS forms provides a handy interface to analyse the same.

PowerShell Remoting: Access Denied

Problem :

Getting access denied error when try to access $site.RootWeb.Lists over powershell remoting. User gets this error even if user has sufficient privileges to access the list.

Solution:

Run following command for the account which is used to authenticate over PS remoting to get it running:

$w = Get-SPWebApplication -Identity http://portal
$w.GrantAccessToProcessIdentity(“domain\username”)

Reference Link here.

MS Flow and Trello Integration

MS Flow allows you to create automated workflows between your favorite apps and services to get notifications, synchronize files, collect data, and more.

Trello is a web-based Project Management application. It is incredibly flexible and easy to use. It keeps track of everything from big picture to the minute details.

This article assumes that you already have MS flow account and Trello account.

MS Flow connectors:

MS Flow provides around 72 connectors which make connecting to various Apps such as SharePoint, Office 365, Twitter, Facebook, SQL, Google Calendar and many more. To get full list of available connectors, visit https://flow.microsoft.com/en-us/services/

Trello data can also be accessed using Trello connector. In this article we are going to explore the same.

Connect Trello to MS Flow:

  • Create a SharePoint List with Name “Trello”. Rename “Title” field to “Card Name” and add a new column with Single Line of Text with Name “CardDescription”. Rename it to “Card Description” afterwards.
  • Access MS flow from Office 365 app launcher or visit https://flow.microsoft.com/en-us/
  • Click on “My Flows” from top navigation
  • Click on “Create from Blank” as we will be starting from scratch
  • In the next screen you will see a list of all available actions to choose from. Type in “Trello” in the search box to get options of operations available with Trello3
  • It would ask you to Sign in to create connection to Trello. Click on “Sign In” and enter your credentials.
  • Once you enter your credentials, it will ask for permissions as below:5
  • Select “MS Flow Test” board from the list9
  • Click on “New Step” and Select “Add An Action”. Select “SharePoint – Create Item” action from search list.
  • In “Site URL” textbox, enter SharePoint site URL and select “Trello” list from “List Name” dropdown.
  • It will populate columns from “Trello” list. Now we have to bind details which we want to populate from Trello board into the SharePoint List.
  • Select values as shown in screenshot below:Trello
  • And we are done! Click on “Create Flow” and once it is completed, it will display message on top “Your flow was created. To exit, click “Done”. Then Click on Done.
  • You can manage newly created flows by clicking on “My Flows” from Top Navigation.
  • Now enter new cards in “MS Flow Test Board” with Name and Description and you will be able to see those entries added in “Trello” SharePoint list.8Happy SharePointing!!

SharePoint Debugging : Determine which worker process to attach while debugging

Most of the times, during SharePoint debugging,we see that while trying to attach to process “w3wp”, many process with same name are listed.

How to determine which process we need to attach to? As the dialog box does not contain Application Pool details. Follow the steps given below to easily identify the correct worker process.

  1. Open the Command Prompt with Administrative Privilege
  2. Change the directory to c:\Windows\System\Inetsrv
  3. run “appcmd list wp“. It would list all the worker processed with ID and application pool information:

apppool

4. Find out process ID associated to the web application pool you want to debug.

5. Go back to Visual Studio “Attach to Process” dialog box and associate to correct process with ID we got in Step # 4.

Happy Debugging!!!!

gulp-spsave : Save files to SharePoint using Gulp

Upload files to SharePoint using gulp-spsave

Gulp

automate-tasks-gulpjs

For those who are new to Gulp, Gulp is node based task runner which prefers code over configuration. Gulp has watcher inbuilt. Hence it can automatically watch for any changes in file.

Upload Files to SharePoint

Two impressive gulp plugins are available would facilitate uploading of files to SharePoint. We will talk about spsave in this post.

 

Gulp-SPSave

Spsave is simple yet powerful plugin developed by s-kainet to upload files directly to SharePoint.  Below is a simple implementation of the same:

gulp.task(“copyToSharePoint”, [“buildJS”], function(){

return gulp.src(“./build/*.js”)

.pipe(spsave({

username: settings.username,

password: settings.password,

siteUrl: settings.siteUrl,

folder: “YourAppAssets/js”

}));

});

 

Where “settings” is the settings file where you can store sensitive information.

Vardhaman Deshpande has integrated this plugin with gulp watcher functions along with other gulp functions to achieve following:

  • Concatenate all js files into single js file
  • Minify js file
  • Rename file to min.js
  • Upload files to SharePoint
  • Watch for any changes in file and upload to SharePoint

 

Following are the plugins that are used in demo:

  • gulp-concat : Used to bundle js files.
  • gulp-uglify : Used to minify the js files
  • gulp-rename : Used to rename the minified file to .min.js
  • gulp-spsave : Used to upload files to SharePoint

 

 

Videos in Sharepoint

​Playing videos in sharepoint is bit tricky. Specially when you want to play videos with certain start and stop conditions as well as on all devices and on all browsers!

Problem:

Requirement was as follows:

Dynamic poster image should be displayed and on clicking on image, dynamic video should play and after playback completes, again poster image should be displayed.

Should Work on: IE8,IE9+,Chrome,FireFox,Safari(For Mac & Windows)

Devices: Both PC and Mobile devices

Attached is the excel which contains various approach taken and problems with implmenting approach on various devices.

VideoTags

Resolution:

YouTube videos were embedded into code with help of YouTubePlayer API.

https://developers.google.com/youtube/iframe_api_reference​​

Following is sample code which can be tested in CEWP in sharepoint :

<script type=”text/javascript”>

function onYouTubePlayerAPIReady() {

var player = new YT.Player(‘divStartPlayer’, {

height: ‘555’,

width: ‘1000px’,

videoId: ‘hsfUNRRu0VY’,

events: {

‘onReady’: onPlayerReady,

‘onStateChange’: onPlayerStateChange

}

});

}

function onPlayerReady(event) {

if (!(navigator.userAgent.indexOf(‘iPad;’) > 0))

{

event.target.playVideo();

}

}

//Function to be called after video playback is completed

function onPlayerStateChange(event) {

if(event.data === 0) {

ShowHideVideo();

}

}

</script>

<div id=”divStartPlayer” ></div>

Notes:

1) videoId​ is the ID of YouTube video

For Eg. YouTube video link looks like this

www.youtube.com/watch?v=hsfUNRRu0VY

here, hsfUNRRu0VY is the ID of video

2) Note the code navigator.userAgent.indexOf(‘iPad;’) > 0 in onPlayerReady

function. Reason for placing such condition is that iOS does not support auto

playback of videos. (Check below link for reference)

iOS Auto-Playback disabled

So, if code contains method for playing videos, video will not load at all in iOS devices.​