Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document explains how to add an Extended schema for a survey. As an admin usera survey author, you can use this Extended schema to store information about the survey in the payload.

For example, you can make note of the language of the survey.

...

Instructions

  1. Add a function node to the canvas and connect it to the first pin of the Survey Manager node.

  2. Place the below code in the function node.

    Code Block
    if(msg.orbita.session.surveyInfo.surveyId === "6041fde9e8c14800718c105c"){
        msg.orbita.session.surveyInfo.survey.customExtendedSchema.lang = "spanish"
    }
    return msg;
  3. Run the Survey

...

  1. Select your project in the Experience Manager and edit the URL to add the /survey

    Image Added
  2. Click on the vertical ellipses button against the survey you wanted to edit from the Survey listing page.

    Image Added
  3. Select the Extended Schema tab and add the properties and save it as shown below.

    Image Added
  4. You can see these properties listed under the msg.orbita.session.surveyInfo.survey.customExtendedSchema

...

  1. object in the payload.

    Image Added
Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@130ff
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "survey" and type = "page" and space = "OCS"
labelssurvey