Pre-requisites
You will need the following
Get a Notion API Key
- Go to the Notion Developer Portal
- Create a New Integration
- Submit the Integration
- Get the Integration Token
- Copy and Store Your API Key ⚠️⚠️⚠️
How to build, deploy and embed the Survey to Notion ?
Build the Survey
- Visit https://surveyjs.io/create-free-survey
- Check the Designer tab, where you can design your survey how you want
- Go to JSON editor and you will see something similar to this (we will use it later):
{
"title": "Test Survey",
"logoPosition": "right",
"pages": [
{
"name": "page1",
"elements": [
{
"type": "text",
"name": "question1",
"title": "Q1"
}
]
},
{
"name": "page2",
"elements": [
{
"type": "text",
"name": "question2",
"title": "Q2"
}
]
}
],
"sendResultOnPageNext": true
}
Create a Notion Database to store the results from the quiz
- Make sure you have or create a Notion Database
- You need to connect the Notion Database to your Integration