Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

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.

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

You can get the custom field in the msg object at msg.orbita.session.surveyInfo.survey.customExtendedSchema.lang

  • No labels