surveyjs /survey-library
Open-source JavaScript form library for React, Angular, Vue, and plain JavaScript. Render dynamic JSON-driven forms, multi-step form wizards, surveys, quizzes, and other data-entry tools.
★ 4,931⑂ 927👁 66⑃ 5,199● 6,791▤ 409
+0
Daily
4,931
stars
927
forks
66
watchers
5,199
prs
6,791
issues
409
releases
README
SurveyJS Form Library
SurveyJS Form Library is a free and open-source JavaScript form library for rendering dynamic, JSON-based forms and surveys in React, Angular, Vue, and plain JavaScript applications. It collects responses in the browser and lets you send submitted data to any backend or database.
Use it to build complex multi-step forms, pop-up surveys, quizzes, scored surveys, calculator forms, and other data-entry tools. Form content and structure, validation, conditional logic, navigation, and appearance are defined through a SurveyJS JSON form definition.
You can create form definitions manually, generate them with AI, or build them visually with SurveyJS Creator, an embeddable drag-and-drop form builder.
Documentation
·
Setup Guides for My Stack
·
Form Library Demos
·
Theme Adapters
·
Store Survey Results
·
Report Bug
https://github.com/surveyjs/survey-library/assets/102306951/844563b2-c7c3-400c-962f-bcdbe7274d55
How It Works
SurveyJS Form Library renders forms from JSON definitions directly in your web application. It runs in the browser and does not require a SurveyJS backend, so you retain control over form definitions, submitted responses, and data storage.
Your application can:
1. Create or load a SurveyJS JSON form definition.
2. Render it with SurveyJS Form Library.
3. Collect responses in the browser.
4. Send submitted data to your backend.
5. Store it in the database or service of your choice.
Installation
Choose the package for your framework:
React Form Library
bash
npm install survey-react-ui
Get Started with Form Library for React
Angular Form Library
bash
npm install survey-angular-ui
Get Started with Form Library for Angular
Vue.js Form Library
bash
npm install survey-vue3-ui
Get Started with Form Library for Vue.js
Plain JavaScript Form Library
bash
npm install survey-js-ui
Get Started with Form Library for Plain JavaScript
Package Architecture
SurveyJS Form Library separates form logic from rendering. The framework-independent survey-core package provides the form model, validation, conditional logic, calculations, navigation, localization, and other core behavior. Framework-specific packages such as survey-react-ui, survey-angular-ui, and survey-vue3-ui render that model in React, Angular, and Vue 3 applications. Installing a rendering package brings survey-core with it.
Key Features
Dynamic Forms and Surveys
- Multi-step forms, quizzes, scored surveys, calculator forms, and survey pop-ups
- Conditional visibility, branching, calculated values, and expression-based logic
- Input validation, partial submissions, auto-save, and lazy loading
- Dynamic panels, repeating question groups, carry-forward responses, and text piping
- Multiple navigation modes for long and complex forms
Multi-Framework Support
- Dedicated Form Library rendering packages for React, Angular, Vue 3, and plain JavaScript
- TypeScript support
- ClienTop issues
#10584Loss of state on React re-render18 comments · 2025-11-08#2491Svelte component (Feature request)17 comments · 2020-10-26#460Dropdown/Radiogroup/Checkbox - Implement grouping/subsections for choices15 comments · 2017-06-21#7327Reduce side effects & global variable usage13 comments · 2023-11-10#2968is it possible to build Email template question using survey-js library?13 comments · 2021-06-14#2588Animated page transitions12 comments · 2020-12-23#6046Server Side Data Validation with SurveyJs Definition11 comments · 2023-04-18#3201Expression (Read-Only) not executed when page is read-only11 comments · 2021-08-17
Discussions
#10824Validating how many times a question value appears across panels1 comments · 2026-01-20#9697How to Change the expand and collapse icon of matrixdynamic component in surveyjs?1 comments · 2025-04-04#9541Problème1 comments · 2025-03-01#9325Why can't I access ItemValue from a dropdown question which uses choicesFromQuestion prop to derive its items from another tagbox question?1 comments · 2025-01-15#9303What is the correct way to use select2 tagbox in reactjs application to allow user input for choice items?1 comments · 2025-01-13#9280Snyk Security Risk Report3 comments · 2025-01-09#9263Is it possible to evaluate an expression within an ItemValue of a choice?1 comments · 2025-01-06#9243How to add more properties to ItemValue objects of choices and how to access or reference those additional properties into any expression?1 comments · 2024-12-31
Latest release
v3.2.5 v3.2.5 2026-11-11What's Changed Dropdown popup is as narrow as the input when the question title is on the left [creator:8123] by @OlgaLarina in https://github.com/surveyjs/survey-library/pull/12190 Update postcss test script and add postcss-surveyjs dependency; adjus… by @MarchTokenda in https://github.com/surveyjs/survey-library/pull/12213 test(survey-core): scan each file once in the tester isolation test by @andrewtelnov in https://github.com/surveyjs/survey-library/pull/12210 fix(core): report nested errors in getAllErrors of composite and sele… by @andrewtelnov in https://github.com/surveyjs/survey-l