Survey Returned Fields

Returned fields for the Survey object are explained below. Go to the Example Returns section to view return examples for each call type.

Returned Fields for the Survey Object

FieldDescriptionFormat
idSurvey IDstring
teamTeam IDstring
_typeAPI object typestring
_subtypeProject type (Survey, Poll, Form, Quiz)string
StatusProject status (Open, Closed)string
created_onDate/time createdYYYY-MM-DD HH:MM:SS
modified_onDate/time last modifiedYYYY-MM-DD HH:MM:SS
forward_onlyDisables Back Buttonboolean
languagesArray of translated languagesstring
titleProject/Survey Titlestring
internal_titleInternal Titlestring
title_mlArray of titles for each translation (ex: [English] => Survey Title, [Spanish] =>Encuesta Título)string
LinksArray of all share linksURL
StatisticsArray of response counts for each status e.g. partial, complete, etc.array
themeTheme IDstring
blockbyDuplicate protection type (IP, COOKIE, null)string
pagesArray of survey pages. See SurveyPage Returned Fields for more info.array

Example Returns (.debug format)

GetList Return Example (.debug format):

Array
(
    [result_ok] => 1
    [total_count] => 5
    [page] => 1
    [total_pages] => 1
    [results_per_page] => 5
    [data] => Array
        (
            [0] => Array
                (
                    [id] => 1357785
                    [team] => 406258
                    [_type] => Survey
                    [_subtype] => Poll
                    [status] => Launched
                    [created_on] => 2013-09-07 19:55:22
                    [modified_on] => 2013-09-07 19:55:23
                    [title] => Poll
                    [statistics] =>
                        (
                            [Complete] => 2
                        )
                    [links] => Array
                        (
                            [edit] => {edit link}
                            [publish] => {publish link}
                        )

                )

        )

)

GetSurvey Return Example (.debug format):

Array
(
    [result_ok] => 1
    [data] => Array
        (
            [id] => 1118412
            [team] => 406257
            [_type] => Survey
            [_subtype] => Survey
            [status] => In Design
            [created_on] => 2012-12-18 17:19:23
            [modified_on] => 2012-12-19 16:05:49
            [forward_only] =>
            [languages] => Array
                (
                    [0] => English
                )

            [title] => Survey
            [internal_title] => Survey
            [title_ml] => Array
                (
                    [English] => Survey
                )

            [theme] => 11147
            [blockby] => NONE
            [statistics] =>
            [links] => Array
                (
                    [edit] => {edit link}
                    [publish] => {publish link}
                )
The remainder of the survey get object return is an array of survey pages. See the SurveyPage object for more.

Create Survey Return Example (.debug format):

Array
(
    [result_ok] => 1
    [data] => Array
        (
            [id] => 1120173
            [team] => 406256
            [_type] => Survey
            [_subtype] => Survey
            [status] => In Design
            [created_on] => 2012-12-20 16:03:16
            [modified_on] => 2012-12-20 16:03:16
            [forward_only] =>
            [languages] => Array
                (
                    [0] => English
                )

            [title] => My New Survey
            [internal_title] => My New Survey
            [title_ml] => Array
                (
                    [English] => My New Survey
                )

            [theme] => 11147
            [blockby] =>
            [statistics] =>
            [links] => Array
                (
                    [edit] => {edit link}
                    [publish] => {campaign link}
                )
The remainder of the survey create object return is an array of survey pages. See the SurveyPage object for more.

Update/Copy Survey Return Example (.debug format):

Array
(
    [result_ok] => 1
    [data] => Array
        (
            [id] => 1120161
            [team] => 406256
            [_type] => Survey
            [_subtype] => Survey
            [status] => In Design
            [created_on] => 2012-12-20 15:50:41
            [modified_on] => 2012-12-20 17:47:15
            [forward_only] =>
            [languages] => Array
                (
                    [0] => English
                )

            [title] => Updated Survey
            [internal_title] => Updated Survey
            [title_ml] => Array
                (
                    [English] => Updated Survey
                )

            [theme] => 11147
            [blockby] => COOKIE
            [statistics] =>
            [links] => Array
                (
                    [edit] => {edit link}
                    [publish] => {publish link}
                    [campaign] => {campaign link}
                )
The remainder of the survey update object return is an array of survey pages. See the SurveyPage object for more.

Delete Survey Return Example (.debug format):

Array
(
    [result_ok] => 1
)