---
title: Teacher Evaluation Form
product: PDF Generator
description: Get a printable teacher evaluation form in PDF. Create editable or prefilled teacher review forms using SurveyJS PDF Generator.
framework: Vanilla JS
source: https://surveyjs.io/pdf-generator/examples/pdf-education-teacher-evaluation-form-template/vanillajs
index: https://surveyjs.io/pdf-generator/examples/overview.md
---

# Teacher Evaluation Form (Vanilla JS)

## Files

### `public/index.html`

```html
<div style="display: flex;">
    <div id="surveyElement" style="flex: 1 1 0%; height: 100%; min-width: 0;"></div>
    <div id="pdf-preview" style="flex: 0.7 0.7 0%; display: none">
        <embed id="pdf-preview-frame" type="application/pdf" style="width:100%; height:100%;" />
    </div>
</div>
```

### `src/index.css`

```css
/* You can add your custom CSS here. */
```

### `src/index.js`

```js
import { Model } from "survey-core";
import "survey-js-ui";
import { SurveyPDF } from "survey-pdf";
import "survey-core/survey-core.min.css";
import "./index.css";
import { json } from "./json";

function createSurveyPdfModel (surveyModel) {
    const surveyPDF = new SurveyPDF(json);
    if (surveyModel) {
        surveyPDF.data = surveyModel.data;
        surveyPDF.locale = surveyModel.locale;
        
        
    }
    
    return surveyPDF;
}
function saveSurveyToPdf (filename, surveyModel) {
    const pdfDoc = createSurveyPdfModel(surveyModel);
    if (!pdfDoc) return;

    pdfDoc.save(filename);
}

const previewDiv = document.getElementById("pdf-preview");
const previewEmbed = document.getElementById("pdf-preview-frame");
let pdfBlobUrl;

function showPdfPreview(surveyModel) {
    if (!previewDiv || !previewEmbed) return;

    const pdfDoc = createSurveyPdfModel(surveyModel);
    if (!pdfDoc) return;

    pdfDoc.raw("blob").then((blob) => {
        if (pdfBlobUrl) {
            URL.revokeObjectURL(pdfBlobUrl);
        }
        pdfBlobUrl = URL.createObjectURL(blob);
        previewEmbed.setAttribute("src", pdfBlobUrl);
        previewDiv.style.display = "block";
    });
}

function previewPdf(surveyModel) {
    if (!previewDiv) return;

    if (previewDiv.style.display !== "none") {
        previewDiv.style.display = "none";
        return;
    }

    showPdfPreview(surveyModel);
}

const survey = new Model(json);
survey.showCompleteButton = false;
survey.navigationButtonsLocation = "topBottom";
survey.addNavigationItem({
    id: "survey_save_as_file",
    title: "Download PDF",
    action: () => {
        saveSurveyToPdf("surveyResult.pdf", survey);
    }
});
survey.addNavigationItem({
    id: "survey_pdf_preview",
    title: "Preview PDF",
    visible: window.navigator.pdfViewerEnabled,
    action: () => {
        previewPdf(survey);
    }
});
survey.render(document.getElementById("surveyElement"));
```

### `src/json.js`

```js
export const json = {
  "title": "Teacher Evaluation Form",
  "questionsOnPageMode": "singlePage",
  "headerView": "advanced",
  "pages": [
    {
      "name": "teacher",
      "title": "Teacher Information",
      "elements": [
        {
          "type": "text",
          "name": "teacher-name",
          "title": "Teacher Name"
        },
        {
          "type": "text",
          "name": "school",
          "title": "School Name"
        },
        {
          "type": "text",
          "name": "subject",
          "startWithNewLine": false,
          "title": "Subject / Grade"
        },
        {
          "type": "panel",
          "name": "dates",
          "title": "Observation Date(s)",
          "elements": [
            {
              "type": "text",
              "name": "from",
              "title": "From",
              "inputType": "date"
            },
            {
              "type": "text",
              "name": "to",
              "startWithNewLine": false,
              "title": "To",
              "inputType": "date"
            }
          ]
        }
      ]
    },
    {
      "name": "overall-evaluation",
      "title": "Overall Evaluation",
      "elements": [
        {
          "type": "matrixdropdown",
          "name": "classroom-instruction",
          "title": "I. Classroom Instruction",
          "showHeader": false,
          "alternateRows": true,
          "columns": [
            {
              "name": "column-classroom-instruction",
              "cellType": "boolean",
              "labelTrue": "Satisfactory",
              "labelFalse": "Unsatisfactory"
            }
          ],
          "rows": [
            {
              "value": "a",
              "text": "A. Planning and Preparation"
            },
            {
              "value": "b",
              "text": "B. Teacher/Student Relationships"
            },
            {
              "value": "c",
              "text": "C. Class Management"
            },
            {
              "value": "d",
              "text": "D. Management of Student Behavior"
            },
            {
              "value": "e",
              "text": "E. Instructional Time"
            },
            {
              "value": "f",
              "text": "F. Instructional Presentation"
            },
            {
              "value": "g",
              "text": "G. Instructional Monitoring of Student Performance"
            },
            {
              "value": "h",
              "text": "H. Instructional Feedback"
            },
            {
              "value": "item1",
              "text": "I. Facilitating Instruction"
            }
          ]
        },
        {
          "type": "matrixdropdown",
          "name": "interpersonal",
          "title": "II. Interpersonal / Professional Responsibilities",
          "showHeader": false,
          "alternateRows": true,
          "columns": [
            {
              "name": "column-interpersonal",
              "cellType": "boolean",
              "labelTrue": "Satisfactory",
              "labelFalse": "Unsatisfactory"
            }
          ],
          "rows": [
            {
              "value": "a",
              "text": "A. Communicating with Families"
            },
            {
              "value": "b",
              "text": "B. Maintaining Accurate Records"
            },
            {
              "value": "c",
              "text": "C. Contributing to the School and the District"
            },
            {
              "value": "d",
              "text": "D. Showing Professionalism"
            }
          ]
        },
        {
          "type": "comment",
          "name": "summary",
          "title": "III. Summary / Comments",
          "maxLength": 300,
          "rows": 3,
          "autoGrow": true
        }
      ]
    },
    {
      "name": "signatures",
      "title": "Signatures",
      "elements": [
        {
          "type": "panel",
          "name": "teacher-signature",
          "title": "Teacher's Signature",
          "elements": [
            {
              "type": "signaturepad",
              "name": "teacher-signature-question",
              "titleLocation": "hidden",
              "signatureHeight": 100
            },
            {
              "type": "text",
              "name": "date-teacher",
              "title": "Date",
              "inputType": "date",
              "startWithNewLine": false
            }
          ]
        },
        {
          "type": "panel",
          "name": "admin-signature",
          "title": "Administrator's Signature",
          "elements": [
            {
              "type": "signaturepad",
              "name": "admin-signature-question",
              "titleLocation": "hidden",
              "signatureHeight": 100
            },
            {
              "type": "text",
              "name": "date-admin",
              "title": "Date",
              "inputType": "date",
              "startWithNewLine": false
            }
          ]
        },
        {
          "type": "html",
          "name": "rebuttal",
          "html": "<p><i>The teacher may present a written rebuttal to the administrator within 20 working days.</i></p>"
        }
      ]
    }
  ]
};
```

### `src/theme.js`

```js
export const themeJson = {};
```

### `package.json`

```json
{
  "dependencies": {
    "survey-core": "latest",
    "survey-js-ui": "latest",
    "survey-pdf": "latest"
  }
}
```

## Other Frameworks

- [Angular](https://surveyjs.io/pdf-generator/examples/pdf-education-teacher-evaluation-form-template/angular.md)
- [React](https://surveyjs.io/pdf-generator/examples/pdf-education-teacher-evaluation-form-template/reactjs.md)
- [Vue 3](https://surveyjs.io/pdf-generator/examples/pdf-education-teacher-evaluation-form-template/vue3js.md)
- [jQuery](https://surveyjs.io/pdf-generator/examples/pdf-education-teacher-evaluation-form-template/jquery.md)
