30. Add the Form Viewer Web Part

In this step, you will configure a K2 SmartForms Viewer web part to display the reporting form. To do this, you will create a new page in SharePoint, then add a K2 SmartForms Viewer app to the page. You will configure the app to call the reporting form. This way, you have easy access to your dashboard where you can view data on active expense claim instances.

  1. In your SharePoint site, add a new Site Page called ExpenseClaimDashboard.
    1. Return to your SharePoint site, navigate to the Site Contents page, then open Site Pages. If you created a subsite - navigate to your subsite's Site Contents page.
    2. Click the New button to add a site page to your site.
    3. Name the new page
      ExpenseClaimDashboard
      then click Create.
  2. Add a K2 SmartForms Viewer web part to the page.
    1. Next, you will add the form viewer. After you add a new site page, it opens in edit mode. Select the INSERT tab. Click the Web Part button found in the Parts group. Click the K2 folder found in the categories pane. Add a K2 SmartForms Viewer web part. (Your screen may not look exactly like the image below if you are not on Office 365. The functionality is the same, however.)
  3. Configure the form viewer to host the Expense Claim Dashboard form. Set the Chrome type to None and set the web part height to 1000 pixels.
    1. When the form viewer finishes loading, locate and select the Expense Claim Dashboard form and then click Submit. Note that it may take a few minutes for the list view to finish loading, you can use the search box to filter list if desired.
      K2 SmartForms Viewer
    2. Edit the web part.
      Edit Web Part
    3. In the K2 SmartForms Viewer settings pane, set the Chrome Type to None, set the Web Part height to 1000 pixels, then click OK.
      Set Web Part Properties
    4. Click SAVE in the ribbon bar to complete the changes.
      Save Page Edits
  4. Obtain the URL for your new page in SharePoint, then add a new Quick Launch navigation link that points to this new page.
    1. Select, then copy the URL of the new page that you just created. Paste this URL into a notepad or other text editor tool.
      Copy URL
    2. Open Site Settings for your site, then open Quick Launch. On the Quick Launch page, click New Navigation Link.
      Site Settings
    3. Add a New Navigation Link, then paste the URL that you obtained in the previous step. For the description, enter
      Expense Claim Dashboard
      then click OK.
      New Navigation Link
    4. Return to your site’s home page. You now have a quick link to your expense claim dashboard.
      How To K2
Review

In this step, you added a new site page to SharePoint and configured it to host the expense claim dashboard form. The very last step is to check in all forms and views, after which your application is complete!

Next Step: 31. Check In Views and Forms
Expense Claim Application