Buy Licenses Contact Support Login/Register
v 1.7.19
v 1.7.19
Overview Survey Creator Examples Docs Source Download

Survey and page title

You can show/hide survey and page title inplace editors


    //Use the following code to hide title and description properties from the property grid.
    //For Survey:
    Survey.Serializer.findProperty("survey", "title").visible = false;
    Survey.Serializer.findProperty("survey", "description").visible = false;
    //For Page:
    Survey.Serializer.findProperty("page", "title").visible = false;
    Survey.Serializer.findProperty("page", "description").visible = false;

    // Set this survey option to false if you want to hide the expand/collapse button for showing survey logo/title.
    options.allowControlSurveyTitleVisibility = false;

    // Set this option property to "ifentered" (default) to show survey title/logo when they are not empty, to "always" to show them all the time or to "never" to hide survey title/logo from the designer
    options.showSurveyTitle = "never";

    // Set this property in global settings variable to false, to hide the page title from the designer, when it is empty. Page Title will be shown in anyway when it is not empty
    Survey.settings.allowShowEmptyTitleInDesignMode = false;

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

<!DOCTYPE html>
<html lang="en">
    <title>You can show/hide survey and page title inplace editors, Survey Creator Example</title>

<meta name="viewport" content="width=device-width" />
    <script src=""></script>
<script src="/DevBuilds/packages/survey-knockout/survey.ko.js"></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="/DevBuilds/build/survey-creator.css" type="text/css" rel="stylesheet" />
    <script src="/DevBuilds/build/survey-creator.js"></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>