Skip to main content

Slider Question

idstringrequired

Unique question identifier

Example: QID1
displaystringrequired

Question text/HTML content to display

requiredstring

Question requirement level - 'off', 'force' (required), 'request' (optional)

Possible values: [off, force, request]

Example: force
typestringrequired

Slider question type

Possible values: [slider]

statements object[]required

Slider statements

Possible values: <= 1000

  • Array [
  • idstringrequired

    Unique choice identifier

    Example: 1
    displaystringrequired

    Choice text/HTML to display

    image object

    Image associated with the choice

    namestringrequired

    Image filename

    urlstringrequired

    Image URL

    textPositionstringrequired

    Position of text relative to image

    Possible values: [top, left, right, bottom]

    expandedUrlstring

    URL for expanded/full-size image

    textEntry object

    Text entry field associated with this choice

    contentTypestring

    Expected content type

    Possible values: [number, date, integer]

    requiredboolean

    Whether text entry is required when choice is selected

    Possible values: [true]

    symbol object

    Symbol/prefix for text entry fields

    valuestringrequired

    Symbol to display (e.g., '$', '%')

    Example: $
    positionstringrequired

    Position of symbol relative to input

    Possible values: [before, after]

    exclusiveSelectboolean

    Whether selecting this choice deselects all others

    Possible values: [true]

  • ]
  • minnumber<double>required

    Minimum slider value

    Example: 0
    maxnumber<double>required

    Maximum slider value

    Example: 100
    stepnumber<double>required

    Slider step increment

    Example: 1
    labelsstring[]required

    Labels for slider endpoints

    Possible values: >= 2, <= 2

    Example: ["Not satisfied","Very satisfied"]
    notApplicable object

    Not applicable option configuration for slider questions

    displaystringrequired

    Display text for N/A option

    Slider Question
    {
    "id": "QID1",
    "display": "string",
    "required": "force",
    "type": "slider",
    "statements": [
    {
    "id": "1",
    "display": "string",
    "image": {
    "name": "string",
    "url": "string",
    "textPosition": "top",
    "expandedUrl": "string"
    },
    "textEntry": {
    "contentType": "number",
    "required": true,
    "symbol": {
    "value": "$",
    "position": "before"
    }
    },
    "exclusiveSelect": true
    }
    ],
    "min": 0,
    "max": 100,
    "step": 1,
    "labels": [
    "Not satisfied",
    "Very satisfied"
    ],
    "notApplicable": {
    "display": "string"
    }
    }