Skip to content

Shared Question Schema Properties

Base properties shared by all question types.

Element type: question Key properties: 31


  • 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: string
  • Default: "default"
  • Allowed values: default, readonly, view

How the question looks while it’s read-only, from readOnly, an enableIf that is false, or a read-only parent. readonly shows the usual input, disabled. view shows the answer as plain text or another non-interactive display. default inherits from the panel, page, or form root, whose default is readonly. Pages and panels accept the same property.

  • 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: value
  • Default: —

The answer used for secure quiz grading. Formspace removes this property from respondent-facing form payloads and evaluates it server-side on submission.

  • Type: number
  • Default: 1 when the question has correctAnswer

The point value for a quiz question. Only applies when the same question also has correctAnswer. If omitted, Formspace treats the question as worth 1 point. Formspace removes this property from respondent-facing form payloads and evaluates it server-side on submission.

  • 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: boolean
  • Default: false (true for signaturepad)

Shows a Clear button in the question title that returns the answer to unanswered. It’s most useful on questions respondents can’t otherwise clear, such as radiogroup, boolean, imagepicker, matrix, rating, and slider. The button needs a visible title. dropdown and tagbox use the property for their own clear control, and signaturepad for its Clear button. buttongroup, file, html, image, expression, matrixdynamic, and paneldynamic don’t show it.

  • Type: boolean
  • Default: inherits the form root’s showKeyboardHints (false)

Shows hints for the keyboard actions the question supports, such as typing a choice’s letter or pressing Enter to continue. Hints are hidden on touch devices, in read-only and preview modes, in collapsed questions, and in matrix cells.

  • Type: boolean
  • Default: true

Whether a Filter element offers this question as a field to filter by. Applies to questions in a paneldynamic template; matrixdynamic and matrixdropdown columns have the same property. Set it to false for internal or noisy fields.

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

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: —

Gets or sets minimum form element width in CSS values.

  • Type: string
  • Default: —

Gets or sets maximum form element width in CSS values.