Build forms and surveys in Vike with SurveyJS. This quickstart template demonstrates how to add a drag-and-drop form builder to a Vike application, render dynamic forms with server-side rendering support, export surveys to PDF, and visualize survey results with charts and tables using the following SurveyJS components:
Form Library and PDF Generator are server-rendered. Survey Creator and Dashboard mount on the client (
onMounted) because they access browser APIs (navigator/document) during setup.
git clone https://github.com/surveyjs/surveyjs-vike.git
cd surveyjs-vike
npm i
npm run devOpen http://127.0.0.1:3000/ in your web browser.
This template covers most basic use cases. You can find code examples for them in the following files:
- Create a standalone survey
- Add Survey Creator to a page
- Export a survey to a PDF document
- Visualize survey results