Skip to main content

Question definition

anyOf
ChoiceOrderstring[]required

The order the choices are to be displayed in.

Possible values: Value must match regular expression ^[\d]+$

Example: ["1","2"]
Choices objectrequired

Selections for a question

property name* object
Displaystring
property name*any
Configuration objectrequired

Configurations for how the question should be displayed

QuestionDescriptionOptionstring

An optional user-provided field for question descriptions.

Possible values: [UseText, SpecifyLabel]

TextPositionstring

Text position.

Possible values: [inline]

ChoiceColumnWidthinteger

Value of column width.

Possible values: [25]

RepeatHeadersstring

Repeating of headers.

Possible values: [none]

WhiteSpacestring

If white space is allowed.

Possible values: [ON, OFF]

LabelPositionstring

Position of label.

Possible values: [BELOW, SIDE]

NumColumnsinteger

Number of columns.

MobileFirstboolean

If questions should be formatted for use on a mobile device.

property name*any

Configurations for how the question should be displayed

DataExportTagDataExportTag (string)

The tag to identify the question in exported data.

Language objectrequired

Question translations

oneOf
  • Array [
  • string
  • ]
  • NextAnswerIdinteger
    NextChoiceIdinteger
    QuestionDescriptionstringrequired

    Label to identify the question

    QuestionIDQuestion Id (string)

    The unique identifier for the question.

    Possible values: Value must match regular expression ^QID[a-zA-Z0-9]+$

    QuestionTextQuestionText (string)required

    Text for the question.

    Possible values: <= 1000 characters

    QuestionTypestringrequired

    Defines the structure and purpose of the question and determines how the question is presented to respondents.

    Supported enum values
    MC
    Multiple Choice

    Possible values: [MC]

    Randomization object

    Randomize choices within a question.

    oneOf
    string
    RecodeValues object

    Numeric mapping of question choices.

    property name*string
    Selectorstringrequired

    Defines the format used for collecting responses within the QuestionType and determines how respondents interact with the question to provide their answers.

    Supported enum values
    DL
    Dropdown List
    GRB
    Graphic
    MACOL
    Multi Answer Columns
    MAHR
    Multi Answer Horizontal Row
    MAVR
    Multi Answer Vertical Row
    MSB
    Multi Select Box
    NPS
    Net Promoter Score
    SACOL
    Single Answer Column
    SAHR
    Single Answer Horizontal Row
    SAVR
    Single Answer Vertical Row
    SB
    Select Box (single answer)
    TB
    Text Block
    TXOT
    With Text and Others
    PTB
    Plain Text Box

    Possible values: [DL, GRB, MACOL, MAHR, MAVR, MSB, NPS, SACOL, SAHR, SAVR, SB, TB, TXOT, PTB]

    SubSelectorstringrequired

    Refines the Selector by providing additional options or variations for response collection. It allows for more specific customization of how answers are gathered within the chosen question type and Selector.

    Supported enum values
    GR
    With Graphic
    TX
    With Text
    TXOT
    With Text and Others
    WOTXB
    Without Text Box
    WTXB
    With Text

    Possible values: [GR, TX, TXOT, WOTXB, WTXB]

    Validation objectrequired

    Force respondents to answer a question or request that they consider answering the question before leaving the page

    Settings objectrequired
    CustomValidation object

    Additional validation to direct respondents to answer questions in a certain way.

    Logic objectrequired

    Send respondents down different paths in the survey. See Qualtics Documentation for more information on Branch Logic

    Typestringrequired

    Type of branch logic.

    Possible values: [BooleanExpression]

    property name* object
    oneOf
    ChoiceLocator objectrequired

    Locator.

    anyOf
    LogicTypestringrequired

    The logic type of a question expression.

    Possible values: [Question]

    Operatorstringrequired

    Operator.

    Possible values: [Selected, NotSelected, EqualTo, NotEqualTo, Empty, NotEmpty, Displayed, NotDisplayed, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Contains, DoesNotContain, MatchesRegex, IsNot, Uploaded, NotUploaded, PDF, Document, ClickedIn, NotClickedIn, Extensions, Graphic, Spreadsheet]

    QuestionIDQuestion Id (string)required

    The unique identifier for the question.

    Possible values: Value must match regular expression ^QID[a-zA-Z0-9]+$

    QuestionIsInLoopstringrequired

    If yes, question is in loop.

    Possible values: [yes, no]

    Typestringrequired

    The type of question expression.

    Possible values: [Expression]

    Message objectrequired

    Message to display when respondents don't fulfill the validation

    descriptionstring

    A user-provided description of the custom validation.

    libraryID objectrequired
    anyOf
    User Id (string)

    The unique identifier for a specific user.

    Possible values: Value must match regular expression ^UR_[a-zA-Z0-9]{11,15}$

    messageIDMessage Id (string)required

    The unique identifier for the message.

    Possible values: Value must match regular expression ^MS_[a-zA-Z0-9]{11,15}$

    subMessageIDstringrequired

    The unique identifier for the subMessageID.

    Possible values: [VE_FORCE_RESPONSE, VE_FORCE_RESPONSE_PLURAL, VE_FORCE_RESPONSE_MORE, VE_FORCE_RESPONSE_OTHER, VE_MIN_CHOICES, VE_MAX_CHOICES, VE_MAX_CHOICES_PGR, VE_MIN_CHOICES_MATRIX, VE_MAX_CHOICES_MATRIX, VE_MIN_CHOICES_HLText, VE_MAX_CHOICES_HLText, VE_INCORRECT_TOTAL, VE_TOO_MANY_CHARACTERS, VE_TOO_MANY_CHARACTERS_PLURAL, VE_TOO_FEW_CHARACTERS, VE_TOO_FEW_CHARACTERS_PLURAL, VE_NOT_CONSECUTIVE, VE_NOT_CONSECUTIVE_RANGE, VE_VALIDATION_FAILED, VE_VALIDUSSTATE, VE_VALIDCAPHONE, VE_VALIDUKPHONE, VE_VALIDUKZIP, VE_VALIDAUPHONE, VE_VALIDNLPHONE, VE_VALIDNZPHONE, VE_VALIDAUZIP, VE_VALIDNZZIP, VE_VALIDNLZIP, VE_VALIDUSZIP, VE_VALIDCAZIP, VE_VALIDDATE, VE_VALIDALTDATE, VE_VALIDINTLDATE, VE_VALIDNUMBER, VE_VALIDTEXTONLY, VE_VALIDUSSTATE_PLURAL, VE_VALIDEMAIL_PLURAL, VE_VALIDUSPHONE_PLURAL, VE_VALIDUSZIP_PLURAL, VE_VALIDDATE_PLURAL, VE_VALIDNUMBER_PLURAL, VE_VALIDTEXTONLY_PLURAL, VE_VALIDEXTENSIONS, VE_VALIDPDF, VE_VALIDDOCUMENT, VE_VALIDEMAIL, VE_VALIDSPREADSHEET, VE_VALIDGRAPHIC, VE_VALIDUPLOAD, VE_VALIDSCREENCAPTURE, VE_TEXT_ENTRY_HAS_VALUE_BUT_NOT_CHECKED, VE_TEXT_ENTRY_HAS_VALUE_BUT_NOT_RANKED, VE_SELECT_LEAST_MOST_PREFERRED, VE_SELECT_LEAST_MOST_LEVEL, VE_SELECT_MOST_VALUE_UPGRADE, VE_SELECT_VALUABLE_LEVEL, VE_IMPORTANCE_TOTAL, VE_MIN_GROUP_CHOICES, VE_MAX_GROUP_CHOICES, VE_VALIDNUMBER_MIN, VE_VALIDNUMBER_MAX, VE_VALIDMIN_PLURAL, VE_VALIDMAX_PLURAL, VE_VALIDNUMBER_NUM_DECIMALS, VE_FORCE_OTHER_RESPONSE, VE_HEADER_VALIDATION_MESSAGE, VE_CUSTOM_VALIDATION_NO_MESSAGE, VE_CUSTOM_VALIDATION_NOT_APPLIED, VE_QUESTION, VE_ERROR, VE_INCORRECT_CAPTCHA_RESPONSE, VE_MULTIPLE_CHOICES]

    property name*any

    Message to display when respondents don't fulfill the validation

    property name*any

    Additional validation to direct respondents to answer questions in a certain way.

    ForceResponsestring

    The forced response.

    ForceResponseTypestring

    The type of forced response.

    Typestring

    Settings type.

    property name*any
    property name*any

    Force respondents to answer a question or request that they consider answering the question before leaving the page

    Question definition
    {
    "ChoiceOrder": [
    "1",
    "2"
    ],
    "Choices": {
    "1": {
    "Display": "choice 1"
    },
    "2": {
    "Display": "choice 2"
    }
    },
    "Configuration": {
    "QuestionDescriptionOption": "UseText",
    "TextPosition": "inline",
    "ChoiceColumnWidth": 25,
    "RepeatHeaders": "none",
    "WhiteSpace": "ON",
    "LabelPosition": "BELOW",
    "NumColumns": 0,
    "MobileFirst": true
    },
    "DataExportTag": "string",
    "Language": [
    "string"
    ],
    "NextAnswerId": 0,
    "NextChoiceId": 0,
    "QuestionDescription": "string",
    "QuestionID": "string",
    "QuestionText": "string",
    "QuestionType": "MC",
    "Randomization": "string",
    "RecodeValues": {
    "1": "1",
    "2": "2",
    "3": "-1000"
    },
    "Selector": "DL",
    "SubSelector": "GR",
    "Validation": {
    "Settings": {
    "CustomValidation": {
    "Logic": {
    "Type": "BooleanExpression"
    },
    "Message": {
    "description": "string",
    "libraryID": "string",
    "messageID": "string",
    "subMessageID": "VE_FORCE_RESPONSE"
    }
    },
    "ForceResponse": "string",
    "ForceResponseType": "string",
    "Type": "string"
    }
    }
    }