---
schema_version: "1"
id: ee876a3c53c36bd73a9016010b0905c4e3b572f01d323ee10fb78a412cc29829
title: SurveyQuestion
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_surveyquestion.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_surveyquestion.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ed0e674c1c887e4d37fc4917902078bfbd81ec13859c7566f04d670a4677cf1d
description: Represents a question in a survey.
---
# SurveyQuestion

Represents a question in a survey.

## Supported Calls

describeLayout()describeSObjects()getDeleted(), getUpdated(), query(), retrieve()

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

You can’t define custom fields for the SurveyQuestion object using the Object Manager.

## Fields

| Field | Details |
| --- | --- |
| DeveloperName | 
Type

string

Properties

Filter, Group, Sort

Description

The API name of the SurveyQuestion. The API name must be unique within a particular version of the survey.



 |
| IsDeprecated | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the question was deleted from the survey.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

Up to the first 250 characters of the label for the question.



 |
| PageDisplayOrder | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The order in which the page is displayed. This field is available in API version 54.0 and later.



 |
| PageName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The label for the page. This field is available in API version 52.0 and later.



 |
| QuestionChoiceCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of choices for the question. This field is available in API version 62.0 and later.



 |
| QuestionName | 

Type

textarea

Properties

Nillable

Description

The label for the question.



 |
| QuestionOrder | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The order in which the question is displayed.

The label for the page. This field is available in API version 52.0 and later.



 |
| QuestionType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of question. Possible values include:

- Boolean—This value is available in API v49.0 and later.
- CSAT
- Currency
- Date
- DateTime
- FreeText
- Image
- Matrix—This value is available in API v55.0 and later.
- MultipleChoice
- MultiSelectPicklist
- NPS
- Number
- Picklist
- RadioButton
- StackRank
- Rating
- ShortText—This value is available in API v49.0 and later.
- Slider
- Toggle





 |
| RelatedQuestionId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the parent question. This field is blank when the question itself is the parent question. This field is available in API v55.0 and later, with Feedback Management - Starter and Feedback Management - Growth licenses.



 |
| SubQuestionDisplayOrder | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The order in which the question is displayed within the parent question. This field is available in API v55.0 and later, with Feedback Management - Starter and Feedback Management - Growth licenses.



 |
| SurveyPageId | 

Type

reference

Properties

Filter, Group, Sort

Description

Lookup to the SurveyPage that contains the question.



 |
| SurveyVersionId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the SurveyVersion that the question belongs to.



 |
| ValidationType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The validations available for the short-text question. Possible values include:

- Custom - Cu
- Number - Nu





 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[SurveyQuestionChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.