API Docs for: 2.0.17170.2
Show:

ui.survey.Config Class

Extends ui.UIConfig
Module: UI Survey
Parent Module: UI

Configuration for survey component

Properties

authInfo

Object
A {{#crossLink "ui.AuthInfo"}}{{/crossLink}} object that specifies the authentication information.

environment

Environment

The survey ux environment to use.

flightId

String

Override the flight ID. Used for debugging purposes only

locale

String

Locale to render the survey in.

partnerContext

String

The survey platform environment to use. Will be converted to KVP

preview

Boolean

Use compass preview data. Used for debugging purposes only

surveyId

String

ID for the survey to render

surveyPlatformEnvironment

String

The survey platform environment to use.

theme

Object
A {{#crossLink "ui.theme.Config"}}{{/crossLink}} provides theme customization for a UI feature(The UI feature MUST support theme customization, otherwise this will be ignored)

uiInfo

Object
A {{#crossLink "ui.UIInfo"}}{{/crossLink}} object that describes how the UI component will be rendered.

viewMode

String

Optional view mode to disaplay the survey in. Default is Wizard view

Events

onError

Fired when an error occurs

Event Payload:

  • data Object
    An object that contains error information
    • message String

      Error message

onSignInRedirect

Fired when popu window redirects to login page

onSignInRequest

Fires when user sign-in is requested

Event Payload:

  • data Array
    An array that contains information for supported sign-in types. i.e. [{ type: "MSA", policy: "MBI_SSL" }, { type: "ADD" }]

onSurveyComplete

Fires when the survey is complete

Event Payload:

  • data Object

    A data object that is passed through the event

    • Submitted Object

      True if the user submitted the survey. False if they cancelled.

onSurveyComplete

Fires when the survey is rendered

onUnloaded

Fired when the ui component is closed