Cart Buy Licenses Contact Support Login/Register
v 1.8.32
v 1.8.32
Overview Examples Docs Source Download

Signature Pad

Ask surveyee to sign the answers - use SignaturePad question

            Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

                var json = {
   "elements": [
      "type": "signaturepad",
      "name": "signature",
      "title": "Please sign your answers here"

                window.survey = new Survey.Model(json);
            survey.onComplete.add(function(result) {
            document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(, null, 3);
            var app = new Vue({
            el: '#surveyElement',
            survey: survey

<!DOCTYPE html>
<html lang="en">
    <title>Ask surveyee to sign the answers - use SignaturePad question, Vue Survey Library Example</title>

<meta name="viewport" content="width=device-width" />
    <script src=""></script>
<script src="/DevBuilds/survey-vue/survey.vue.min.js"></script>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="./index.css">

            <div id="surveyElement" style="display:inline-block;width:100%;">
                <survey :survey='survey' />
    <div id="surveyResult"></div>

<script type="text/javascript" src="./index.js"></script>


survey.getQuestionByName('signature').width; survey.render();

survey.getQuestionByName('signature').height; survey.render();

var q = survey.getQuestionByName('signature');
q.allowClear = yourvalue;