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.

Shrarepoint 2013 Display Templates

Display Templates
Display Templates control which managed property is shown in the search results and how they appear in the Web Part. Each Display Template has two files: an HTML version of the Display Template that you can edit in your HTML editor, and a .js file that is for SharePoint use and should never be modified.
Control Template provides HTML to structure the overall layout for how you want to present the search results. For example, the Control Template might provide the HTML for a heading, beginning and end of a list. The Control Template is rendered only once in the Web Part.
Item Template provides HTML that determines how each item in the result set is displayed. For example, the Item Display Template might provide the HTML for a list item that contains a picture, three lines of text that are mapped to different managed properties associated with the item. The Item Display Template is rendered one time for each item in the result set. So, if the result set contains ten items, the Item Display Template creates its section of HTML ten times.
For example to customize template for search results web part, you need to change following things:

OOTB search results will be displayed in following format:
1.png
If we want the above data to be displayed in tabular format, few changes needs to be done:
Explore Display Templates
Open the required site in SharePoint designer.
Navigate to the following highlighted path:
2.png

You can see few files with suffix Control_ these are control templates and one marked with Item_ are item templates. The best way to create new display template is copy an existing display template to new one and edit the same. In our example, we will copy Control_SearchResults.html and name it as Control_SearchResults1.html. For item template, we will copy Item_Default.html and name it as Item_Default1.html.
Explore Control Display Template:
Open Item_Default1.html in SharePoint designer and make
Header Properties
This section has Display Template header properties that provide information to SharePoint about Display Template, <title> will be displayed under web part Edit Properties to choose from.
Script Block
This section is used to reference JavaScript and CSS files.
 <script>
        $includeLanguageScript(this.url,”~sitecollection/_catalogs/masterpage/Display Templates/Language Files/{Locale}/CustomStrings.js”);
        $includeScript(this.url,”~sitecollection/style library/slider/js/jquery-1.9.1.min.js”);
        $includeCSS(this.url,”~sitecollection/style library/Slider/css/example.css”);
</script>
Few important points to note here:
·          Any JavaScript Code should be inside  <!–#_ <JavaScript Code> _#–>
·          Use value assigned to variable using _#=   example: <a  href =”_#=LinkURL=#_”>
·          In Control Template  _#=ctx.RenderGroups(ctx) =#_  is used to render  HTML items (actual search results) from Item template.
·          For CSS styling, wrap _#=ctx.RenderGroups(ctx) =#_ with a div and apply css style, this will style all items coming from Item Template. Point to note here is, most outer <div>with ID matching template title will never render in HTML, so be careful not to apply style to outer <div>or it will never reflect.
·          To call a JavaScript function after Display Template is completely rendered use the AddPostRenderCallback function.
               <!–#
           AddPostRenderCallback(ctx, function() {
           //code to execute
            });
             _#–>
There is another way to achieve this by using:
ctx.OnPostRender = function() {
};
Explore Item Display Template
Header Properties
In Item Template Header Property  <mso:ManagedPropertyMapping> is used to map Search Managed Properties, retrieved from search query and map them to fields on Item Display template.
<mso:ManagedPropertyMapping msdt:dt=”string”>'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER&#39 </mso:ManagedPropertyMapping>
In order to use a Search Managed Property, it should be first added under ManagedPropertyMapping header.
mso:ManagedPropertyMapping: This property takes the managed properties that are used by search and maps them to values that can be used by the Display Template. The property is a comma-delimited list of values that uses the following format: ‘property display name'{property name}:’managed property. For example: ‘Picture URL'{PictureURL}:’PublishingImage;PictureURL;PictureThumbnailURL’.
Same as Control Template, Item Template also has Script Block and Outer DIV with matching DIV ID as template name.
DIV Block
Scripting should be put under outer DIV. After you map a property in header, you can get its value in script by using the following code:
_#=ctx.CurrentItem.<Variable>=#_
To display data in tabular format:
<tr bgcolor=”#CCCCCC”>
<th >Title</th><th>Status</th><th>Start Date</th><th>Company</th>
</tr>
<tr >
 <td >
 <div><img src=_#=ctx.CurrentItem.csr_Icon=#_ alt=”Document Icon” >_#=ctx.CurrentItem.Title=#_<br><b>Purpose:</b>_#=ctx.CurrentItem.RefinableString01=#_</div>
 </td>
  <td>
 _#=ctx.CurrentItem.RefinableString02=#_
 </td>
    <td>
            _#=ctx.CurrentItem.RefinableDate00=#_
             </td>
        <td>
            _#=ctx.CurrentItem.RefinableString00=#_
          </td>
         </tr>