Custom property editor for the custom property

Please read the license agreement if you want to use Survey Creator widget in your app(s). Visit our buy page to find out developer license(s) price.
Please add any question and check 'shortname' property

    .addProperty("question", {
        name: "shortname",
        type: "shorttext",
        isRequired: true

var ShortTextEditor = {
    render: function (editor, htmlElement) {
        var input = document.createElement("input");
        input.className = "form-control svd_editor_control";
        input.type = "text";
        input.maxLength = 5; = "100%";
        input.onchange = function() {
        editor.onValueUpdated = function (newValue) {
            input.value = editor.koValue() || "";
        input.value = editor.koValue() || "";

    .registerCustomEditor("shorttext", ShortTextEditor);"shortname");

var creatorOptions = { };
var creator = new SurveyCreator.SurveyCreator("creatorElement", creatorOptions);

<!DOCTYPE html>
    <title>Please add any question and check &#39;shortname&#39; property, Survey Creator Example</title>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src=""></script>
<script src=""></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <!-- Uncomment to enable Select2
    <script src=""></script>
    <link href="" rel="stylesheet" />
    <script src=""></script>
    <link href="" type="text/css" rel="stylesheet" />
    <script src=""></script>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="./index.css">

        <div id="surveyContainer">
        <div id="creatorElement"></div>

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