tyjkerr a35d573884 feat: add single use survey links (#742)
* add uniqueResponseId to link survey

* add uniqueResponseId to survey response

* add singUseId to database and link survey

* add singleUseId to api

* add single use option in survey response options

* add single use to getSurvey

* add getResponseBySingleUseId

* add ZSurveySingleUse schema to survey schema

* add logic to check if link with suid has response

* pass singleUseId as props, revert SWR changes

* generation of single-use url in LinkSurveyModal

* add singleUseId to SingleResponseCard

* update SurveyInactive for invalid link

* add suId to ZResponse schema

* fix typo in SurveyInactive

* update ResponseOptionCard

* add suId to response select

* add default message for SurveyLinkUsed

* update logic to render SurveyLinkUsed

* add comment for suId in prisma schema

* fix types

* refresh server component on save survey

* update logic

* fix build errors

* fix prisma schema

* add db migration

* update wording

* add singleUseId to localstorage

* fix survey link used over thank you

* add suid to people responses

* fix preview and copy link on surveys page.

* update text and icon for link survey modal

* check survey not finished before setting question

* update show surveylink used logic

* add zodtype to prisma

* fix logic to render last question answered/stored

* add better comments

* update default message for single use surveys

* add LinkSingleUseSurveyModal

* add guard before getting response with suid

* fix build error

* add default message for link used page

* add key and group imports

* add suId encryption and validation

* make survey url encryption optional

* fix build errors

* move singleUseId to server side in surveyList

* added validation to getResponseBySingleUseId service

* restored env var names

* import FORMBRICKS_ENCRYPTION_KEY from constants

* check if encryption environment variable is set, add length validation for env variable

---------

Co-authored-by: Ty Kerr <tykerr@Tys-MacBook-Pro.local>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
2023-10-03 18:26:13 +02:00
2023-10-03 15:40:14 +05:45
2023-05-31 17:45:23 +02:00

Open Source Experience Management Solution Qualtrics Alternative Logo

Formbricks

The Open Source Survey & Experience Management solution for fast growing companies
Website | Join Discord community

License Join Formbricks Discord Github Stars Hacker News Product Hunt Github Accelerator


Trusted by                       

About Formbricks

formbricks-sneak

Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience. Use micro-surveys to target the right users at the right time without making surveys annoying.

Try it out in the cloud at formbricks.com

💪 Mission: Make customer-centric decisions based on data.

Formbricks helps you apply best practices from data-driven work and experience management to make better business decisions. Ask users as they experience your product - and leverage a significantly higher conversion rate. Gather all insights you can - including partial submissions and build conviction for the next product decision. Better data, better business.

Features

  • 📲 Create in-product surveys with our no code editor with multiple question types
  • 📚 Choose from a variety of best-practice templates
  • 👩🏻 Launch and target your surveys to specific user groups without changing your application code
  • 🔗 Create shareable link surveys
  • 👨‍👩‍👦 Invite your team members to collaborate on your surveys
  • 🔌 Integrate Formbricks with Slack, Posthog, Zapier, n8n and more
  • 🔒 All open source, transparent and self-hostable

Built on Open Source

🚀 Getting started

We've got several options depending on your need to help you quickly get started with Formbricks

☁️ Cloud Version

Formbricks has a hosted cloud offering with a generous free plan to get you up and running as quickly as possible. To get started, please visit formbricks.com

🐳 Self-hosted version

Formbricks is available Open-Source under AGPLv3 license. You can host Formbricks on your own servers using Docker without a subscription.

(In the future we may develop additional features that aren't in the free Open-Source version).

If you opt for self-hosting Formbricks, here are a few options to consider:

Docker

To get started with self-hosting with Docker, take a look at our self-hosting docs.

Community managed One Click Hosting

Railway

You can deploy Formbricks on Railway using the button below.

Deploy on Railway

👨‍💻 Development

Prerequisites

Here is what you need to be able to run Formbricks

  • Node.js (Version: >=18.x)
  • Pnpm
  • Docker - to run PostgreSQL and MailHog

Local Setup

To get started locally, we've got a guide to help you.

Gitpod Setup

  1. Click the button below to open this project in Gitpod.

  2. This will open a fully configured workspace in your browser with all the necessary dependencies already installed.

Open in Gitpod

✍️ Contribution

We are very happy if you are interested in contributing to Formbricks 🤗

Here are a few options:

  • Star this repo
  • Create issues every time you feel something is missing or goes wrong
  • Upvote issues with 👍 reaction so we know what's the demand for particular issue to prioritize it within roadmap

Please check out our contribution guide and our list of open issues for more information.

📆 Contact us

Let's have a chat about your survey needs and get you started.

Book us with Cal.com

⚖️ License

Distributed under the AGPLv3 License. See LICENSE for more information.

🔒 Security

We take security very seriously. If you come across any security vulnerabilities, please disclose them by sending an email to security@formbricks.com. We appreciate your help in making our platform as secure as possible and are committed to working with you to resolve any issues quickly and efficiently. See SECURITY.md for more information.

Description
Open Source Qualtrics Alternative
Readme AGPL-3.0 530 MiB
Latest
2026-04-16 00:50:33 -05:00
Languages
TypeScript 98.2%
Shell 0.9%
CSS 0.3%
JavaScript 0.3%
MDX 0.1%