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
Add a function node to the canvas and connect it to the first pin of the Survey Manager node.
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;
Run the Survey
You can get the custom field in the msg object at msg.orbita.session.surveyInfo.survey.customExtendedSchema.lang