Remove Properties from the Property Grid
If you want to prevent users from accessing or modifying a certain survey element's property, you can hide it from the Property Grid. Survey Creator allows you to hide either an individual property or multiple properties at once. This example demonstrates an API used to hide the visibleIf
property for pages, panels, and questions and the description
and showTitle
properties for the survey.
To hide a single property, access it using the Serializer
's getProperty(className, propertyName)
method and set its visible
attribute to false
. To hide multiple properties, handle the onShowingProperty
event. Its second parameter includes the canShow
Boolean property. Disable it for the properties you want to hide. Open the Code tab to view code examples.