Skip to main content

Wesurvey Code Editor

Introduction

The "Code Mode" in Wesurvey is an innovative survey creation method that allows users to create surveys through code. This mode provides a comprehensive coding system that includes "Survey Content", "Logic", "Screening Rules", "Custom Variables", and "Quota Rules" to help users create and adjust surveys more easily and flexibly.

Survey Content Writing uses a "Markdown-like" syntax to create survey content. This allows users to quickly build complete surveys through simple text writing, supporting various rich text formats such as highlighting, links, images, videos, and more.

Logic Writing is a method of implementing survey logic using specific logic code. This approach allows users to customize complex survey logic through code, such as cross-question logic judgments, to better meet survey requirements. For example, if a user selects option B in Question 1, they will skip to Question 5 to continue the survey.

Screening Rule Writing defines filtering rules through code logic to automatically filter out abnormal survey responses. These rules help users filter and clean invalid, duplicate, or abnormal survey data, making the survey results more accurate and authentic. For example, using age definitions to screen out respondents over 55 years old from qualifying for the survey.

Variable Definition Writing defines statistical variables through code to make statistics more convenient and faster. Users can define the range of data to be analyzed through simple code writing, and quickly generate statistical results based on these defined statistical variables, such as defining zzz situations through xxx and yyy.

Quota Rule Writing defines answer quota rules through code. These rules help survey administrators control the number of times an answer can be selected, preventing any single answer from being chosen too frequently.

Overall, Wesurvey's "Code Mode" provides a new method for creating surveys that not only enables quick survey creation but also allows implementation of more complex survey logic and statistical requirements through custom code, better meeting users' practical needs.

Quick Start