Skip to content

Shared Question Schema Properties

Base properties shared by all question types.

Element type: question Key properties: 25


  • Type: string
  • Default:
  • Required: Yes

A form element identifier.

  • Type: text
  • Default:
  • Localizable: Yes

A title for the form element. If title is undefined, the name property value is displayed instead.

  • Type: text
  • Default:
  • Localizable: Yes

Explanatory text displayed under the title.

  • Type: switch
  • Default:

Makes the question required. If a respondent skips a required question, the survey displays a validation error.

  • Type: condition
  • Default:

A Boolean expression. If it evaluates to true, this question becomes required.

  • Type: condition
  • Default:

A Boolean expression. If it evaluates to false, this question becomes hidden.

  • Type: condition
  • Default:

A Boolean expression. If it evaluates to false, this question becomes read-only.

  • Type: switch
  • Default:

Makes the form element read-only.

  • Type: value
  • Default:

A default value for the question. Ignored for question types that cannot have a value (for example, HTML).

  • Type: expression
  • Default:

An expression used to calculate the defaultValue.

  • Type: validators
  • Default:

Question validators.

  • Type: string
  • Default:

Specifies an object property that should store the question value.

  • Type: string
  • Default: "default"
  • Allowed values: default, none, onComplete, onHidden, onHiddenContainer

Specifies when to clear the question value if the question becomes invisible.

  • Type: condition
  • Default:

A Boolean expression. If it evaluates to true, the question value is reset to default.

  • Type: condition
  • Default:

A Boolean expression. If it evaluates to true, the question value is set to a value calculated using the setValueExpression.

  • Type: expression
  • Default:

An expression that calculates the question value.

  • Type: boolean
  • Default: true

Specifies whether to show a number for this question. Setting this property to false hides the question number from the title and excludes the question from numbering.

  • Type: boolean
  • Default:
  • Type: string
  • Default: "default"
  • Allowed values: default, top, bottom, left, hidden

Sets question title location relative to the input field. Overrides the questionTitleLocation property specified for the question’s container (survey, page, or panel).

  • Type: string
  • Default: "default"
  • Allowed values: default, underInput, underTitle

Specifies where to display a question description.

  • Type: string
  • Default: "default"
  • Allowed values: default, top, bottom

Specifies the error message position. Overrides the questionErrorLocation property specified for the question’s container (survey, page, or panel).

  • Type: boolean
  • Default: true

Disable this property if you want to render the current question on the same line or row with the previous question or panel.

  • Type: string
  • Default:

Sets form element width in CSS values.

  • Type: string
  • Default: "300px"

Gets or sets minimum form element width in CSS values.

  • Type: string
  • Default: "100%"

Gets or sets maximum form element width in CSS values.