Javascript (JS) question type variables

Javascript (JS) question type variables

In the Javascript component, you can use the variables presented below to customize content:

{{respondentName}} - Respondent Name
{{respondentEmail}} - Respondent E-mail
{{respondentNode}} - respondent node
{{timesOpenedSurvey}}- How many times respondent opened survey link
{{projectUserName}} - project contact name
{{projectUserEmail}}- project contact email
    • Related Articles

    • Javascript (JS) question - store and retrieve values

      The Javascript question is in itself not storing any data in the survey. To store and retrieve respondent actions, you need to implement the following code in your javascript To store data from javascript: ...
    • Computed variables

      Calculate variables are used for calculating indexes or variables based on a respondents answer to multiple questions. The variables are set for each survey, and can be reused in all reports using this survey. You find the computed variables by ...
    • Report variables

      High level of technical difficulty In the report it is possible to refer to average values of a question or variable within texts. This has the following format: {{seriesID.questionID}} Example ...
    • Survey variables

      To embed variables in survey related to project, survey and respondent, the following can be used Respondent related: Respondent name: ${respondent_name} Respondent node: ${respondent_node_name} Respondent email: ${respondent_email} Respondents ...
    • Charts in report editor

      Currently, the Effect IO report editor is in its infancy, so setting up charts requires some work. After you have created a report, you can navigate to a page, and add the "chart" component. Here, you will be able to the JSON configuration of a ...