Compare commits

..

923 Commits

Author SHA1 Message Date
Anshuman Pandey
53ef8771f3 feat: Make formbricks-js ready for public websites (#1470)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: Johannes <johannes@formbricks.com>
2023-11-12 09:12:58 +00:00
Dhruwang Jariwala
ac8cf987d3 feat: Ttc on welcome card (#1461)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-11-10 17:14:33 +00:00
Harish Gautam
11ede2e517 fix: Onboarding page added aria-lable and keyboard navigation (#1562)
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-11-10 12:19:06 +00:00
dependabot[bot]
aa6d6df178 chore(deps): bump @sentry/nextjs from 7.76.0 to 7.77.0 (#1603)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 11:53:26 +00:00
Matti Nannt
c2675a9d49 fix: infinite loop in onboarding (#1604) 2023-11-10 11:01:43 +00:00
dominikmukrecki
84ce0c267c docs: Add Google OAuth Integration Guide (#1411)
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
2023-11-10 10:23:33 +00:00
Shubham Palriwala
a2df7abf85 fix: opt billing page forcefully out of static generation (#1600) 2023-11-09 10:13:25 +00:00
Shubham Palriwala
7acd2ccabb fix: github action that reports stripe usage (#1599) 2023-11-09 10:12:23 +00:00
Shubham Palriwala
a34606ab03 chore: remove unused method and restructure env var fetching for team roles (#1595)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-11-09 10:06:57 +00:00
Dhruwang Jariwala
dd0f0ead39 refactor: Airtable & GS endpoints to use responses return objects (#1592) 2023-11-09 10:01:49 +00:00
Shubham Palriwala
d6c9ce7c5b fix: handle invalid surveyId from api endpoint (#1589) 2023-11-09 09:59:42 +00:00
Matti Nannt
0b253e6ba5 chore: release formbricks-js 1.1.5 (#1601) 2023-11-09 09:53:34 +00:00
Florrdv
dd0091e52c fix: add types to exports for @formbricks/js (#1597) 2023-11-08 11:14:29 +00:00
Shubham Palriwala
c45248ada8 fix: redirect user if they visit onboarding page without auth (#1596) 2023-11-08 09:30:08 +00:00
Matti Nannt
ca21c9cea7 chore: Improve database performance by adding indexes (#1593) 2023-11-08 06:11:43 +00:00
Shubham Palriwala
10ab71b20f feat: independent troubleshooting guide page (#1591) 2023-11-07 21:30:14 +00:00
Shubham Palriwala
2acd18d8d5 feat: recommended hardware requirements to self host formbricks (#1590) 2023-11-07 21:26:40 +00:00
Shubham Palriwala
27b99d9761 fix: user existence checks in session object (#1587) 2023-11-07 21:26:20 +00:00
Shubham Palriwala
536e610895 fix: update setup checklists with latest js package version (#1588) 2023-11-07 21:24:03 +00:00
Jatin Sandilya
c40fedda90 chore: add revert to oss-friends (#745) 2023-11-06 16:14:01 +00:00
Shubham Palriwala
c74b3034fd fix: pass authOptions to getServerSession in authLayout (#1584) 2023-11-06 16:12:58 +00:00
Shashank
72fb1b3b30 fix: fixed URL example for "Create Survey" API endpoint is wrong #1555 (#1586) 2023-11-06 16:12:25 +00:00
Aditya Deshlahre
5859b51b8b fix(docs): default account info docs changes (#1583) 2023-11-06 14:25:42 +00:00
Matti Nannt
d51e17fe2e chore: Add docker packages to Github Packages on release (#1585) 2023-11-06 12:10:56 +00:00
Anshuman Pandey
fbd3d95034 feat: avatar upload (#1546)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-11-06 11:06:08 +00:00
Dhruwang Jariwala
9d0b6cec76 fix: editor crashing (#1582) 2023-11-06 10:39:28 +00:00
NilanjanPramanik
f2d23d9a37 fix: Add scroll to the setting navbar (#1398)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-11-06 09:54:12 +00:00
RajuGangitla
5ea1588c86 are you sure modal missing fix:#1419 (#1485)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-11-06 09:49:42 +00:00
Dhruwang Jariwala
e0fe7f1af7 fix: github linting issues (#1510) 2023-11-06 09:40:23 +00:00
Dhruwang Jariwala
0c69f8ad43 refactor: added authorization to airtable integration and create a common actions file (#1538) 2023-11-06 09:37:50 +00:00
Dhruwang Jariwala
a3028e5685 docs: add docs for airtable (#1541) 2023-11-06 09:36:38 +00:00
Shubham Palriwala
2314b27443 fix: missing static generation store in revalidation due to pages dir (#1581) 2023-11-06 09:14:45 +00:00
Dhruwang Jariwala
46f42220d6 feat: Pagination for other values in multi choice (#1560)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-11-06 08:57:48 +00:00
Shubham Palriwala
6d6987d2bc feat: $199 pricing model for unlimited plans (#1564) 2023-11-06 08:53:49 +00:00
Shubham Palriwala
2dc03505fc fix: make pricing pages consistent (#1567) 2023-11-06 08:45:11 +00:00
Dhruwang Jariwala
66cfbebe74 fix: openText issue (#1579) 2023-11-06 08:25:12 +00:00
Shubham Palriwala
3a9ca829cc fix: avoid blocking the request if it does not have an associated ip (#1540) 2023-11-06 07:45:32 +00:00
James P
9dc7d542be feat: Add Unkey to OSS Friends (#1574)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-11-05 20:37:26 +00:00
Neil Chauhan
cac02c77a1 feat: FOR-683 Role Switch (#1450)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-11-05 14:26:03 +00:00
Bilal Mirza
a1c27c415b fix: link to Check out the docs is broken (#1570) 2023-11-05 13:47:12 +00:00
Sachin Mittal
f1849dcff8 fix : delete btn is not disabling when clicking #1519 (#1575) 2023-11-05 13:46:22 +00:00
Anshuman Pandey
1ff14e7714 fix: s3 file url cache does not get revalidated (#1577) 2023-11-05 13:19:08 +00:00
Rotimi Best
827fa1027f feat: Guide on how to create a service (#1569) 2023-11-03 12:39:49 +00:00
Matti Nannt
1b37c54152 chore: improve client api error responses (#1563) 2023-11-02 19:39:35 +00:00
Dhruwang Jariwala
6bace2b826 fix: skip logic (#1559) 2023-11-02 13:05:12 +00:00
Johannes
e5775e3724 add month to preseed (#1558) 2023-11-02 10:34:48 +00:00
Johannes
718cbe3db0 fix: fix build on lp (#1554) 2023-11-01 21:36:59 +00:00
Matti Nannt
4f74dd5044 chore: remove limited launch deal from pricing (#1553) 2023-11-01 19:28:14 +00:00
Matti Nannt
85b551b61a fix: formbricks-com build error (#1549) 2023-11-01 16:59:16 +00:00
Matti Nannt
c1e962b1bf fix: team response count calculation (#1548) 2023-11-01 16:17:55 +00:00
Johannes
82e8e6a12f feat: preseed annoucement (#1547) 2023-11-01 13:14:15 +00:00
Bilal Mirza
9ca77be099 fix: Getting page not found error for DOC #1539 (#1545) 2023-11-01 13:09:03 +00:00
Shubham Palriwala
9d423cdd58 feat: formtribe updated scoreboard (#1543) 2023-10-31 15:31:54 +00:00
Matti Nannt
d7c72c8c80 fix: update readme to add link to product hunt (#1542) 2023-10-31 13:31:19 +00:00
Matti Nannt
d8f6e8502d fix: pricing table dark mode (#1537) 2023-10-31 08:22:16 +00:00
Matti Nannt
01268e33ab chore: add special deal to pricing (#1536) 2023-10-31 07:43:45 +00:00
Matti Nannt
5aa857c742 fix: Pricing Table on formbricks-com (#1535) 2023-10-31 07:18:00 +00:00
Anshuman Pandey
49ff9d40b9 fix: fixes surveys cache (#1534)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-31 07:11:45 +00:00
Johannes
793935fc5d chore: update landing page for PH Launch (#1475)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-31 06:48:28 +00:00
Shubham Palriwala
22f579389a fix: overloading slider on exceeding max limits in pricing tier (#1530) 2023-10-30 21:37:02 +00:00
Shubham Palriwala
9971662077 feat: stripe integration (#858)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 20:33:19 +00:00
Adarsh Jha
7f8b7e2a20 chore: Add Table of Contents to README (#1427)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 17:45:20 +00:00
Dhruwang Jariwala
eec986f070 fix: account deletion failing issue (#1509)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 17:16:55 +00:00
ss10
07ce774e5b fix: remove welcome card from email preview (#1495)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 17:16:08 +00:00
Aditya Deshlahre
bd28909b35 fix(bug): default role implemented (#1524) 2023-10-30 16:49:22 +00:00
Dhruwang Jariwala
840e16152e fix: changing description of Code Action (#1522) 2023-10-30 14:19:04 +00:00
Dhruwang Jariwala
2e2c22a1db refactor: Migrate activity service (#1471)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 12:16:20 +00:00
Bilal Mirza
c42d48e242 fix: Error in Docs navigation #1518 (#1521) 2023-10-30 12:13:20 +00:00
Vikas Patil
be018e8255 feat: dynamic title and description (#1459)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-10-30 11:44:05 +00:00
Bilal Mirza
393238e3fe fix: Spelling Errors (#1517) 2023-10-30 11:07:50 +00:00
Abhinai Sai Putta
e4c453c444 fix: added scrollbar whenever overflowed in the settings/profile page (#1498)
Co-authored-by: Abhinai Sai <abhinaisai2002>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-30 10:58:38 +00:00
Rohan Gupta
1d5b83206b fix: long url not getting reset after closing modal (#1502)
Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-10-30 10:46:40 +00:00
Mohit Negi
8d9b676a03 fix: Unexpected Behavior when Toggling Italics in Text Editor and improve clarity of formatting status (#1506)
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-10-30 10:38:19 +00:00
Dhruwang Jariwala
59113ebe59 fix: zod pin validation failing (#1507) 2023-10-30 10:37:05 +00:00
Dhruwang Jariwala
7d0ebd3c54 fix: Error message on Login not shown (#1508) 2023-10-30 10:34:29 +00:00
Matti Nannt
ccfd5ae28b fix: downgrade nextjs to fix error with react email (#1516) 2023-10-30 10:32:14 +00:00
Anshuman Pandey
dcefbc96cd chore: downgrade next version in formbricks-com (#1513) 2023-10-30 08:42:46 +00:00
Piyush Gupta
b9a8e9d12c feat: picture selection question (#1388)
Co-authored-by: Olasunkanmi Balogun <olasunkanmiibalogun@gmail.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-10-30 05:32:49 +00:00
Shubham Palriwala
d3356cb8b7 feat: formtribe leaderboard update as per today (#1505) 2023-10-29 19:43:30 +00:00
Aditya Ghidora
a92189c7aa fix: Added if statement for preventing use of reserved word in question ID (#1435) 2023-10-28 16:50:20 +00:00
Harshit Vashisht
966dd5fcc8 fix: Disabling Welcome Card leads buggy preview (#1320)
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
2023-10-28 16:23:28 +00:00
noobcoder
c68b256713 fix: Enhancing Formbricks Docs: Clear Steps for Configuring Environment. (#1477)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-28 15:32:38 +00:00
Dhruwang Jariwala
cf938bffa7 fix: source tracking (#1486) 2023-10-28 14:30:35 +00:00
Vaibhav
5ae5a92c31 docs: Update README.md (#1487) 2023-10-28 11:18:05 +00:00
Matti Nannt
c47face662 chore: remove experimental server actions flag (#1484) 2023-10-27 21:12:17 +00:00
Matti Nannt
2361cf4b5a chore: upgrade next.js (#1483) 2023-10-27 20:52:58 +00:00
Matti Nannt
3720c7690d fix: Add ENCRYPTION_KEY to Dockerfile args (#1482) 2023-10-27 20:08:48 +00:00
Matti Nannt
3de073f93a fix: summary loading infinitely (#1481) 2023-10-27 18:27:52 +00:00
Matti Nannt
841b96c5bb chore: improve error logging in responseNote service (#1480) 2023-10-27 16:49:13 +00:00
Rotimi Best
3bb6ce3250 chore: caching for environment, integration, invite, membership, product & profile (#1324)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-27 13:31:15 +00:00
Johannes
82c986baa4 update side quests (#1473) 2023-10-27 09:10:22 +00:00
Shreya Ranpariya
d72283df55 doc: update Firecamp and Spark.net in ascending order in oss-friends page (#1425)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-27 08:55:04 +00:00
Sandy-1711
fcfea44d7f fix: [BUG] In Dark Mode Navbar is not Properly Visible #1463 (#1467)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-27 08:42:28 +00:00
Rotimi Best
5f71b91704 chore: session, survey, tagOnResponse, webhook, apiKey caching (#1363) 2023-10-27 07:48:26 +00:00
Rotimi Best
94e872025d chore: caching responseNote and attributeClass service (#1307) 2023-10-27 07:45:39 +00:00
Matti Nannt
7ad7a255b6 fix: docker release github action (#1468) 2023-10-26 13:00:13 +00:00
Dhruwang Jariwala
892887c786 fix: build errors in formbricks-com (#1465) 2023-10-26 07:40:50 +00:00
Matti Nannt
cb130579bb fix: survey url incorrect in single use share dialoge (#1464) 2023-10-25 20:35:52 +00:00
Shubham Palriwala
e9f4edadbd feat: let's v1.2 (#1332)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-25 19:22:16 +00:00
Anshuman Pandey
21fe7080ef fix: uploads (#1449)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-25 14:50:48 +00:00
Dhruwang Jariwala
e21f82e1fc fix: email verification before answering survey (#1460)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-25 14:06:03 +00:00
Shubham Palriwala
9994fef695 feat: update leaderboard as per today (#1457) 2023-10-25 14:04:54 +00:00
Johannes
e0dce53031 lp: update privacy policy (#1462) 2023-10-25 13:46:55 +00:00
Shubham Palriwala
fb6dbda64d chore: Move Billing API to App directory & Deprecate unused /pages/api/[environment|team] endpoints (#1423) 2023-10-25 13:35:48 +00:00
Matti Nannt
91b8f9b7f0 chore: increase MTU limit in Formbricks Cloud (#1456) 2023-10-24 21:02:02 +00:00
Matti Nannt
24d0fec16f feat: formbricks-js 1.1.4 release (#1455)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-24 20:20:54 +00:00
Matti Nannt
24f5796c13 fix: triggered survey not behaving correctly after userId change (#1453) 2023-10-24 19:58:44 +00:00
Shubham Palriwala
0115c58364 feat: use formbricks/api package internally in /js & /lib (#955)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-24 13:52:38 +00:00
Anshuman Pandey
7dcadc660f fix: fixes client storage api route method (#1451) 2023-10-24 13:41:04 +00:00
Matti Nannt
2b4879bb33 chore: improve error logging in client endpoints (#1445) 2023-10-24 11:38:41 +00:00
Matti Nannt
11a68a904e chore: Remove response limit in preparation for new pricing (#1443) 2023-10-24 10:58:23 +00:00
Johannes
fde2eeb6b4 feat: Add Animated Background Files (#1441) 2023-10-24 10:38:39 +00:00
Matti Nannt
2193758594 chore: include new features in pricing table (#1438) 2023-10-24 08:51:40 +00:00
Dhruwang Jariwala
fa9ddf5de2 refactor: removed console for Air table fix (#1436)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-24 07:19:08 +00:00
Dhruwang Jariwala
89ccee8cb6 refactor: Console tokenRes (#1434) 2023-10-23 17:19:27 +00:00
Matti Nannt
86fd3c64c8 fix: hide email input in survey share modal when share code is displayed (#1432) 2023-10-23 14:35:59 +00:00
Shubham Palriwala
4fcce98911 feat: lazy loading and endless scrolling for responses page (#1421)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-23 14:14:30 +00:00
Aditya Deshlahre
04aa2a6e9f fix: Validate Product Names (#1362)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-23 14:12:16 +00:00
Shubham Palriwala
b7d9999f4b feat: client side pagination in open text questions in responses summary (#1422)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-23 13:32:10 +00:00
Matti Nannt
7bf0290d1c chore: refactor sync endpoint to use existing services (#1417) 2023-10-23 12:39:12 +00:00
Shyam Raghuwanshi
5a39c1751e fix: Button Enablement Precedes Component Rendering on Publish/Save Click (#1400)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-23 12:36:54 +00:00
Dhruwang Jariwala
6911151e98 fix: Air table callback (#1418) 2023-10-23 12:26:34 +00:00
Shubham Palriwala
acb8dd0d0b fix: rate limit is now enabled on node prod envs only (#1424) 2023-10-23 12:26:05 +00:00
Naresh
0a76bad43e fix: validate cssSelector value (#1420) 2023-10-23 12:04:01 +00:00
Priyanshu Prajapati
1a20920d5d fix: CODE_OF_CONDUCT.md (#1390)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-23 11:32:36 +00:00
Armaan
458a35ef15 docs: updated CONTRIBUTING.md (#1394)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-23 11:07:39 +00:00
Anshuman Pandey
c2df127a3d fix: file uploads api changes (#1319)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-23 10:38:01 +00:00
Olaleye Blessing
2e53d3d039 fix: Display appropriate error message when uploading image (#1334)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
Co-authored-by: ShubhamPalriwala <spalriwalau@gmail.com>
2023-10-23 06:34:43 +00:00
Mohit Negi
1206b969e3 fix: Refactor theme switcher from dropdown to toggle (#1360)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-23 06:07:13 +00:00
Abhinav Arya
2ac7f9ec5c fix: In Review Prompt Lower and Upper labels are not showing in dummyUi/Preview (#1402) 2023-10-23 05:50:31 +00:00
Anjy Gupta
502610fb3c feat: Added Dynamic Link Previews (#1093)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-23 04:52:46 +00:00
Shubham Palriwala
bf9b95e288 feat: update leaderboard as per today (#1408) 2023-10-22 17:46:07 +00:00
Matti Nannt
0cc8cdf52a chore: remove swr from dependencies (#1407) 2023-10-22 16:55:59 +00:00
Suman Kisku
27c1b0d3f2 style: #1343 Added Jost Web fonts (#1346)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-22 15:11:06 +00:00
Hemant
ceb384a6f4 fix: Share modal not opening (#1387)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: ShubhamPalriwala <spalriwalau@gmail.com>
2023-10-22 14:01:18 +00:00
Shyam Raghuwanshi
6ea2c7b354 fix: Resolve issue with "Back to Home" button on 404 page (#1381)
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-10-22 13:39:43 +00:00
Shyam Raghuwanshi
c86a06ddbb fix: adding loader for Delete and Save buttons (#1344)
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-10-22 09:01:18 +00:00
Piyush Gupta
a8b7c9c127 fix: prefiling in welcome card surveys (#1352)
Co-authored-by: Olasunkanmi Balogun <olasunkanmiibalogun@gmail.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-22 08:11:56 +00:00
Abhinav Arya
af605324b3 fix: Create dark mode version of Code Block on landing page (#1358)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-22 08:06:59 +00:00
Shubham Palriwala
c131a04be6 fix: handle display with no response data in per question drop off (#1374) 2023-10-21 13:30:33 +00:00
ss10
befb2c6a42 fix: Page break on Convert to Multi Select (#1383)
Co-authored-by: shruti satsangi <shrutisatsangi@shrutis-MacBook-Air.local>
2023-10-21 13:29:12 +00:00
Shubham Palriwala
bd90da3665 feat: Release @formbricks/js@1.1.3 (#1379)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-21 09:31:49 +00:00
Shubham Palriwala
d11728312e feat: release patch release formbricks/js with changesets (#1376) 2023-10-21 09:14:15 +00:00
Shubham Palriwala
79ad64968c fix: make metadata internal fields optionality uniform in response object (#1373) 2023-10-21 08:47:27 +00:00
RajuGangitla
d3b78e527b fix: Welcome card not being active by default in every template #1336 (#1372) 2023-10-21 06:29:33 +00:00
Aashish Panthi
9074ce4496 fix: add twitter title, desc and keyword meta tags (#1359) 2023-10-21 06:25:08 +00:00
Rohan Gupta
f37c6567fd fix: Data is not being sent webhook api on trigger (#1285) (#1316)
Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-21 05:27:38 +00:00
Neil Chauhan
c979e0ed76 chore: update turbo (#1345)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-20 18:47:12 +00:00
Matti Nannt
587ea65c88 fix: survey with empty pin cannot be created (#1361) 2023-10-20 17:17:39 +00:00
Vikas Patil
d904f223fc fix: #1353 validating pin before publishing (#1356) 2023-10-20 15:52:31 +00:00
Piyush Gupta
28265a7dcf feat: added dropoff visibility (#907)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-20 13:18:16 +00:00
Johannes
37e83cbb81 chore: add cla to PR template & /cla (#1351) 2023-10-20 12:52:32 +00:00
Shubham Palriwala
a7072580d3 fix: prevent exit intent and scroll intent in js package to make api call (#1350) 2023-10-20 12:27:45 +00:00
Dhruwang Jariwala
f70cda6e11 refactor: removes old types (#1288)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-20 12:03:16 +00:00
Dhruwang Jariwala
7fd89daca9 refactor: added console for error (#1340) 2023-10-20 10:48:20 +00:00
Ronit Panda
c2c27a7527 feat: adds image adding option to all questions (#1305)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-20 10:48:01 +00:00
Jonas Höbenreich
b645418b3e feat: add SSO login via Azure AD (second try) (#1188)
Co-authored-by: jonas.hoebenreich <jonas.hoebenreich@flixbus.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-20 08:43:23 +00:00
Matti Nannt
569e9a6ee2 fix: use strings for pin datatype to allow more variations (#1335) 2023-10-20 08:11:39 +00:00
Shyam Raghuwanshi
a97f745406 fix: the background does not load up on the entire page! (#1331) 2023-10-20 07:18:40 +00:00
Shyam Raghuwanshi
ba3b3ef3d2 fix: Copy button disabled while it's value is null (#1328)
Co-authored-by: ShubhamPalriwala <spalriwalau@gmail.com>
2023-10-20 07:16:42 +00:00
Bilal Mirza
8677025ba4 fix: Logo is not visible in edge search #1265 (#1330) 2023-10-20 07:16:26 +00:00
Piyush Gupta
42c3e98382 feat: Add source to metadata submission (#1323)
Co-authored-by: Olasunkanmi Balogun <olasunkanmiibalogun@gmail.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-19 21:44:55 +00:00
Nafees Nazik
18d1a23cfd feat: add airtable integration (#926)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-19 18:54:10 +00:00
Matti Nannt
f7f271b4b3 fix: add hotfix for not storing 50% scroll and exit intent in db (#1326) 2023-10-19 18:54:04 +00:00
Aditya Deshlahre
43e80d8185 fix(bug): fixed1296 href link switch (#1317)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-19 18:19:44 +00:00
Samiksha Mishra
83b11dea41 docs: Added a 'Back to Top" button (#1318)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-19 18:17:21 +00:00
Bilal Mirza
cf7175511a fix Add action UI issue on mobile screen #1254 (#1306)
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-19 18:02:45 +00:00
Rotimi Best
64d769ae25 chore: caching activity, display and person service (#1272)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-19 15:38:32 +00:00
Surav Shrestha
32002321ad docs: fix typo in apps/formbricks-com/app/docs/actions/code/page.mdx (#1321) 2023-10-19 14:32:59 +00:00
Matti Nannt
aaecf5ba44 chore: add folder structure for v2 components (#1314) 2023-10-19 10:21:49 +00:00
Shubham Palriwala
c0ea8dd3f6 fix: formtribe leaderboard name correction (#1313) 2023-10-19 10:04:56 +00:00
Shyam Raghuwanshi
e69b2f4133 fix: toggle button text when switching between light and dark mode (#1309) 2023-10-19 09:57:57 +00:00
Anshuman Pandey
14c354ea36 fix: use ENCRYPTION_KEY in single use surveys (#1094)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-19 08:17:57 +00:00
Johannes
7ea11133d8 lp: fix demo page header (#1312) 2023-10-19 08:10:54 +00:00
Shubham Palriwala
87663819ff feat: update formtribe leaderboard as per today (#1310) 2023-10-19 08:08:00 +00:00
Julian Li
867879a680 chore: (docs) add GitHub trending badge in readme file (#1279) 2023-10-19 06:30:23 +00:00
Matti Nannt
12adecd297 fix: survey list loading error for products with a lot of actions (#1302) 2023-10-18 20:26:53 +00:00
Matti Nannt
bdf3298a90 chore: improve error logging in services (#1300) 2023-10-18 19:17:53 +00:00
Abhinav Arya
3a36f886da fix: Survey : Welcome Card Button is buggy (#1299) 2023-10-18 18:38:47 +00:00
Shreya Ranpariya
6872f202ed feat: added Firecamp to oss-friends the list (#1291) 2023-10-18 18:34:14 +00:00
Matti Nannt
041ac5146b chore: improve error component and display message to user (#1298) 2023-10-18 18:19:08 +00:00
Rotimi Best
1798e64331 chore: caching for action and actionClass services (#1264) 2023-10-18 14:56:56 +00:00
Aditya Deshlahre
332631907a fix(bug): removed user from Team, but user can select team (#1111)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-18 14:55:03 +00:00
Shubham Palriwala
9eae65db44 fix: survey editor minor css bug fixes (#1287) 2023-10-18 14:52:21 +00:00
Shubham Palriwala
8074d324d4 feat: rate limiting of auth endpoints (#1227) 2023-10-18 14:51:28 +00:00
Shubham Palriwala
3d5fdb39c8 feat: authorization in responseNote actions & cleanup of unused actions (#1062) 2023-10-18 12:21:49 +00:00
Ratish jain
484040cce9 fix: concierge cards (#1263)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-18 09:50:44 +00:00
Abhinav Arya
eb88858d6f fix: fixing navbar position while scrolling the page. (#1266)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-18 09:36:08 +00:00
Vineet J Karni
5c9d8af3f0 fix: Corrected landing page styles (#1278)
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-18 09:23:00 +00:00
Matti Nannt
85808bc0bf chore: Remove SurveyWithAnalytics model to simplify survey handling (#1273) 2023-10-17 18:31:38 +00:00
Rotimi Best
960f11b296 chore: caching response service (#1108)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-17 17:04:50 +00:00
Matti Nannt
ae5a63811b fix: survey trigger cannot be deleted (#1271) 2023-10-17 16:23:10 +00:00
Ronit Panda
5a7f290e31 fix: pre-commit-hook (#1203)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-17 15:15:35 +00:00
Neil Chauhan
3cf796b040 chore: FOR-1430 Component relocation (#1261)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-17 14:33:45 +00:00
NilanjanPramanik
9f57be47ba fix: Alignment of step-by-step and try button for mobile (#1241)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-17 14:04:23 +00:00
Yatharth Verma
abd1f9822d fix: names spellings in survey pin related functions or variables (#1232)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-17 13:30:44 +00:00
Ali Yar Khan
7a7acd5ffa fix: icons not aligned center on firefox (#1251) 2023-10-17 13:18:32 +00:00
Digvijay Gupta
eb64b5f202 fix: update product name, waiting time and delete product operation (#1260)
Co-authored-by: Digvijay Gupta <digvijaygupta@Digvijays-MacBook-Pro.local>
2023-10-17 12:24:17 +00:00
Anshuman Pandey
c36fe72971 fix: changes env names (#1259) 2023-10-17 11:36:11 +00:00
Nafees Nazik
113a5a5653 fix: type errors in js sdk (#1115) 2023-10-17 10:19:12 +00:00
Rotimi Best
75dc3c6d44 fix: cast .length result to boolean (#1253) 2023-10-17 10:16:46 +00:00
Anshuman Pandey
20e2df6729 fix: encodes url correctly (#1252)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-17 10:15:51 +00:00
Matti Nannt
46be7529fd chore: simplify packages dependencies (#1243) 2023-10-17 09:56:01 +00:00
Naitik Kapadia
2c1abf8782 feat: Add welcome card (#1073)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-17 09:27:57 +00:00
Shivam Bhatnagar
06b9d4f5f9 fix(web): Fix user dropdown keyboard accessibility (#1240) 2023-10-17 09:05:06 +00:00
Shubham Palriwala
fadc5f64b1 chore: remove build from source deployment guide (#1207)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-17 08:44:44 +00:00
Naresh
534e14740e fix: duplicate survey not revalidating the cache key PAIR: Bilal Mirza (#1229)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-17 08:36:59 +00:00
Shubham Palriwala
b3171e222f fix: docker compose volume only takes absolute paths (#1206) 2023-10-17 08:35:34 +00:00
Vedant Borkar
0db2f09b01 fix: Typo on main page is fixed (#1250) 2023-10-17 07:32:45 +00:00
Shubham Palriwala
d078a5a357 feat: update latest leaderboard points (#1247)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-17 07:26:15 +00:00
Mohit Negi
921553708e fix: Unifying discord logo (#1236) 2023-10-17 07:22:36 +00:00
Vinayak Mali
a3ff325557 chore: add hyperlink to LICENSE reference (#1246) 2023-10-17 07:11:53 +00:00
madlia
e8232d85dc chore: add hyperlink SECURITY reference (#1245) 2023-10-17 07:11:00 +00:00
Matti Nannt
12b7b9e849 chore: Update npm dependencies (#1242) 2023-10-16 19:20:53 +00:00
Matti Nannt
71ff256a55 fix: have same non-module workflow for packages (#1230) 2023-10-16 17:36:58 +00:00
Matti Nannt
8768b641b3 fix: remove prisma types import in runtime (#1228) 2023-10-16 13:56:20 +00:00
Rotimi Best
b38be19293 docs: code quality & styling section (#1226) 2023-10-16 13:10:51 +00:00
Johannes
4b3547c96e lp: Update oss friends page (#1225) 2023-10-16 12:44:41 +00:00
Matti Nannt
f2d4cf4087 fix: formbricks-surveys not compiling correctly leads to formbricks-js throwing error in action creation (#1223) 2023-10-16 12:44:06 +00:00
Digvijay Gupta
029e97468b fix: attribute-settings-tab-button-link (#1221)
Co-authored-by: Digvijay Gupta <digvijaygupta@Digvijays-MacBook-Pro.local>
2023-10-16 12:25:53 +00:00
Naresh
98ad73cee6 fix: fix invalid state initialisation (#1220)
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-16 12:23:41 +00:00
Johannes
5ac5e5162f fix: replace ' with backticks (#1214) 2023-10-16 11:16:15 +00:00
Piyush Garg
5e5723d091 feat: Added Pin Protection to forms (#1142)
Signed-off-by: aryabyte21 <arya2001bhosale@gmail.com>
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
Co-authored-by: Vaibhav Bhardwaj <43564765+impolska742@users.noreply.github.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Nikolay Bonev <DonKoko@users.noreply.github.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Abhinav Arya <95561280+itzabhinavarya@users.noreply.github.com>
Co-authored-by: Shaikh Adnan <117739824+Sha1kh4@users.noreply.github.com>
Co-authored-by: Akash Sharan <129506339+asharan2511@users.noreply.github.com>
Co-authored-by: Arya Bhosale <60646682+aryabyte21@users.noreply.github.com>
Co-authored-by: Ratish jain <43003421+ratishjain12@users.noreply.github.com>
Co-authored-by: Sundaram Kumar Jha <jhasundaram@outlook.com>
Co-authored-by: Soham Tembhurne <82658685+sohamtembhurne@users.noreply.github.com>
Co-authored-by: Digvijay Gupta <65729055+3xp10it3r@users.noreply.github.com>
Co-authored-by: Digvijay Gupta <digvijaygupta@Digvijays-MacBook-Pro.local>
Co-authored-by: Ronit Panda <72537293+rtpa25@users.noreply.github.com>
Co-authored-by: Bilal Mirza <84387676+bilalmirza74@users.noreply.github.com>
2023-10-16 11:12:32 +00:00
Bilal Mirza
accd977ddc fix: Overflow of body across leaderboard on mobile screen #1120 & Doc's navbar was not responsive #1129 (#1123)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-15 17:27:52 +00:00
Ronit Panda
a71ad7c15e feat: adds hidden field functionality to surveys (#1144)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-15 17:24:12 +00:00
Digvijay Gupta
ac12e37786 fix: Fixed grammatical error in feedback box -> why it is useful section (#1166)
Co-authored-by: Digvijay Gupta <digvijaygupta@Digvijays-MacBook-Pro.local>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-15 16:04:39 +00:00
Soham Tembhurne
dd76830265 fix: Link for "Pricing" not working fixed (#1165)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-15 15:57:36 +00:00
Arya Bhosale
c64cc13cfb fix: minor ui fixes (#1138)
Signed-off-by: aryabyte21 <arya2001bhosale@gmail.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-15 15:38:29 +00:00
Shaikh Adnan
8f7fe0cdfe style: Fixed a minor grammatical mistake. (#1164) 2023-10-15 15:30:10 +00:00
Sundaram Kumar Jha
9e68dfd552 fix: Pricing Link in mobile menu on LP , Update Header.tsx (#1163) 2023-10-15 15:29:11 +00:00
Ratish jain
ff677ca9a5 fix: Concierge btn text opacity fixed and made it look proper (#1162) 2023-10-15 15:26:29 +00:00
Matti Nannt
c162037446 fix: build issues in environment service on some systems (#1160) 2023-10-14 17:51:32 +00:00
Arya Bhosale
52837417bf fix: Automate copyright year (#1136)
Signed-off-by: aryabyte21 <arya2001bhosale@gmail.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-14 16:51:05 +00:00
Matti Nannt
f2b57a3589 chore: improve logging in survey service (#1156) 2023-10-14 16:38:49 +00:00
Akash Sharan
9dfd99e916 fix/Typo-main-page (#1146)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-14 16:18:55 +00:00
Shaikh Adnan
a8e103f63b fix: Added DISCORD to the Footer.tsx (#1154)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-14 15:59:21 +00:00
Abhinav Arya
6f5e05e05d fix: twitter-icon-in-docs-footer-section (#1134)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-14 15:52:29 +00:00
Nikolay Bonev
6a5260f317 chore: Add shelf.nu to oss fields api endpoint (#1110)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-10-14 15:48:40 +00:00
Vaibhav Bhardwaj
0cadc279d5 fix: added scroll to top button (#1153)
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-14 15:46:48 +00:00
Matti Nannt
f9a254e295 fix: conflicting typescript and dts from surveys package producing error (#1143) 2023-10-14 09:33:21 +00:00
Matti Nannt
d06a2a6482 fix: dependency reference issues in monorepo (#1141) 2023-10-14 08:39:16 +00:00
Anjy Gupta
d54283d733 feat: Storybook integration for UI components (#987)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-13 21:29:12 +00:00
Dhruwang Jariwala
1b19973da9 refactor: Google sheet integration (#1128)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-13 20:05:40 +00:00
Rotimi Best
08c7581832 chore: move group components in app folder (#1133) 2023-10-13 16:43:27 +00:00
Matti Nannt
bd287b4f51 fix: formbricks-js not starting in a browser (#1131) 2023-10-13 15:31:37 +00:00
Matti Nannt
e1eba78cf1 chore: Version Packages (#1126)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-13 13:02:48 +00:00
dependabot[bot]
417ee07a0b chore(deps): bump webpack from 5.75.0 to 5.88.2 (#1121)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 12:29:57 +00:00
Matti Nannt
e46b058842 chore: Prepare release of formbricks-js 1.1.0 (#1124) 2023-10-13 12:19:16 +00:00
Matti Nannt
7078101de9 feat: move formbricks-js to vite bundler (#883)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-10-13 10:28:25 +00:00
Johannes
58a6c1be41 lp: update leaderboard Friday 13th (#1116) 2023-10-12 20:50:44 +00:00
Bilal Mirza
3206794055 fix: Buttons Margin and code snippets issue across Docs (#1107) 2023-10-12 07:56:58 +00:00
Shivam Bhatnagar
8a94f9437e fix(formbricks-com): fix horizontal scrollbar in small viewports (#1100) 2023-10-12 06:53:14 +00:00
KRISH SONI
bb35b8d79f chore: add nodejs URL in readme (#1102) 2023-10-12 06:31:30 +00:00
Rohan Gupta
b9d6134d22 fix: survey baseurl fix and addition of SHORT_SURVEY_BASE_URL in .env.example file (#1046)
Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
2023-10-12 06:15:52 +00:00
Matti Nannt
8c9a9d670b fix: readme formtribe link (#1099) 2023-10-11 17:06:33 +00:00
Matti Nannt
61aaf301c1 fix: web-app surveys not triggered with modified api endpoint (#1097) 2023-10-11 16:48:54 +00:00
Rotimi Best
2f8aa9b2ae fix: format survey date fields back to Date type (#1096) 2023-10-11 15:25:09 +00:00
Dhruwang Jariwala
e2a6631b64 refactor: Move all @formbricks/ui components to the new folder structure (#1057)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-11 15:17:13 +00:00
Dhruwang Jariwala
7ff847c607 fix: scrollbar issue (#1090) 2023-10-11 11:52:13 +00:00
Johannes
501ce8cf78 lp: blog article community developed feature (#1091) 2023-10-11 11:14:11 +00:00
Anjy Gupta
068a440585 fix: add toast and error handler for multiple team/product creation with existing team/product name (#996)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-11 09:45:51 +00:00
Anush Deokar
e79a75cf6a fix: X and optional text overlap (#1077)
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
2023-10-11 09:35:23 +00:00
Shubham Palriwala
820680d7e7 feat: add docs for setting ENCRYPTION_KEY in .env in contributing guide (#1088)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-11 09:24:28 +00:00
Piyush Gupta
311df18315 feat: brand color overwrite (#1035) 2023-10-11 08:46:34 +00:00
Dhruwang Jariwala
e7d95f9d75 fix: multiChoice undefined value check (#1087) 2023-10-11 08:45:33 +00:00
Anjy Gupta
b2d03b7284 fix: added script to setup encryption key in gitpod script (#1080) 2023-10-11 07:00:28 +00:00
Aditya Deshlahre
0d3b948a8b fix: Name can updated without any characters/value (#1020)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-11 06:52:00 +00:00
Deepanshu
04d8475df2 add FULL_STOP to Readme File (#1075) 2023-10-11 06:26:14 +00:00
Olasunkanmi Balogun
7d611d3ddf fix: statusText mismatch in webhook integrations (#1068)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-11 06:21:49 +00:00
Abhinav Arya
ad15af59da fix: image and page responsiveness in docs section (#1078)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2023-10-11 06:08:23 +00:00
Rotimi Best
9063c8286c chore: refactor services with Formbricks best practices (#988)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-10 13:54:23 +00:00
Matti Nannt
cff23f497c fix: responses not visible when sdk not connected (#1074) 2023-10-10 12:11:19 +00:00
Matti Nannt
cb6c1aade6 fix: getAttributeClassByName cache returns wrong entries (#1072) 2023-10-10 11:52:47 +00:00
Anshuman Pandey
66408fdccc feat: 2FA (#798)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-10 11:29:11 +00:00
Matti Nannt
459eb5525e chore: add ENCRYPTION_KEY to github actions (#1069) 2023-10-10 11:18:40 +00:00
Shubham Palriwala
b52adf0122 feat: authorization in attributeClassAction (#1056)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-10 10:51:00 +00:00
Prasoon Mahawar
6fb61f1bfd fix: Exit Intent now works on FF, Safari, Arc (#1059) 2023-10-10 16:02:41 +05:30
Shubham Palriwala
85fe1feec6 feat: add authorization in product update actions (#1060)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-10 12:08:26 +02:00
Matti Nannt
57390faef7 chore: update github build action (#1065) 2023-10-10 11:56:46 +02:00
Geri Máté
7210583bb5 chore: add dyrector.io to OSS friends (#1040) 2023-10-10 15:19:45 +05:30
Shubham Palriwala
767de5d011 feat: authorization in notificationUpdateAction (#1058) 2023-10-10 15:15:01 +05:30
Ikko Eltociear Ashimine
545945cd04 fix: typo in gdpr-guide.mdx (#1043) 2023-10-10 14:57:50 +05:30
Shubham Palriwala
395ff50ac6 feat: authorization in deletePerson action (#1063) 2023-10-10 14:32:56 +05:30
Shubham Palriwala
32449e6f69 feat: introduce new security policy (#1033) 2023-10-10 14:03:34 +05:30
Johannes
d7ffe17312 chore: Add FormTribe Hackathon to README (#1030) 2023-10-10 13:03:04 +05:30
Rohit Dadgal
c2c221b8fa chore: add punctuations in README (#1024) 2023-10-10 12:42:07 +05:30
Shubham Palriwala
a4909482ab fix: make pr.yml mandatory on all PRs (#1061) 2023-10-10 12:27:03 +05:30
Rohan Gupta
4ea7ac0a81 fix: Multi select Other option selected automatically when coming back & take final value onSubmit of other field (#1004)
Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
2023-10-10 10:29:36 +05:30
Dhruwang Jariwala
6a280913c3 refactor: Unified single response card and improved UX (#750)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Dhruwang Jariwala <dhruwang@Dhruwangs-MacBook-Pro.local>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-09 23:22:09 +02:00
Matti Nannt
d84e06b909 fix: formbricks connection status display (#1041) 2023-10-09 17:46:18 +02:00
Johannes
0b90718e9f lp: add PH notifier to LP (#1034)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-09 17:11:06 +02:00
Shubham Palriwala
52ea908709 feat: add authorization on product update action during onboarding (#1009)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-09 16:31:19 +02:00
Rohan Gupta
d05122d2fe feat: auto prefilled prev ID when Question ID is left empty (#1038)
Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
2023-10-09 15:48:56 +02:00
Shubham Palriwala
c3e50441cd feat: add authorization on google integrations actions (#1031)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-09 14:51:02 +02:00
Matti Nannt
633704d96e fix: add cors to display update endpoint (#1036) 2023-10-09 14:12:08 +02:00
Aditya Deshlahre
631a50b733 fix: new team not listed in teams list in navbar (#1010)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-09 13:09:44 +02:00
Shubham Palriwala
f9fb2c6a99 fix: build error due to survey status becoming optional (#1026)
* fix: build error due to survey status becoming optional

* made refactors

* fix: use universal ID over newly created ID

* remove build step from github actions workflows

---------

Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2023-10-09 12:44:01 +02:00
Anshuman Pandey
a08a6e4b41 fix: file uploads bug (#1027)
* fix: fixes file upload bug

* fix: updates docker compose
2023-10-09 08:03:09 +02:00
Ratish jain
7ba85e0d2b fix: TryNow CTA button UX (#1013)
* buttons responsiveness fixed

* fix: try now button ui
2023-10-09 10:06:14 +05:30
Abhinav Arya
e78e5a0289 fix: Responsiveness for the code table (#1018)
* fix Responsiveness for the code table

* fix Removing extra line
2023-10-09 10:00:29 +05:30
Johannes
c432e323ce fix: Smoothen full screen preview animation
fix: Smoothen full screen preview animation
2023-10-09 00:01:13 +05:30
Johannes
9bab070778 Merge branch 'main' into smooth-preview-animation 2023-10-08 23:59:10 +05:30
Johannes
fab187d83d chore: Redesign metadata
chore: Redesign metadata
2023-10-08 23:57:00 +05:30
Dhruwang
e3a18632db fixed shrink animation 2023-10-08 23:49:57 +05:30
Matthias Nannt
7d52ed19c0 combine migrations 2023-10-08 17:55:51 +02:00
Matti Nannt
cf99218544 Merge branch 'main' into redesign-metadata 2023-10-08 17:45:36 +02:00
Matti Nannt
524b73787a fix: optimize Github action PR check pipeline (#1019)
* fix: remove failing bundle analytics action

* rename building action

* reorder actions

* update naming of actions
2023-10-08 16:58:27 +02:00
Dhruwang
ea3f2fd7cd merged main 2023-10-08 19:40:17 +05:30
Dhruwang
4b9f21fbd0 Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-08 19:38:02 +05:30
Dhruwang
9614208fb9 made status optional and edited display update functionality 2023-10-08 19:36:42 +05:30
Johannes
89f0c0410e lp: update leader board 081023
lp: update leader board 081023
2023-10-08 19:18:30 +05:30
Johannes
cc17d9d560 update leaderboard 2023-10-08 19:15:27 +05:30
Johannes
5fc7643d39 fix: Required Condition Update for MultiSelectQuestion.
fix: Required Condition Update for MultiSelectQuestion.
2023-10-08 17:11:26 +05:30
Johannes
c923d91264 fix: Card on Landing Page overlapping issue #1001
fix: Card on Landing Page overlapping issue #1001
2023-10-08 16:41:12 +05:30
Johannes
35e3cdcd0d actually fix it ;) 2023-10-08 16:39:23 +05:30
Johannes
6ccbd559fb Reset env in demo app 2023-10-08 16:31:27 +05:30
Johannes
9b26ce5f38 Merge branch 'main' of github.com:formbricks/formbricks into itzabhinavarya/main 2023-10-08 16:29:57 +05:30
Dhruwang
93150b88b7 Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-08 16:28:47 +05:30
Dhruwang
4c3a17cdcc made expansion animation smoother 2023-10-08 16:24:39 +05:30
Naitik
b66c37cd26 Required Validator Update 2023-10-08 16:03:42 +05:30
Abhinav Arya
f9457b04f6 Fix overlapping card content on the website using tailwind based approach 2023-10-08 10:18:00 +00:00
Abhinav Arya
eca90dfd9a Fix overlapping card content on the website using tailwind based approach 2023-10-08 09:54:32 +00:00
Johannes
59acb761e2 feat: Validation for Number, URL, Email and Phone Number in Open Text Question
feat: Validation for Number, URL, Email and Phone Number in Open Text Question
2023-10-08 15:02:38 +05:30
Dhruwang
611fa814d4 Merge branch 'main' of https://github.com/Dhruwang/formbricks into KapadiaNaitik/main 2023-10-08 14:56:44 +05:30
Johannes
f181950cc0 Fix: Making navigation bar of LP responsive
Fix: Making navigation bar of LP responsive
2023-10-08 14:54:42 +05:30
Matthias Nannt
0dbf033f01 remove commented code 2023-10-08 11:07:07 +02:00
Johannes
ac4790c38a fix: form preview rerender on survey name change
fix: form preview rerender on survey name change
2023-10-08 14:02:48 +05:30
Johannes
8cfcf28a14 feat: add keyboard usability to end user survey experience
feat: add keyboard usability to end user survey experience
2023-10-08 13:37:02 +05:30
Johannes
53e3a80d6f fix unrelated React error 2023-10-08 13:35:40 +05:30
Dhruwang
c37d924c85 merged latest changes and fixed preview reredering issue 2023-10-08 13:35:29 +05:30
Johannes
07a0d669f4 Fix: Build error in full screen preview PR
Fix: Build error in full screen preview PR
2023-10-08 13:20:48 +05:30
Johannes
5a8bcd10e6 fix build error 2023-10-08 13:19:23 +05:30
Johannes
7c84f5807c feat: Add full screen preview feature to Survey Editor
feat: Add full screen preview feature to Survey Editor
2023-10-08 13:01:42 +05:30
Abhinav Arya
fbc16b3a72 Fix/Card overlapping issue #1001 2023-10-08 07:07:42 +00:00
Ayush
3af6498891 fix: rerender on name change 2023-10-08 08:39:37 +05:30
Yash
f6b4bbeeac fix#997 making navigation bar responsive 2023-10-07 21:26:28 +05:30
Johannes
66e6eaaabd Merge branch 'main' of github.com:formbricks/formbricks into feat/full-screen-link-survey-preview 2023-10-07 17:07:34 +05:45
Johannes
5426e400c9 docs: Added Single Use Links Section in Docs.
docs: Added Single Use Links Section in Docs.
2023-10-07 16:36:57 +05:45
Johannes
feed3e73c9 update single use docs page 2023-10-07 16:33:13 +05:45
Johannes
cc50019e0c Merge branch 'main' of github.com:formbricks/formbricks into docs-update 2023-10-07 16:05:06 +05:45
Johannes
91caac94b6 update docs page 2023-10-07 15:54:43 +05:45
Johannes
c9fea202c4 fix nav link 2023-10-07 15:38:23 +05:45
Johannes
fe12dc7ca9 refactor: Updating Twitter to X Logo in Footer
refactor: Updating Twitter to X Logo in Footer
2023-10-07 15:04:38 +05:45
Johannes
4313745517 fix: typo in mega prompt
fix: typo in mega prompt
2023-10-07 15:02:27 +05:45
Johannes
64c1708ef8 fix: Display Single Use Link Generator instead of Link Preview in Embedding Modal
fix: Display Single Use Link Generator instead of Link Preview in Embedding Modal
2023-10-07 14:58:40 +05:45
Johannes
f8aaa0351f tweak UI 2023-10-07 14:57:00 +05:45
joyal007
c5e7541d72 updated auto submit 2023-10-07 13:45:18 +05:30
Aman
56ce8c10d5 ed Single USe Links in Docs
Signed-off-by: Aman <138197666+aman44444@users.noreply.github.com>
2023-10-07 06:14:16 +00:00
Dhruwang
7e2e0c9739 fixed build errors 2023-10-07 11:34:57 +05:30
Dhruwang
457d34bd70 Merge branch 'issues/SingleUseLinkSurveys' of https://github.com/Dhruwang/formbricks into issues/SingleUseLinkSurveys 2023-10-07 10:30:00 +05:30
Dhruwang
b89e083017 Merge branch 'main' of https://github.com/Dhruwang/formbricks into issues/SingleUseLinkSurveys 2023-10-07 10:29:04 +05:30
Dhruwang
2575b7483b Added single use link modal to shareEmbedSurvey modal 2023-10-07 10:28:23 +05:30
Ayush
86adc0eeff Merge branch 'main' of https://github.com/zaCKoZAck0/formbricks into fix/form_rerender_name_change
merge main
2023-10-07 10:26:04 +05:30
Ayush
5bc4976fb9 fix: form rerender on name change 2023-10-07 09:53:03 +05:30
Yatharth Verma
4875e2c9d4 fix bottom margin as initially when its in fixed, window was getting cut in the top because of navigation bar 2023-10-07 07:57:26 +05:30
Yatharth Verma
74397f27f4 fix merge conflicts 2023-10-07 07:49:50 +05:30
Yatharth Verma
72c4496aac improve animation 2023-10-07 07:47:26 +05:30
sohamtembhurne
802171b6d1 Updating Twitter Logo 2023-10-07 01:14:56 +05:30
joyal007
8f64c5d806 Enter event in option 2023-10-07 00:55:08 +05:30
joyal007
2a73b6460d Added optional enter to submit event 2023-10-07 00:53:38 +05:30
Matti Nannt
6e1bbf19fc fix: build errors (#981) 2023-10-06 19:40:39 +02:00
Yatharth Verma
3d728b782f making animation look natural for maximizing 2023-10-06 23:00:37 +05:30
Anshuman Pandey
fb509d49c9 feat: add base setup to enable file uploads (#861)
* feat: adds api handlers for upload and get file from S3

* feat: upload and fetch files from local storage

* feat: upload and fetch files from local storage

* feat: adds restriction check for allowed file extesnsions

* refactor

* fix: uses t3 env for validation

* fix: fixes validation issues in storage api

* merge with main

* fix: moves UPLOADS_DIR to constants file

* fix: moves private uploads to responseId

* chore: merge with main

* fix: changes api route

* remove comment in storage service, use services in client storage route

* simplify client storage endpoint

* rename fileType to contentType

* relocate storage endpoints, update validation

* update management storage route for readability

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-06 19:06:48 +02:00
Shivani Palya
3e620d7a89 Merge pull request #1 from Shivanipalya26/Shivanipalya26-patch-1
Update megaprompt.md
2023-10-06 22:29:34 +05:30
Shivani Palya
53d8c142c3 Update megaprompt.md 2023-10-06 22:28:53 +05:30
Johannes
6e9b53e68e Update README to highlight contributors
Update README to highlight contributors
2023-10-06 19:48:38 +05:45
Johannes
c7580f0793 feat: Added a not-connected state to the survey state indicator
feat: Added a not-connected state to the survey state indicator
2023-10-06 19:40:42 +05:45
Matti Nannt
5b981e0d91 chore: delete unused uploads directory (#979) 2023-10-06 14:32:54 +02:00
mohitd404
18d7bd0686 Fixed #974 Updated README.md
Updated contributors section in readme.md
2023-10-06 15:56:35 +05:30
Prasoon Mahawar
32633656ae added condition for in-app survey only 2023-10-06 10:05:20 +00:00
Naitik
3bf7d732c2 Fixed where empty pattern was passed when switching from phone 2023-10-06 14:51:01 +05:30
joyal007
20a9b4f3c4 CTA auto skip prevented 2023-10-06 14:43:12 +05:30
Dhruwang
334aacc00c Merge branch 'main' of https://github.com/Dhruwang/formbricks into issues/SingleUseLinkSurveys 2023-10-06 14:43:06 +05:30
joyal007
9a080db936 added hover and focus event 2023-10-06 14:42:40 +05:30
Naitik Kapadia
c9f22290c4 Merge branch 'formbricks:main' into main 2023-10-06 14:32:57 +05:30
joyal007
83a95712e4 long text on enter new line 2023-10-06 14:24:12 +05:30
joyal007
105e32bf6c multi-choice hit enter submit 2023-10-06 14:23:22 +05:30
joyal007
bb206b093e multi question deselect bug fixed 2023-10-06 14:22:06 +05:30
Prasoon Mahawar
24a60bbc10 Merge remote-tracking branch 'refs/remotes/origin/main' 2023-10-06 08:26:54 +00:00
Prasoon Mahawar
f3280292ac Added a not-connected state to the survey state indicator 2023-10-06 08:22:46 +00:00
Johannes
197616ff4d fix: backButton and button target mixup
fix: backButton and button target mixup
2023-10-06 13:14:55 +05:45
Johannes
10e3dd37db fix drop off calculation 2023-10-06 12:46:13 +05:45
ShubhamPalriwala
96e3ba3cc9 fix: backButton and button target mixup & revert input validation 2023-10-06 12:20:23 +05:30
Naitik Kapadia
8eee903bfe Merge branch 'formbricks:main' into main 2023-10-06 11:56:27 +05:30
Johannes
d748c49f13 Merge branch 'main' of github.com:formbricks/formbricks into fix/keyboard-form-usablity 2023-10-06 11:28:57 +05:45
Johannes
8dd5623883 tweak UI 2023-10-06 10:31:58 +05:45
Johannes
818208fdce Merge branch 'main' of github.com:formbricks/formbricks into issues/SingleUseLinkSurveys 2023-10-06 09:40:35 +05:45
Johannes
ab7a072f55 chore: Fix typo
chore: Fix typo
2023-10-06 09:16:22 +05:45
Salim B
caaf903160 Fix sentence 2023-10-06 04:19:23 +02:00
Johannes
efb1033553 lp: update leaderboard
lp: update leaderboard
2023-10-05 23:46:05 +05:45
Johannes
977078d269 update leaderboard 2023-10-05 23:45:09 +05:45
Johannes
eb2a4bc0d2 chore: Add Hook0 to OSS Friends
chore: Add Hook0 to OSS Friends
2023-10-05 23:36:34 +05:45
François-Guillaume Ribreau
53c46418fa feat: add hook0 2023-10-05 17:16:24 +02:00
Matti Nannt
05c4dbaa92 chore: improve error logging in survey service (#958)
* fix: improve error logging in survey service

* expect error class in error logging
2023-10-05 16:46:30 +02:00
Shubham Palriwala
09f885d365 feat: auto generate formbricks encryption key in one click setup (#953)
* fix: docker env parsing & response bug when built w docker

* chore: bring back env example

* fix: docker compose envs are now single place defined

* add: renaming of .env in docs

* remove: existence of prisma_generate_data_proxy

* fix: use newer env vars and a smarter way to handle existing .env file

* fix: remove text to remove existing .enb

* fix: remove comments, local testing, and mention of more updating via echo in prod script

* fix: env ending

* fix: finalllyyy the docker compose works

* wip

* fix: update self host docker compose

* fix: echo log rename
2023-10-05 16:14:23 +02:00
Matti Nannt
7e74cfa0d6 chore: update npm dependencies (#954)
* update packages npm packages

* fix types bug

* update demo npm packages

* update web npm packages

* change formbricks-web to v1.1
2023-10-05 16:11:21 +02:00
Matti Nannt
a612eafee5 fix: docker release deployment pipeline (#957) 2023-10-05 16:09:18 +02:00
Naitik
32b1431939 Revert weird package.json 2023-10-05 16:51:55 +05:30
Naitik
d6f5120e53 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-05 16:42:38 +05:30
Matti Nannt
c6779783dc feat: add ASSET_PREFIX_URL to add support for proxies (#917)
* feat: add ASSET_PREFIX_URL to add support for proxies

* cleanup
2023-10-05 11:27:16 +02:00
Shubham Palriwala
cb8c08dd1f fix: update docker from source setup with new env variables and use env variables directly in docker-compose (#818)
* fix: docker env parsing & response bug when built w docker

* chore: bring back env example

* fix: docker compose envs are now single place defined

* add: renaming of .env in docs

* remove: existence of prisma_generate_data_proxy

* fix: use newer env vars and a smarter way to handle existing .env file

* fix: remove text to remove existing .enb

* fix: remove comments, local testing, and mention of more updating via echo in prod script

* fix: env ending

* fix: finalllyyy the docker compose works

* feat: short survey url support in docker compose

* fix: add envs to prod script

* chore: reorder env vars for uniformity

* update description for SHORT_SURVEY_BASE_URL

* fix: add ASSET_PREFIX_URL to prod script & docker compose

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-05 11:04:34 +02:00
Naitik
5e772f38ec Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-05 13:30:20 +05:30
Shubham Palriwala
940332ced9 fix: survey validation bug and verbose logging (#951) 2023-10-05 09:51:20 +02:00
Naitik
48105c9e8f Ensure Type Safety for inputType 2023-10-05 13:18:09 +05:30
Naitik
5245c29739 Replaced margin with space-x-2 and default placeholder 2023-10-05 13:02:07 +05:30
Shubham Palriwala
0c6acc0d41 feat: add authorization for webhook creation, updation, deletion actions (#912)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-05 09:28:47 +02:00
Subham Ray
ff39086d21 feat: add Url Shortener (#895)
* WIP

* added prisma actions

* remove console.logs

* some more fixes

* tweaks

* addressed all PR review comments

* remove hits from the prisma schema and all its corresponding service logic

* add nanoid

* corrected placeholders

* change database model, bring shortUrl service up to Formbricks code conventions

* update UI and shortUrl endpoint to work with new service

---------

Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-05 09:22:52 +02:00
Naitik
b0c03d52e1 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-05 12:17:18 +05:30
Dhruwang
652c9d9de0 cleaned up unused code 2023-10-05 10:38:57 +05:30
Johannes
5f19ffabd1 feat: added port info and guide in gitpod doc page
feat: added port info and guide in gitpod doc page
2023-10-05 07:23:40 +05:45
Johannes
193855c3ff Merge branch 'main' of github.com:formbricks/formbricks into gitpod-doc 2023-10-05 07:16:45 +05:45
Piyush Gupta
cddbabc4ad fix: build error (#949) 2023-10-04 22:30:29 +02:00
Naitik
815c642a37 Made title for phone more clear 2023-10-05 00:58:57 +05:30
Naitik
32f793e43c Remove Please as it duplicates 2023-10-05 00:57:03 +05:30
Naitik
54951822c3 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-05 00:47:38 +05:30
Johannes
06f03f65ca feat: Better Embedding of Link Surveys
feat: Better Embedding of Link Surveys
2023-10-04 23:35:30 +05:45
Anjy Gupta
2ec2695cde Merge branch 'gitpod-doc' of https://github.com/anjy7/formbricks into gitpod-doc 2023-10-04 17:42:04 +00:00
Anjy Gupta
d0385eb203 Merge branch 'formbricks:main' into gitpod-doc 2023-10-04 23:10:20 +05:30
Anjy Gupta
999203531f added back ticks 2023-10-04 17:38:52 +00:00
Anjy Gupta
6e4f9cde5c highlighted url 2023-10-04 17:35:47 +00:00
Naitik
4a90d87058 HTML Validation, Proper UI 2023-10-04 23:04:49 +05:30
Joe
59752f3ebe feat: add option to overwrite color and position for single surveys (#645)
* feat: styles ui

* feat: handling brand color and position

* schema update

* survey type update

* feat: local styles preview

* prisma migration

* feat: overriding global settings

* fix: update wording

* fix: do not show positioning in link mode

* update wording

* feat: new component for placement ui

* fix: destructuring localsurvey

* fix: overwritePosition optional

* fix: brandcolor zod validation

* feat: overwrite highlight border setting

* update wording

* merge conflit resolved

* fix: minor review suggestions

* fix: renamed localsurvey to survey

* fix: db schema

* fix comment in .env.example

* fix build errors

* fix: placement

* fix getFirstEnvironmentByUserId function

* fix build errors

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-10-04 19:09:48 +02:00
joyal007
438ffcd77f conflict resolve 2023-10-04 22:09:01 +05:30
joyal007
b433275cb5 Merge conflict resolved' 2023-10-04 22:07:21 +05:30
joyal007
4dee291e32 radio button index updated 2023-10-04 22:07:20 +05:30
joyal007
8d9d9e7d76 merge conflic resolved 2023-10-04 22:07:20 +05:30
joyal007
6deab8fdcf removed CTA button tabindex 2023-10-04 22:07:20 +05:30
joyal007
55c2830085 updated focus issue 2023-10-04 22:07:20 +05:30
joyal007
a126cc14a0 conflict resolved 2023-10-04 22:07:20 +05:30
joyal007
f8f5826151 added tabindex 2023-10-04 22:07:20 +05:30
joyal007
372ae167e0 updated tabindex 2023-10-04 22:07:20 +05:30
joyal007
5ffd8f748d updated tabindex 2023-10-04 22:07:20 +05:30
joyal007
5f2f9717fd updated tabindex 2023-10-04 22:07:20 +05:30
joyal007
f830f59e67 added tabindex 2023-10-04 22:07:20 +05:30
joyal007
882b3c4195 keyboard usablity 2023-10-04 22:07:20 +05:30
Rotimi Best
de40dc36e6 chore: move all services into the new folder structure (#948)
* chore: move environment services

* chore: move all services
2023-10-04 18:04:38 +02:00
Anjy Gupta
1c4394bf75 Merge branch 'formbricks:main' into gitpod-doc 2023-10-04 21:26:56 +05:30
Anjy Gupta
b121e69fb5 added gitpod setup overview 2023-10-04 15:56:31 +00:00
Piyush Gupta
9e19d11eed purged LinkSurveyModal, fixed build error 2023-10-04 21:04:54 +05:30
Piyush Gupta
7580840bb5 resolved merge conflicts 2023-10-04 20:55:45 +05:30
Rotimi Best
6758d2d318 chore: move actions service to new folder structure (#943)
* feat: move actions service

* fix: rename folder to be singular not plural

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-04 17:00:03 +02:00
Rotimi Best
61a850c4ea fix: delete duplicate displays (#947) 2023-10-04 16:41:41 +02:00
Rotimi Best
99ec1ed4e9 fix: standardize error messaging in all service (#920)
* fix: standardize error messaging in all service

* fix: use unknownerror
2023-10-04 16:29:49 +02:00
Sagnik Sahoo
d9f3df8b0f fix: Single Use Link Preview is not correctly functioning (#938)
* fixing the preview link

* Update LinkSingleUseSurveyModal.tsx
2023-10-04 16:27:24 +02:00
Rotimi Best
eb70a8b99a chore: move display service to new folder structure (#946) 2023-10-04 16:25:26 +02:00
dependabot[bot]
16603f1a42 chore(deps-dev): bump postcss from 8.4.30 to 8.4.31 (#939)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 16:24:14 +02:00
dependabot[bot]
9dfdd4e6ce chore(deps): bump zod from 3.22.2 to 3.22.3 (#940)
Bumps [zod](https://github.com/colinhacks/zod) from 3.22.2 to 3.22.3.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md)
- [Commits](https://github.com/colinhacks/zod/compare/v3.22.2...v3.22.3)

---
updated-dependencies:
- dependency-name: zod
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 16:23:43 +02:00
Piyush Gupta
c69e3f5cca fix: resolved PR review changes 2023-10-04 19:11:25 +05:30
Rotimi Best
424cddfa9e chore: move attributeClass service to new folder structure (#944)
* chore: move attributeClass service

* update person service with new attributeClass location
2023-10-04 15:25:08 +02:00
Johannes
8897d3ed66 Validate Survey Editor Form
Validate Survey Editor Form
2023-10-04 18:36:59 +05:45
Rotimi Best
07d0f3e751 fix: move close comment to end in .env.example (#945) 2023-10-04 14:34:31 +02:00
ShubhamPalriwala
16a94ef61f fix: add missing state set on fail 2023-10-04 18:04:06 +05:30
ShubhamPalriwala
f97c8e5bce Merge branch 'shubham/for-1150-validate-survey-editor-forms' of https://github.com/formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-10-04 17:47:53 +05:30
Piyush Gupta
c57c06dd3b merged main into feat/embed-xp 2023-10-04 17:35:53 +05:30
Matthias Nannt
188f61bda6 merge latest changes, solve merge conflicts 2023-10-04 13:07:10 +02:00
Shubham Palriwala
a78c19385e fix: generate single survey Ids in summary only if enabled (#942) 2023-10-04 13:04:47 +02:00
Dhruwang
7ae1599c03 fix: display count not getting decremented 2023-10-04 16:26:20 +05:30
Dhruwang
f01f55521a fix: display count not getting decremented 2023-10-04 16:24:34 +05:30
Dhruwang
c440d6b486 fix: display count not getting decremented 2023-10-04 16:23:14 +05:30
Dhruwang
3222649ae0 Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-04 14:51:47 +05:30
Shubham Palriwala
cce3a98f20 feat: add docs for management API (#930)
* feat: docs for management API

* fix: split api into client and management

* update navigation and pages

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-04 11:03:13 +02:00
Johannes
b13dbc7fea reword toast 2023-10-04 14:23:09 +05:45
Johannes
3b24569e8e Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-10-04 14:06:44 +05:45
Johannes
66d38b1449 feat: faq section on landing page as well as docs
feat: faq section on landing page as well as docs
2023-10-04 13:31:56 +05:45
Johannes
082691d0b3 fix typo 2023-10-04 13:31:29 +05:45
Johannes
d3779bd649 fix typos 2023-10-04 13:24:07 +05:45
Naitik
57234cf012 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-04 12:09:53 +05:30
Dhruwang
d831dc1395 moved Id generation to link Modal button 2023-10-04 11:43:58 +05:30
Johannes
67217f4c75 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1089-formulate-faqs-and-create-page 2023-10-04 11:33:09 +05:45
joyal007
95b937e63d updated 2023-10-04 09:34:15 +05:30
Joyal Raphel
58bccac12a Merge branch 'formbricks:main' into fix/keyboard-form-usablity 2023-10-04 09:30:33 +05:30
joyal007
8d05cf25a8 added tabindex 2023-10-04 09:27:02 +05:30
joyal007
c267dc9b66 updated tabindex 2023-10-04 09:27:02 +05:30
joyal007
4221a9390f updated tabindex 2023-10-04 09:27:02 +05:30
joyal007
b6ed2e6530 updated tabindex 2023-10-04 09:27:02 +05:30
joyal007
080ddb6f48 added tabindex 2023-10-04 09:27:02 +05:30
joyal007
a2128d2a66 keyboard usablity 2023-10-04 09:27:02 +05:30
Matti Nannt
94e272f47b fix: validation error in profile update input (#937) 2023-10-03 22:03:20 +02:00
Shubham Palriwala
c6678a2607 fix: add authorization for Survey actions (#870)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* feat: handle authorization for action creation, update, delete

* feat: handle authorization for survey creation, updation & deletion

* feat: use cached method across and wrapper for authzn check

* fix: use cached wrapper & introduce more authzn check for survey services in actions

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey

* feat: add caching in canUserAccessAction and use Authzn error

* fix: rename action to actionClass wherever needed

* feat: use caching in core method and update hasEnvAccess call

* fix: use authzn specific error

* fix: use cache getActionClass

* fix: make changes

* fix: import

* fix: import and suggested changes

* fix: rename action and use cache tag

* feat: use services to create team

* fix: atomic services for product & team creation

* improve teamUpdateInput

* use services in signup process

* redirect to prod environment when new product is created

* fix signup bug

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-03 21:43:34 +02:00
Naitik Kapadia
1ddfe493e5 Merge branch 'formbricks:main' into main 2023-10-03 23:48:44 +05:30
Naitik
8585df90b3 Fixed Phone Number Regex 2023-10-03 23:47:45 +05:30
Johannes
2f95db729c update leaderboard
update leaderboard
2023-10-03 23:24:21 +05:45
Johannes
76ecbb9e2f update leaderboard 2023-10-03 23:22:09 +05:45
Piyush Gupta
83ab524200 merged with remote changes 2023-10-03 23:00:30 +05:30
Yatharth Verma
32f8ce593a Merge: latest branch 2023-10-03 22:57:24 +05:30
Yatharth Verma
e7fd94e412 Improvements: Done all the changes suggested by Johannes 2023-10-03 22:51:32 +05:30
Piyush Gupta
92681b0f81 fix: preview mode in email tab 2023-10-03 22:51:12 +05:30
Piyush Gupta
28ab3c3e4d synced with main 2023-10-03 22:50:11 +05:30
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
Anjy Gupta
b710c8961b Merge branch 'formbricks:main' into gitpod-doc 2023-10-03 21:23:52 +05:30
Anjy Gupta
4c60791929 made req changes 2023-10-03 15:52:18 +00:00
Johannes
251beb4d51 ui tweaks 2023-10-03 21:36:16 +05:45
Dhruwang
79d05a4c57 Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-03 21:07:16 +05:30
Piyush Gupta
5384e7f95e resolved merge conflicts 2023-10-03 21:06:38 +05:30
joyal007
b4f10137a8 keyboard usablity 2023-10-03 20:35:02 +05:30
Shubham Palriwala
8f35537bbf fix: smiley rating question now fits inside container (#839)
* fix: smily rating question fit inside container

* wip

* fix: make row center aligned
2023-10-03 14:59:32 +02:00
Dhruwang
09523c318d Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-03 18:25:08 +05:30
Shubham Palriwala
49eb4e0c53 feat: connection states on integrations (#833)
* feat: connection states on integrations

* fix: missing action buttons

* make text more readable

---------

Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-03 14:28:55 +02:00
Rotimi Best
66ea2069ac chore: move revalidation interval to a constant (#921) 2023-10-03 14:01:26 +02:00
Rotimi Best
4b1352a995 fix: remove direct usage of prisma type in services (#919) 2023-10-03 13:56:48 +02:00
Rotimi Best
9fbefa42dd fix: remove error prone unused function in services (#918) 2023-10-03 13:55:23 +02:00
Rotimi Best
2cf316b620 fix: rename function name typo in services (#922) 2023-10-03 13:54:26 +02:00
Rotimi Best
8a07b2f82d feat: use of server-only consistently in services (#923) 2023-10-03 13:53:34 +02:00
Naitik Kapadia
e2572ff87b Merge branch 'formbricks:main' into main 2023-10-03 15:49:47 +05:30
Naitik
6c0d356c2a Component for QuestionTypeSelector 2023-10-03 15:44:28 +05:30
Johannes
41fa1d729d docs: improve pull request template with latest info
docs: improve pull request template with latest info
2023-10-03 15:41:03 +05:45
Johannes
7ce4e58755 tweak wording 2023-10-03 15:40:14 +05:45
Dhruwang
75e17e8aa6 added service deleteResponseById 2023-10-03 15:14:56 +05:30
Anjy Gupta
d3d74b2a6c Merge branch 'formbricks:main' into gitpod-doc 2023-10-03 15:13:29 +05:30
Anjy Gupta
b09cc8a25f added step by step guide 2023-10-03 09:43:00 +00:00
Matti Nannt
a8e0e7d3f2 fix: display count not correct in link surveys (#929) 2023-10-03 11:28:55 +02:00
Rotimi Best
ca5f505fbd rename from Not required to optional 2023-10-03 09:55:59 +01:00
Rotimi Best
4584c1e287 fix mix match 2023-10-03 09:55:04 +01:00
Rotimi Best
9c83abb680 docs: improve pull request template with latest info 2023-10-03 09:43:05 +01:00
Johannes
20ec6781e1 add gitpod prize to FormTribe hackathon page
add gitpod prize to FormTribe hackathon page
2023-10-03 14:07:48 +05:45
Johannes
2d9f35f503 add gitpod prize 2023-10-03 14:06:59 +05:45
Johannes
fe475a5b48 update how to section FormTribe
update how to section FormTribe
2023-10-03 12:58:42 +05:45
Johannes
0620829830 update how to section 2023-10-03 12:56:25 +05:45
Dhruwang
49a288e83e Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-10-03 10:58:53 +05:30
Naitik
b2237bb5e5 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-03 10:12:43 +05:30
Johannes
027f7f13ba Merge branch 'main' of github.com:formbricks/formbricks into feat/full-screen-link-survey-preview 2023-10-03 09:01:00 +05:45
Johannes
727f09aa6e Fix/multi select optional
Fix/multi select optional
2023-10-03 08:45:10 +05:45
Anjy Gupta
fb1f622d9d feat: added port info and guide in gitpod doc page 2023-10-02 19:00:57 +00:00
Naitik
6ef5a4bcc0 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-02 23:38:27 +05:30
PratikAwaik
b0d070b1a9 Merge branch 'main' of https://github.com/formbricks/formbricks into fix/multi-select-optional 2023-10-02 22:33:16 +05:30
PratikAwaik
bd559219b8 fix next button click 2023-10-02 22:33:02 +05:30
Jonas Höbenreich
89a60fd568 feat: add Excel download option (#846)
* add Excel download option

* add back attribute export

* add types and check for download filetype

* add xlsx package

* move csv and excel conversion to internal endpoints

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-02 17:04:11 +02:00
Naitik
5e4d92205c Changed templates.ts 2023-10-02 19:55:50 +05:30
Naitik
444c0b8f36 Small Fix 2023-10-02 19:36:41 +05:30
Naitik
178b5c6ee3 Merge branch 'main' of https://github.com/KapadiaNaitik/formbricks 2023-10-02 19:32:55 +05:30
Naitik
adc5e30dca Remove redunant import 2023-10-02 19:32:24 +05:30
Naitik
b5737ea611 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-02 19:32:04 +05:30
Shubham Palriwala
8c0aba82e5 fix: add authorisation for tags actions (#897)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* feat: handle authorization for tag creation, updation & deletion

* fix: use cached wrapper

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey

* fix: suggrsted changes and authzn for response as well

* fix: work on suggested changes

* fix broken lock file

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-02 16:00:25 +02:00
Naitik Kapadia
7bb6a0ba7d Merge branch 'formbricks:main' into main 2023-10-02 19:28:03 +05:30
Naitik
cf75b4850d Validation Fields 2023-10-02 19:27:37 +05:30
Shubham Palriwala
a9c8e99cd4 fix: add authorization to actions for Profile (#908)
* feat: authzn and limit sensitive info from profile actions

* fix: work on suggested changes
2023-10-02 15:40:15 +02:00
Yatharth Verma
8219905d27 feat: Improve animation 2023-10-02 18:19:51 +05:30
Johannes
bcaf2337c4 update leaderboard
update leaderboard
2023-10-02 17:11:47 +05:45
Johannes
baef77aa98 fix: multi select evaluator and required
fix: multi select evaluator and required
2023-10-02 17:09:07 +05:45
Johannes
1275ae81b3 Merge branch 'main' into fix/multi-select-optional 2023-10-02 17:08:53 +05:45
Johannes
829d2f0297 update leaderboard 2023-10-02 17:04:12 +05:45
Shubham Palriwala
c4b4d2a312 chore: add authorization to server actions for Actions (#868)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* feat: handle authorization for action creation, update, delete

* feat: use cached method across and wrapper for authzn check

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey

* feat: add caching in canUserAccessAction and use Authzn error

* fix: rename action to actionClass wherever needed

* fix: use cache getActionClass

* fix: make changes

* fix: import

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-02 13:03:49 +02:00
Johannes
e01d5a44f4 fix lock file (#904) 2023-10-02 12:42:28 +02:00
Johannes
289d36d509 style: Add corresponding icons to type indicator #892
style: Add corresponding icons to type indicator #892
2023-10-02 16:01:52 +05:45
PratikAwaik
015c26a1ef fix multi select evaluator and requirewd 2023-10-02 15:46:44 +05:30
Aditya Deshlahre
cfe6e3628d Merge branch 'main' into adityadeshlahre/formtribe 2023-10-02 14:12:30 +05:30
Shubham Palriwala
c470c024c5 fix: Add authorisation for API Key server actions (#741)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey
2023-10-02 10:13:19 +02:00
Johannes
532d66bb34 feat: Mandatory question indicator added
feat: Mandatory question indicator added
2023-10-02 13:47:12 +05:45
Johannes
f4811ecee2 update cta 2023-10-02 13:46:39 +05:45
Shubham Palriwala
9e91e572ba fix: unable to add a new action while editing a survey (#899) 2023-10-02 09:37:33 +02:00
Johannes
7269303b71 tweak styling 2023-10-02 13:21:36 +05:45
Yatharth Verma
cb7eb8b19f feat: Add full screen preview feature 2023-10-02 11:40:39 +05:30
Aditya @ArchLinux
dab6b86717 Fixed Source of Question type & icon 2023-10-02 10:40:58 +05:30
Piyush Gupta
55c29c6a73 resolved review changes 2023-10-02 10:06:11 +05:30
Johannes
d3b2e0ba7b Lp/leaderboard update
Lp/leaderboard update
2023-10-02 10:17:35 +05:45
Johannes
7ef95bc284 update banner 2023-10-02 10:15:46 +05:45
Johannes
7d9617e27f update leaderboard 2023-10-02 10:05:40 +05:45
Aditya @ArchLinux
0892bbd898 Selection Fix 2023-10-02 02:23:07 +05:30
Aditya Deshlahre
8549ac61c2 Merge branch 'formbricks:main' into adityadeshlahre/formtribe 2023-10-02 01:28:32 +05:30
Aditya @ArchLinux
2ab90c14b9 Add corresponding icons to type indicator #892 2023-10-02 01:10:04 +05:30
Johannes
6e2b4e2aef Lp/leaderboard
Lp/leaderboard
2023-10-02 00:12:39 +05:45
Johannes
af1dc2c08b side quest tweaks 2023-10-01 23:43:49 +05:45
Johannes
a032d8aad6 add button to issue 2023-10-01 23:42:28 +05:45
Johannes
5557f22a4b add leaderboard 2023-10-01 23:33:25 +05:45
Piyush Gupta
5fad91dcb7 feat:mandatory question indicator added 2023-10-01 19:18:04 +05:30
Johannes
f01adaf994 Docs: Add cla form to getting started doc
Docs: Add cla form to getting started doc
2023-10-01 17:21:47 +05:30
Rotimi Best
48f1ed4d78 docs: update wording 2023-10-01 11:47:19 +00:00
Rotimi Best
81a6e92aed docs: add cla form to getting started doc 2023-10-01 11:29:45 +00:00
Johannes
030e8556fb fix: Progress bar reset
fix: Progress bar reset
2023-10-01 16:21:09 +05:30
Johannes
4b978b4ac4 Release Side Quests
Release Side Quests
2023-10-01 16:14:15 +05:30
Johannes
15d75a2856 release side quests 2023-10-01 16:11:14 +05:30
Dhruwang
0027835af2 fix: Progress bar reset 2023-10-01 16:00:28 +05:30
Shubham Palriwala
769ceb1fc2 refactor: @formbricks/api package (#782)
* init: rewritten formbricks api package

* restrucure: client prepended formbricks api package

* feat: cleanup error templating and node-fetch for non browser access

* feat: replace package (build error for js packge due to api)

* fix: rename methods & move error type

* fix: imports of api via js

* remove node-fetch

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-01 11:50:29 +02:00
Johannes
e3069f7bab Blog: Join the FormTribe blog post
Blog: Join the FormTribe blog post
2023-10-01 15:14:39 +05:30
Johannes
3af8a4e17d add gitpod docs page, tweak pricing table 2023-10-01 15:10:26 +05:30
Johannes
1faa74864c Merge branch 'main' of github.com:formbricks/formbricks into join-formtribe 2023-10-01 14:46:07 +05:30
Johannes
eac75c29b6 Docs: How we code documentation
Docs: How we code documentation
2023-10-01 14:44:17 +05:30
Johannes
9bed96a22f Merge branch 'main' of github.com:formbricks/formbricks into how-we-code 2023-10-01 14:42:14 +05:30
Johannes
14e8c43214 Merge branch 'main' of github.com:formbricks/formbricks into how-we-code 2023-10-01 14:37:31 +05:30
Johannes
6d36bb8cb7 Merge branch 'main' of github.com:formbricks/formbricks into join-formtribe 2023-10-01 14:35:37 +05:30
Johannes
d5b67f4a14 Merge branch 'main' of github.com:formbricks/formbricks into join-formtribe 2023-10-01 14:20:07 +05:30
Johannes
e2c3686f2f add gitpod docs 2023-10-01 14:16:16 +05:30
Piyush Gupta
6533d9834b resolved merge conflicts 2023-10-01 10:22:24 +05:30
Piyush Gupta
1033ac745a fix: preview email survey url 2023-10-01 10:15:04 +05:30
Matti Nannt
6af13c7aaa feat: add vercel.json file to configure Vercel deployments (#876)
* feat: add vercel.json file to configure Vercel deployments

* reduce maxDuration of sync endpoint

* update api function routes

* increase sync limit
2023-09-30 22:42:27 +02:00
Matti Nannt
5aad6ea095 fix: invalid validation of VERCEL_URL leads to build errors on Vercel (#875)
* fix: invalid validation of VERCEL_URL leads to build errors on Vercel

* fix build errors
2023-09-30 22:07:17 +02:00
Shubham Palriwala
13afba7615 feat: move env vars from build-time to run-time to better support self-hosting environments (#789)
* feat: privacy, imprint, and terms URL env vars now do not need rebuilding

* feat: disable_singup env var now do not need rebuilding

* feat: password_reset_disabled env var now do not need rebuilding

* feat: email_verification_disabled env var now do not need rebuilding

* feat: github_oauth & google_oauth env var now do not need rebuilding

* feat: move logic of env vars to serverside and send boolean client-side

* feat: invite_disabled env var now do not need rebuilding

* feat: rename vars logically

* feat: migration guide

* feat: update docker-compose as per v1.1

* deprecate: unused NEXT_PUBLIC_VERCEL_URL & VERCEL_URL

* deprecate: unused RAILWAY_STATIC_URL

* deprecate: unused RENDER_EXTERNAL_URL

* deprecate: unused HEROKU_APP_NAME

* fix: define WEBAPP_URL & replace NEXT_WEBAPP_URL with it

* migrate: NEXT_PUBLIC_IS_FORMBRICKS_CLOUD to IS_FORMBRICKS_CLOUD

* chore: move all env parsing to a constants.ts from page files

* feat: migrate client side envs to server side

* redo: isFormbricksCloud to navbar serverside page

* fix: constants is now a server only file

* fix: removal of use swr underway

* fix: move 1 tag away from swr to service

* feat: move away from tags swr

* feat: move away from surveys  swr

* feat: move away from eventClass swr

* feat: move away from event swr

* fix: make constants server-only

* remove comments from .env.example, use constants in MetaInformation

* clean up services

* rename tag function

* fix build error

* fix smaller bugs, fix Response % not working in summary

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-30 21:40:59 +02:00
Ikko Eltociear Ashimine
3c2087452c fix: typo in comment in find-first.ts (#874)
enviroment -> environment
2023-09-30 18:01:14 +02:00
Anshuman Pandey
0225362a92 feat: Add caching to more services (survey, environment, team, profile) (#835)
* feat: caching in surveys

* fix: fixes unstable_cache date parsing error

* fix: fixes survey revalidation in displays and responses

* fix: fixes survey cache

* fix: adds comments

* fix: response cache tag

* fix cache validation and tag naming

* move TSurveysWithAnalytics to TSurveys

* add caching to more services

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-30 14:22:42 +02:00
Rotimi Best
7a9a4b9ffc docs: fix env poin without link 2023-09-30 10:13:59 +00:00
Matthias Nannt
f3ef080ec6 downgrade next version to "fix" dev bug 2023-09-30 11:58:05 +02:00
Matthias Nannt
a17e86bc91 fix docs page error, slight change to pricing 2023-09-30 11:12:30 +02:00
Matthias Nannt
d5bb4d4365 Merge branch 'main' of github.com:formbricks/formbricks into how-we-code 2023-09-30 11:02:56 +02:00
Shubham Palriwala
48d8fc6aca feat: add new pricing table to formbricks-com (#869)
* init: pricing page

* fix: ux changes
2023-09-30 11:01:46 +02:00
Rotimi Best
810bd645f8 docs: more self cr 2023-09-30 06:25:59 +00:00
Rotimi Best
0f3aa9434a docs: self code review 2023-09-30 06:24:32 +00:00
Piyush Gupta
9e9c02bc3e fix: build errors 2023-09-30 11:52:02 +05:30
Rotimi Best
2003bb64f6 docs: how we code documentation 2023-09-30 06:09:47 +00:00
Piyush Gupta
1815d86f16 feat: added email sender server action 2023-09-30 11:32:15 +05:30
Rotimi Best
ef604e7660 doc: join the formtribe blog post 2023-09-30 05:25:34 +00:00
Piyush Gupta
0441f0bbbd Merge branch 'main' of https://github.com/formbricks/formbricks into feat/embed-xp 2023-09-29 20:04:36 +05:30
Piyush Gupta
8bf0df7c74 fix: refactoring and responsiveness 2023-09-29 20:04:04 +05:30
Johannes
18ab73e30a Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1089-formulate-faqs-and-create-page 2023-09-29 13:20:41 +05:30
Piyush Gupta
9ce4c26bc9 refactor embed xp 2023-09-29 12:59:55 +05:30
Piyush Gupta
128ad4cb3a added shareSurveySheet 2023-09-29 11:44:31 +05:30
Shubham Palriwala
95b7a6fb8c fix: action class creation in frontend fails (#867) 2023-09-28 17:10:23 +02:00
Johannes
5b3c07ffc8 shorten delay for tooltip 2023-09-28 18:39:24 +05:30
Matti Nannt
ca19ee6e0f fix: formbricks-js not displaying properly on smaller screens (#866) 2023-09-28 13:02:41 +02:00
ShubhamPalriwala
9871b0bbe0 fix: metadata on faq & remove best practices due to compile issues 2023-09-28 16:14:54 +05:30
ShubhamPalriwala
35ee2925ec Merge branch 'main' of https://github.com/formbricks/formbricks into shubham/for-1089-formulate-faqs-and-create-page 2023-09-28 15:17:15 +05:30
Johannes
70cd70e414 Tweaking Google Sheets Docs
Tweaking Google Sheets Docs
2023-09-28 14:55:19 +05:30
Johannes
2ff7022368 tweaking docs page 2023-09-28 14:54:39 +05:30
Johannes
9b77d89e53 feat: (documentation) google sheets integration
feat: (documentation) google sheets integration
2023-09-28 14:53:06 +05:30
Johannes
c4b6d6d5f4 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1346-docs-page-for-google-sheets-integration 2023-09-28 14:40:25 +05:30
Johannes
2083b68388 fix: add structured metadata to landing pages
fix: add structured metadata to landing pages
2023-09-28 14:35:09 +05:30
Johannes
3e2dcd8e74 fix build error 2023-09-28 14:34:09 +05:30
Dhruwang Jariwala
7e626e75a3 feat: Add Management API (#788)
* added some management APIs for response and surveys

* added management API endpoints

* refactored [responseId] route

* added authorisation and made refactors

* removed console logs

* fixed build issues

* remobed session check

* removed getEnvironmentBySession function

* made code refactors

* update variables in route

* add updated routes

* change underscore to hyphen notation

* peoples -> people

* fix build errors

* resolved build errors

* restored types in summary list

* add redirects for old responses and survey endpoints, update docs

* fixed not authenticated response

* update survey create endpoint to only accept necessary fields, clean up

---------

Co-authored-by: Dhruwang Jariwala <dhruwang@Dhruwangs-MacBook-Pro.local>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-28 10:57:45 +02:00
Piyush Gupta
3edf5539d5 pull from upstream main 2023-09-28 06:38:26 +05:30
Piyush Gupta
fba1b1b0a9 feat: added survey preview 2023-09-28 06:28:40 +05:30
Matti Nannt
c98b909c9c fix: validation error in surveyClosedMessage (#864) 2023-09-27 16:29:36 +02:00
Rotimi Best
edbab36d27 docs: update development and self-hosting information in README (#860)
* docs: add prerequisities to readme.md

* docs: reorganize getting started section in README

* docs: break docker into its own section

* update self-hosting structure

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-27 16:03:26 +02:00
Matti Nannt
e27a994ef9 fix: validation error when surveyClosedMessage is undefined (#863) 2023-09-27 15:57:17 +02:00
Ishan Avasthi
8a7f1ff680 fix: typo on FormTribe Landing Page (#859) 2023-09-27 15:48:48 +02:00
Dhruwang Jariwala
07258aabdd chore: Disable administration view on mobile devices (#862)
* Blocks mobile usage

* remove button

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-27 15:47:51 +02:00
Shubham Palriwala
83bc8a8c11 feat: Add pagination to people overview (#830)
* feat: paginante people page

* undo: delete env example

* fix: rename vars and return empty arr over err

* fix: invalid page logic

* fix: handle bigger cases

* increase PEOPLE_PER_PAGE to 50

* fix: show no people when added invalid page no

* feat: add caching in people fetch services

* Revert "feat: add caching in people fetch services"

This reverts commit ab1e98c05e.

* fix build errors

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-27 11:59:44 +02:00
Matti Nannt
48921663be chore: update npm dependencies (#857)
* chore: update npm packages

* update formbricks-web packages

* update packages in demo

* update packages in formbricks-com

* fix survey status dropdown has no value
2023-09-27 11:42:49 +02:00
Dhruwang
fce7ac30f3 removed console log 2023-09-27 14:09:44 +05:30
ShubhamPalriwala
4c45f13b5c fix: missed gdpr pages 2023-09-27 13:39:35 +05:30
Dhruwang
3125369708 solved build errors and added functionality to store displayId in in-app surveys 2023-09-27 13:33:09 +05:30
Dhruwang
944de69acc Merge branch 'main' of https://github.com/Dhruwang/formbricks into redesign-metadata 2023-09-27 10:29:51 +05:30
Dhruwang
36355ef54b redesigned metadata 2023-09-26 16:48:24 +05:30
Rotimi Best
06448fd4e0 feat: In Gitpod open mailhog in browser on setup complete (#849)
* docs: add local and gitpod set

This links to our docs on formbricks.com for local setup and adds a gitpod setup banner

* feat: open mailhog after gitpod setup complete

* remove development doc
2023-09-26 18:42:19 +09:00
Matti Nannt
48ba245336 fix: formtribe page should only be shown in light mode (#854) 2023-09-26 17:39:39 +09:00
Anshuman Pandey
95c466dbba chore: moves prisma logic from set-attribute to person service (#840) 2023-09-26 16:57:25 +09:00
Rotimi Best
8181f74ad4 docs: Add Gitpod Button to Readme (#848)
This links to our docs on formbricks.com for local setup and adds a gitpod setup banner
2023-09-26 16:55:39 +09:00
Dhruwang Jariwala
562aefef6e feat: Add Deploy with Railway Button to Readme (#851) 2023-09-26 16:54:00 +09:00
Dhruwang Jariwala
a3549cc92c fix: Preview not showing correctly after changing the survey type (#852) 2023-09-26 16:52:39 +09:00
Johannes
6c8d14409c feat: Introduce new Landing Page for FormTribe event (#853)
* formtribe lp v1

* fix apos

* responsiveness + tweaks

* add video
2023-09-26 16:50:21 +09:00
Dhruwang
c272b8a75c Updated survey metadata mockup 2023-09-26 00:02:58 +05:30
Piyush Gupta
0a6367e31e feat: added templates for each question type 2023-09-25 23:22:15 +05:30
ShubhamPalriwala
9b6ea3f451 wip 2023-09-25 10:53:23 +05:30
Johannes
cf881127e7 chore: Adds Papermark
chore: Adds Papermark
2023-09-25 10:15:31 +05:30
Anshuman Pandey
23d6135f30 fix: fixes empty in app surveys screen when formbricks-js is not connected (#836)
* fix: fixes empty in app surveys screen

* move analysis components to components folder

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-24 15:54:21 +09:00
tanayvaswani
f24bd9bfc0 Adds Papermark 2023-09-22 18:37:00 +05:30
Johannes
5f11c9ef81 enhancement: Adds manage sheets label to GS integration card
enhancement: Adds manage sheets label to GS integration card
2023-09-22 11:28:08 +02:00
Johannes
2f8cfe0cd5 fix: NPS response issue
fix: NPS response issue
2023-09-22 11:26:55 +02:00
Dhruwang
0acc840ecd fix: NPS question issue 2023-09-22 14:25:54 +05:30
ShubhamPalriwala
7244af921f Merge branch 'main' of https://github.com/formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-09-22 13:47:15 +05:30
Dhruwang
9a9b367478 Adds manage sheets label to GS integration card 2023-09-21 23:45:26 +05:30
Dhruwang Jariwala
01dcd55487 fix: typos in Google Auth environment variables (#841) 2023-09-22 03:10:43 +09:00
Dhruwang Jariwala
9b883c103e fix: use correct whitespaces in responses within notification emails (#842) 2023-09-22 03:06:20 +09:00
Dhruwang Jariwala
04678d6e50 fix : email indentation (#837) 2023-09-21 17:10:39 +09:00
ShubhamPalriwala
958f1960ae feat: everything google sheets integration docs' 2023-09-21 13:19:35 +05:30
ShubhamPalriwala
f2bdeabec1 init: google sheet cloud instance integration 2023-09-21 12:14:40 +05:30
Matti Nannt
66ac652c3c feat: minify formbricks-surveys & formbricks-js using terser (#834) 2023-09-20 13:13:52 +09:00
Piyush Gupta
f153b7f0f2 sync with main 2023-09-19 21:18:56 +05:30
Piyush Gupta
91cb8d8503 added email templates 2023-09-19 21:15:27 +05:30
Matti Nannt
85816af22a fix: remove credentials file (#832) 2023-09-19 23:13:51 +09:00
ShubhamPalriwala
5c7f4510e3 Merge branch 'main' of https://github.com/formbricks/formbricks into shubham/for-1089-formulate-faqs-and-create-page 2023-09-19 19:34:00 +05:30
ShubhamPalriwala
23971f33e7 feat: faq section on landing page as well as docs 2023-09-19 19:24:51 +05:30
Dhruwang Jariwala
21f393f402 feat: Add Google Sheets Integration (#735)
* added intro and surveySelect page

* added home page and  wrapper component

* added spreadsheet select

* added data write functionality and added integration schema model

* improved UX

* reworked UI

* added google sheet integration

* removed some unused code

* added user email

* UI tweaks

* fixed build issues and made added question to top of spreadsheets

* adds refreshSheets and added empty survey/spreadsheets text

* restored pnpm-lock

* added duplicate sheet warning

* move process.env to t3env

* move migration

* update docs link, add note to show that sheets integration is not configured

* Add simple docs page for google-sheets

* added session check

* restored pnpm-lock

* Merge branch 'main' of github.com:formbricks/formbricks into Integration/Google-sheet

* added google sheet  env variables to runtimeEnv

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-19 22:29:11 +09:00
ShubhamPalriwala
13bc73b47e feat: add missing seo metadata in landing pages 2023-09-18 18:30:38 +05:30
Anshuman Pandey
892776c493 refactor: moves team settings to server components (#693)
* feat: moves edit team name to server components

* feat: server components for membership roles

* feat: adds server actions and services

* fix: fixes invite server action

* feat: adds packages for jwt and email

* feat: server actions

* feat: moves edit memberships logic to server components

* feat: moves delete team logic to server components

* fix: fixes team loading states

* rename getAllMembershipsByUserId -> getMembershipsByUserId

* remove cache from mutating functions

* remove cache from updateInvite

* refactoring

* fix build error

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-18 17:32:42 +09:00
Johannes
22c2934969 chore: Add Requestly to OSS Friends
chore: Add Requestly to OSS Friends
2023-09-18 08:43:07 +02:00
Johannes
21edd7a3fc Chore: Remove Careers Page
Chore: Remove Careers Page
2023-09-18 08:42:45 +02:00
tyjkerr
bf67af4dca feat: Make response notes resolvable (#801)
* update notes ux

* add capability to resolve notes

* add migration

* update text color

* prevent updating unchanged note

* add isEdited to ResponseNote

* combine migrations into one

* simplify services

* fix UI issues

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-18 12:34:16 +09:00
Sachin Jain
31cace79c8 Add Requestly to OSS Friends 2023-09-17 20:04:52 +00:00
Johannes
0b7edfd115 remove careers page 2023-09-17 18:30:57 +02:00
Johannes
3b0f16878d chore: add openstatus to friends
chore: add openstatus to friends
2023-09-17 17:49:57 +02:00
Matti Nannt
9d1ea819c5 feat: add mau limit to web-app survey (#828) 2023-09-17 22:57:47 +09:00
Matti Nannt
ac11537e07 fix: make sure event listeners are only added once in formbricks-js (#825)
* add singleton pattern for js widget

* make sure event listeners are only initiated once
2023-09-17 22:51:40 +09:00
Thibault Le Ouay
43a3a0da75 add openstatus to friends 2023-09-17 10:04:56 +02:00
Matti Nannt
9a6a75056c fix: invalidate attributeClasses cache on create (#824) 2023-09-17 00:38:03 +09:00
Matti Nannt
f313275a14 fix: sync call gets called by other functions (#823)
* fix: sync call gets called by other functions

* fix: sync call gets called by other functions

* remove unused imports

* remove unused import

* fix userId update
2023-09-17 00:31:38 +09:00
Anshuman Pandey
d8b14f5f35 chore: add caching to js actions endpoint (#822)
* fix: caching in actions endpoint

* refactor

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-16 22:35:50 +09:00
Matti Nannt
e86b80cf0f chore: enable caching in all js endpoints to reduce database calls (#821)
* Move cached functions to services, add new caching to set-attribute

* update set-user-id route

* move remaining cache functions to services, simplify revalidation and keys

* simplify set-attribute further

* fix build errors

* comment out prisma client logging
2023-09-16 20:53:31 +09:00
Matti Nannt
b04acae0ba fix: formatting issue and build error (#820) 2023-09-16 16:05:12 +09:00
Matti Nannt
73ba6feec2 refactor: Add caching to the sync endpoint (#819)
* test: caching strategies

* feat: caching

* remove hotfix code

* remove unused import

* fix: adds revalidation to action services

* add environments to product service & type

* fix: fixes caching

* fix: fixes product cache

* add person revalidation to person js endpoints

* update surveys cache rule

* add new caching policy for surveys in sync

---------

Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-09-16 15:53:44 +09:00
Shubham Palriwala
4a3289d394 chore: rewrite survey not found page to new nextjs standards (#807)
* feat: nextjs custom 404 page notFound

* type survey type properly and return unused inactive screen states

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-15 23:47:33 +09:00
Shubham Palriwala
75323800ea chore: upgrade to nextjs 13.4.19 (#817) 2023-09-15 18:37:42 +09:00
Anshuman Pandey
3fb3baf75d refactor: move product settings page to server components (#679)
* feat: moves edit product name to server component and actions

* feat: moves edit waiting time component to server

* feat: moves product settings to server components

* feat: moves delete product to server components

* fix: fixes delete product

* fix: server fixes

* fix: fixes loading state

* fix: fixes type

* fix: fixes membership types

* fix: fixes

* fix: changes and fixes

* fix build errors

* remove duplicate membership types

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-15 18:26:57 +09:00
Dhruwang Jariwala
e741f7d8e5 refactor: Move Onboarding to server components (#816)
* added data fetching to server side and also added some actions

* made refactors

* replaced router.push with redirect

* updated profileUpdateInput

* move components in components folder

* update import for product update action

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-15 11:58:00 +09:00
Dhruwang Jariwala
041bf36f20 refactor: add proper types to jwt service (#815) 2023-09-15 10:06:41 +09:00
Matti Nannt
4e5c822bec feat: fix prisma accelerate types (#812)
* Fix prisma client types;

* Undo ungraceful changes to the sync route with a more graceful cloud-only fix.

* update prisma runtime
2023-09-14 12:21:21 +09:00
Shubham Palriwala
05be97f43b feat: Introduces Source to the Webhook Overview for automatically created webhooks (#724)
* feat: webhooks now have a source to diff between user and third party

* fix: capitalise first letter of source and increase vertical padding in row

* fix: update webhhok source type in prisma and cleanup services

* combine two migrations into one

* add actions file for webhook UI

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-14 11:33:47 +09:00
ShubhamPalriwala
9c00e7ac20 Merge branch 'shubham/for-1150-validate-survey-editor-forms' of https://github.com/formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-09-14 07:34:49 +05:30
ShubhamPalriwala
4b838b26bc Merge branch 'main' of https://github.com/formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-09-14 07:33:53 +05:30
Matti Nannt
fa0d4ab83c feat: add prisma accelerate support (#810) 2023-09-14 04:02:11 +09:00
Matti Nannt
a60ff93754 temporarily deactivate sync endpoint (#809) 2023-09-14 01:50:33 +09:00
Matti Nannt
1a5e5fc845 make sync endpoint unavailable (#808) 2023-09-14 01:38:51 +09:00
Dhruwang Jariwala
993346b9ae chore: rewrite survey editor to server components (#728)
* created a new service for survey data mutation

* made requested changes

* made some refactors

* ran pnpm format

* removed console logs

* removed some unused code

* made upateSurvey return TSurvey and added laoding state to AddNoCodeActionModal

* fixed minor bugs

* ran pnpm format

* fixed build issues

* Replaced old question types with new types

* fix survey list not up to date on changes

* solved back button issue

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-13 18:30:50 +09:00
Tanmay Banage
ffef88731d fix: Fix string gets converted to date causing validation error (#793) 2023-09-13 13:01:48 +09:00
Dhruwang Jariwala
4f4e95fecb refactor: Added input validation using zod (#790)
* added input validation using zod

* changed console.log to console.error

* fix formatting issues

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-13 12:59:37 +09:00
Anshuman Pandey
50d7c9666c fix: fixes github sign up invite token (#803) 2023-09-13 11:54:40 +09:00
Dhruwang Jariwala
b7a97d9eb1 fix: Stop Sync in formbricks-js after logout() (#806)
* fixes logout() bug

* restored interval time
2023-09-13 11:50:18 +09:00
Anshuman Pandey
c7389ab3c6 fix: multiple smaller bugfixes (#805)
* fix: very small bugs

* fix: fixes white space bug
2023-09-13 11:40:06 +09:00
Piyush Gupta
be5f741ec7 fixed pnpm-lock file 2023-09-13 00:10:31 +05:30
Piyush Gupta
92e2abe6e4 resolved merge conflicts 2023-09-13 00:07:02 +05:30
Piyush Gupta
2cacba0b2f synced with main 2023-09-12 23:54:56 +05:30
Matti Nannt
ff51f2f25d chore: format code and fix lint workflow (#804) 2023-09-12 18:20:09 +09:00
Dhruwang Jariwala
6a88420122 feat: Add Make.com integration (#628)
* added documentation for make.com integration

* ran pnpm format

* update wording in docs

* updated docs for make integration

* updated connect link

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-12 18:05:52 +09:00
Dhruwang Jariwala
1be6deec64 chore: Rewrite environment navbar to server components (#690)
* moved environment navbar to RSC

* added Error component

* format

* update errors path

* use standard services in environment navbar, update product service according to standards, add redirect shortcuts for teams and products

* update analysis github workflow with environment variables

* fix WEBAPP_URL is required

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-12 14:15:03 +09:00
Shubham Palriwala
cbc649111c fix: survey base not set correctly in docker setup (#802) 2023-09-12 13:27:10 +09:00
Shubham Palriwala
60ac49b5c2 fix: webhooks fetch cache is not getting invalidated (#800) 2023-09-11 23:39:51 +09:00
github-actions[bot]
d0310fc243 Release formbricks-js 1.0.6 (#796)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-11 16:06:24 +09:00
Matti Nannt
8efb1054dd fix: issue in responseQueue that could lead to a response sent twice (#795)
* fix: responseQueue may be executed twice

* release new formbricks-js version

* update bundle analysis
2023-09-11 16:03:14 +09:00
Matti Nannt
f1688502a2 chore: Update npm package dependencies (#794)
* upgrade packages

* upgrade packages in demo & formbricks-com

* update web packages
2023-09-11 15:05:55 +09:00
Shubham Palriwala
3a202541d0 remove: @formbricks/errors (#784) 2023-09-11 10:29:12 +09:00
Matti Nannt
686b52fd14 chore: format code based on prettier rules (#792) 2023-09-10 17:15:43 +09:00
Kuluru Vineeth Kumar Reddy
7d11856f14 feat: response notes can now be edited (#716)
* - Feature Enhancement : Edit and Resolve Notes

* Merge branch 'main' of github.com:formbricks/formbricks into feature/updateNote

* update pencil icon

* - added editing the notes functionality in responses

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-10 17:13:59 +09:00
Matti Nannt
ab668c307b fix: link survey responses may fail when custom survey url is set (#791) 2023-09-10 14:33:04 +09:00
Matti Nannt
0a08d7df68 chore: Introduce unified survey UI package @formbricks/surveys (#698)
* add vite survey package

* add renderSurvey method

* add all survey components

* First working version of renderSurvey

* integrate survey package into survey preview

* add survey modal functionality to formbricks-surveys

* fix build errors and add new template types

* add response queue

* add simple formbricks-js integration

* add local state management for surveys

* add local storage to multiple choice and open text questions

* add local state to other question types, layout fixes

* Fix modal close button, clean js package code

* add new calculate progress function

* fix progressbar on thankyou card

* fix churn survey branching in demo product

* use tsup to bundle @formbricks/js

* update survey positioning in link surveys

* fix preview reset button in link survey

* change logic for progress bar

* update progressbar logic

* update spacing

* add conditional autofocus / disable for iframe

* add userId to link survey

* integrated email verification

* moved token verification and reading to server component

* ran pnpm format

* added question prefilling

* ran pnpm format

* Moved question prefilling logic to Link Survey

* Refactor types

* centralize survey package props, fix build errors

* fix userId in link survey

* fix survey closed message

* add redirect on complete, fix bugs

* smaller bugfixes

* smaller bugfixes

* fix bugs

* fix build errors

* remove logs

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
2023-09-10 14:06:55 +09:00
Piyush Gupta
5cb31fbe2a feat: added embed survey modal 2023-09-10 02:01:30 +05:30
Matti Nannt
bf6ed3576c feat: Add option to customize link survey url using NEXT_PUBLIC_SURVEY_BASE_URL (#787) 2023-09-08 14:01:56 +09:00
Johannes
38092f8a7c fix: (docs) n8n page heading bug and responsiveness issues
fix: (docs) n8n page heading bug and responsiveness issues
2023-09-07 18:57:32 +02:00
ShubhamPalriwala
d290b6e011 fix: (docs) n8n page heading bug and responsiveness issues 2023-09-07 21:55:05 +05:30
Shubham Palriwala
c901ab13f5 fix: build error in formbricks-com when STRAPI_API_KEY not set (#785) 2023-09-07 23:21:24 +09:00
Shubham Palriwala
ae5d3f8e71 Merge branch 'main' into shubham/for-1150-validate-survey-editor-forms 2023-09-07 00:21:26 +05:30
ShubhamPalriwala
50369afd85 fix: only highlight the incorrect choice in multi 2023-09-07 00:20:23 +05:30
ShubhamPalriwala
e49cfca56a fix: dont allow is skipped on reqd question, and show approporiate toast error 2023-09-07 00:13:58 +05:30
ShubhamPalriwala
284361aaba fix: corner cases for new option empty and duplicates in single and multi select 2023-09-06 23:33:15 +05:30
Dhruwang Jariwala
0a1de196aa chore: moves setup checklist to react server components (#695)
* Chore: moves setup checklist to RSC

* fix other merge conflictsg

* made code refactors

* added TAction as return type for getActions

* fixed build issues

* fix environmentNotice component

* refactor EnvironmentNotice component

* fix js tests

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-06 15:18:49 +09:00
Shubham Palriwala
b0d7bd8686 feat: add email setup to single script prod setup (#752) 2023-09-06 13:32:46 +09:00
Dhruwang Jariwala
6a121680ba feat: Add ability to change back button label (#753)
* adds back button label adjust

* update wording

* made some refactors

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Dhruwang Jariwala <dhruwang@Dhruwangs-MacBook-Pro.local>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-06 13:29:44 +09:00
Shubham Palriwala
edc8870e09 chore: Add Missing Environment Variables in Documentation (#754)
* fix: remove unused stripe_public_key env var

* feat: include all possible env vars in documentation

* update enviroment variables in docs

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-06 13:26:28 +09:00
github-actions[bot]
bd84cdf532 chore: Release formbricks-js 1.0.5 (#781)
* Version Packages

* ignore formbricks-web in changeset

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-06 12:48:13 +09:00
Matti Nannt
bea1f99374 chore: Prepare release of formbricks-js 1.0.5 (#780) 2023-09-06 12:39:46 +09:00
Shubham Palriwala
713753cdf8 fix: array nullity checks in js packages leads to unpredicted error message (#771) 2023-09-06 10:37:43 +09:00
Shubham Palriwala
e8b54dd3ae fix: Generalise login error messages to prevent user account enumeration (#772) 2023-09-06 10:35:45 +09:00
RafalAtGaragenet
36bd14e4f6 fix: Null pointer expection for multiple choice question on web-app form (#770) 2023-09-06 10:31:34 +09:00
Johannes
5b704b536d refactor: Solve confusion around dev/prod API Keys
refactor: Solve confusion around dev/prod API Keys
2023-09-05 20:46:44 +02:00
Johannes
c2d3d6889f always show notice 2023-09-05 20:32:32 +02:00
Johannes
4490d2a2f5 Merge branch 'main' of github.com:formbricks/formbricks into prod-dev-apikey 2023-09-05 20:16:43 +02:00
Johannes
1b407a9fb4 fix: document People and Display APIs
fix: document People and Display APIs
2023-09-05 19:44:32 +02:00
Dhruwang
6ab89fa054 moved environmentNotice to shared component and made some refactors 2023-09-05 20:03:04 +05:30
Matti Nannt
b174afc1c6 fix: eslint in pre-commit hook failed (#776) 2023-09-05 16:45:42 +09:00
Dhruwang
59af9c9905 API key check 2023-09-05 11:17:35 +05:30
Matti Nannt
2e727a418c fix: Update n8n-node dependencies (#774) 2023-09-05 14:37:22 +09:00
Matti Nannt
5a457ef627 Increase turborepo concurrency level (#773) 2023-09-05 14:10:51 +09:00
ShubhamPalriwala
4320e36ed3 fix: entire questions get red when a field is invalid, now only the field gets red unless trying to save 2023-09-04 18:46:18 +05:30
ShubhamPalriwala
796ba307f0 fix: document missing APIs 2023-09-04 16:24:13 +05:30
Johannes
877ab1fd39 Update wording 2023-09-04 11:15:57 +02:00
Johannes
f75b74d38e Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-09-04 10:37:48 +02:00
Matti Nannt
1c7ca87439 Improve developer experience by analyzing PRs automatically using Github Actions (#768)
* Improve developer experience by analyzing PRs automatically using Github actions

* update docker workflow base images

* use ubuntu latest image

* move issue label action to workflow dir
2023-09-04 17:05:30 +09:00
dependabot[bot]
65e1a418f7 Bump semver from 5.7.1 to 5.7.2 (#737)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 16:56:02 +09:00
Matti Nannt
8a46b2c4be Add Pre-Commit Hook for linting & formatting (#767)
* add pre-commit hook for linting & formatting

* add husky

* update n8n package json, update package-lock file
2023-09-04 15:45:18 +09:00
github-actions[bot]
5e640b1c54 Release Formbricks n8n package (#766)
* Version Packages

* add n8n package to release pipeline

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-04 14:24:07 +09:00
Pratik
aa79c4c319 Add n8n Integration to Formbricks (#733)
* add n8n integration

* add n8n inside packages

* added documentation for n8n setup

* add formbricks scope to package

* add changeset config for automatic package deployment

* remove old docs navigation

* add new package README

* update prettier config & reformat

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-04 12:14:31 +09:00
Sital Adhikari
caa6979a1d Fix some images break the layout on formbricks-com (#765) 2023-09-04 10:59:25 +09:00
Dhruwang Jariwala
b00beadf2e Add Email Verification option to Link Surveys (#762)
* completed frontend

* Adds email verifaction for Link Surveys

* remove console.log

* run pnpm format

* rename userId to verify

* add loading state

* fix type names

* add types to prisma

---------

Co-authored-by: Dhruwang Jariwala <dhruwang@Dhruwangs-MacBook-Pro.local>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-09-02 15:34:00 +09:00
Shubham Palriwala
eae8e2db24 Add API documentation for Surveys & Profile Management API (#761) 2023-09-01 23:44:15 +09:00
ShubhamPalriwala
941527151f fix: multi option multi choose can now not have same options 2023-09-01 16:53:50 +05:30
ShubhamPalriwala
59fb26a6fa fix: setting duplicate question Ids now does not set random ID when click saved, the user has to update it 2023-09-01 16:27:29 +05:30
Johannes
5db306600b Mention Editing Build-time Variables in deployment Guides
Mention Editing Build-time Variables in deployment Guides
2023-09-01 10:11:19 +02:00
ShubhamPalriwala
632bab40f3 fix: user cannot select a skipped logic for a required question 2023-09-01 12:52:03 +05:30
Johannes
d21fd629e6 Update Career wording
Update Career wording
2023-08-31 17:58:33 +02:00
Johannes
2df31fbb07 update wording 2023-08-31 17:57:35 +02:00
ShubhamPalriwala
cc9142e89b fix: user can now cannot 2 exactly same logic conditions 2023-08-31 21:08:56 +05:30
ShubhamPalriwala
bca1e0e926 fix: not allow new logic jump until previous filled & do not allow saving survey until atleast 2 fields are filled 2023-08-31 20:57:45 +05:30
ShubhamPalriwala
17406a0dd4 feat: mention about editing build time variables in all deployment guides 2023-08-31 20:11:13 +05:30
Johannes
908b9d0ae4 update job description
update job description
2023-08-31 15:40:35 +02:00
Johannes
885fe10dc5 update job description 2023-08-31 15:40:00 +02:00
Johannes
5b1eecc71e Remove inline comment for smtp_port to avoid docker build failure
Remove inline comment for smtp_port to avoid docker build failure
2023-08-31 10:05:59 +02:00
Johannes
8156a759fc Add Rivet to OSS Friends
Add Rivet to OSS Friends
2023-08-31 08:39:03 +02:00
Nathan Flurry
50bb510ae4 Add Rivet 2023-08-30 22:27:22 +00:00
Johannes
775a4e74b4 Replace Logo in readme
Replace Logo in readme
2023-08-30 16:59:26 +02:00
Johannes
9c2e26c5b4 Replace Logo
Replace Logo
2023-08-30 16:58:44 +02:00
Johannes
b21bc607e7 Integrate Docs with Example Repo and Minor Bug Fixes
Integrate Docs with Example Repo and Minor Bug Fixes
2023-08-30 16:48:33 +02:00
Johannes
5f102c3c3d Merge branch 'main' of github.com:formbricks/formbricks into shubham/docs-add-example-link-and-quick-fixed 2023-08-30 16:47:18 +02:00
Johannes
2320947d9d tweak UX of card 2023-08-30 16:44:44 +02:00
Johannes
3a3f0fa08c Validate URL on Redirection to avoid breaking app
Validate URL on Redirection to avoid breaking app
2023-08-30 15:58:58 +02:00
ShubhamPalriwala
23c388185e fix: validate url on redirection to avoid breaking app 2023-08-30 18:18:17 +05:30
ShubhamPalriwala
78bb8a005e fix: add link to examples, fix heading white in light mode, update docs as per poc built in examples repo 2023-08-30 17:09:10 +05:30
Johannes
d97df9a6e7 Harmonize href in OSS Friends
Harmonize href in OSS Friends
2023-08-30 11:37:45 +02:00
Johannes
bddc8137a3 Careers page + UI Tweaks in SEO Content
Careers page + UI Tweaks in SEO Content
2023-08-30 11:35:45 +02:00
Johannes
0164b4fbde increase header text sizes 2023-08-30 11:30:56 +02:00
Johannes
288ec89d93 release careers page 2023-08-30 10:57:02 +02:00
ShubhamPalriwala
b7d4885e51 fix: long single word was overflowing the thank you card 2023-08-30 13:11:24 +05:30
Thomas Kaul
1c66ccb713 Harmonize href in OSS Friends 2023-08-29 22:39:28 +02:00
Eder Silva
0ab70a8e69 Update .env.docker
removed inline comment for smtp_port to avoid build failure
2023-08-29 15:07:29 -03:00
ShubhamPalriwala
00494a7093 fix: multi option single choose can now not have same options 2023-08-29 23:08:09 +05:30
ShubhamPalriwala
6dfc75a4ce fix: consent question's checkbox should now have some text or default text mandatory 2023-08-29 19:42:17 +05:30
ShubhamPalriwala
c10854523d fix: it is now not allowed to save/publish a survey with 0 responses 2023-08-29 19:16:42 +05:30
Johannes
79e66ee408 fix: CTA question link UX
fix: CTA question link UX
2023-08-28 21:35:34 +02:00
Johannes
7b2a1c1de3 Fix Docs Tailwind Config
Fix Docs Tailwind Config
2023-08-28 20:52:53 +02:00
Dhruwang
7c12053a44 fix: CTA question link UX 2023-08-28 23:10:26 +05:30
ShubhamPalriwala
9e7b897e7c Merge branch 'main' of https://github.com/formbricks/formbricks into shubham/fix-docs-tailwind-bug 2023-08-28 22:07:03 +05:30
ShubhamPalriwala
25fcac72d8 fix: tailwind imports that were causing prod issues 2023-08-28 22:04:22 +05:30
Johannes
6c29d323d1 Migration of Docs to Protocol Template
Migration of Docs to Protocol Template
2023-08-28 17:25:41 +02:00
ShubhamPalriwala
3ddb65cd71 Merge branch 'feature/new-docs' of https://github.com/formbricks/formbricks into feature/new-docs 2023-08-28 20:34:30 +05:30
ShubhamPalriwala
2039641bae fix: zinc to slate, lighter heading and page titles 2023-08-28 20:34:24 +05:30
Johannes
bc4cfabfde Merge branch 'main' of github.com:formbricks/formbricks into feature/new-docs 2023-08-28 15:53:12 +02:00
Johannes
bb9e4521f9 Add CTA to SEO pages + meta data update
Add CTA to SEO pages + meta data update
2023-08-28 15:44:53 +02:00
Johannes
480461f727 update concierge, add canonical tag 2023-08-28 15:39:32 +02:00
Johannes
a90156e161 add CTA banner 2023-08-28 15:01:59 +02:00
Matthias Nannt
8e1018dd6a fix long loading time, fix typescript errors 2023-08-26 10:42:21 +02:00
Matthias Nannt
4734a1d369 Merge branch 'main' of github.com:formbricks/formbricks into feature/new-docs 2023-08-25 16:15:49 +02:00
ShubhamPalriwala
9edf9955ae minor final fixes 2023-08-25 19:11:19 +05:30
Matthias Nannt
fb6cc1253f update page navigation 2023-08-25 15:26:59 +02:00
Matthias Nannt
5260316d34 fix formatting issues 2023-08-25 14:52:36 +02:00
Matthias Nannt
31dc1c8e3f merge changes 2023-08-25 14:16:21 +02:00
Matthias Nannt
fb16735c12 upate packages, doc titles 2023-08-25 14:15:00 +02:00
ShubhamPalriwala
524916c20c chore: restructure api docs and rewrite framework-guides 2023-08-25 17:42:49 +05:30
Matthias Nannt
544b7b401f reformat formbricks-com 2023-08-25 11:55:37 +02:00
Matthias Nannt
c636f1d40e Merge branch 'feature/new-docs' of github.com:formbricks/formbricks into feature/new-docs 2023-08-25 11:55:09 +02:00
Matthias Nannt
cc7da7b629 fix newsletter input css 2023-08-25 11:54:58 +02:00
Matthias Nannt
06474f9e8e fix blog page not loading properly 2023-08-25 11:54:38 +02:00
ShubhamPalriwala
2eb28feb98 feat: restructure multiple setup guides into one 2023-08-25 14:53:37 +05:30
Matthias Nannt
763db0a674 Merge branch 'feature/new-docs' of github.com:formbricks/formbricks into feature/new-docs 2023-08-25 10:32:42 +02:00
Matthias Nannt
5cca9a9ee9 change gettings started structure 2023-08-25 10:32:38 +02:00
ShubhamPalriwala
53721169e8 fix: docs feedbac preview does not send data to backend now, redirect url fixed, and /docs now takes to intro page 2023-08-25 13:58:27 +05:30
Matthias Nannt
f9bb0dec3c fix section navigation 2023-08-25 09:58:24 +02:00
Matthias Nannt
ea3fb45e6e fix dead quickstart links 2023-08-25 09:35:53 +02:00
Johannes
16493c9431 Add Missing Dev Mode Navbar in Survey Editor
Add Missing Dev Mode Navbar in Survey Editor
2023-08-25 08:40:25 +02:00
Johannes
4f3ec888ec Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1147-youre-in-dev-mode-bar-missing-in-survey-editor 2023-08-25 08:39:20 +02:00
Johannes
e04cab6b7f Add Spark Framework to OSS Friends array.
Add Spark Framework to OSS Friends array.
2023-08-25 08:26:20 +02:00
ShubhamPalriwala
fbd42a572e feat: dev mode navbar in surveyEditor 2023-08-25 11:14:33 +05:30
Weston Walker
f2d2938672 Update index.ts
Added spark framework OS project.
2023-08-24 11:02:18 -05:00
ShubhamPalriwala
49f48cf7e0 fix: update layout metadata 2023-08-24 17:09:07 +05:30
ShubhamPalriwala
a74037dca1 Merge branch 'main' of https://github.com/formbricks/formbricks into feature/new-docs 2023-08-24 17:05:25 +05:30
ShubhamPalriwala
0a5d458b96 fix: make images responsive 2023-08-24 16:53:25 +05:30
Dhruwang Jariwala
9f6c40fd42 Rewrite Billing page to React Server Components and new type system (#701)
* Moved billing page to RSC

* removed unused props

* ran pnpm format

* fix build error

* add 404 page, throw 404 on billing page when !IS_FORMBRICKS_CLOUD

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-08-24 11:45:02 +02:00
ShubhamPalriwala
eea7fbbb5c rewrite: hosting/prod page 2023-08-24 15:12:38 +05:30
ShubhamPalriwala
d20b713d18 chore: restructure existing self hosting docs 2023-08-24 14:23:46 +05:30
Shubham Palriwala
317a5463e9 Revamp No-Code-Options: You can now target a combination of conditions (e.g. a specific button on a specific page) (#691)
* feat: revamp nocode action across frontend, backend, and js lib

* fix: remove console warning for ref forwarding

* feat: make advancedToggle component and use it across

* feat: use advancedToggle all across survey editor

* feat: use advancedToggle all across survey editor for link surveys

* remove: unused imports

* ui tweaks

* fix: form registration

* chore: advancedOptionToggle now has grey box inside the div

* fix: handle multiple css selectors separately

* test no code demo app

* replace logout with reset in demo apps

---------

Co-authored-by: Johannes <johannes@formbricks.com>
2023-08-24 10:27:41 +02:00
ShubhamPalriwala
ec7a1276fd chore: replace png with webpack images 2023-08-24 13:45:04 +05:30
ShubhamPalriwala
0efded57de fix: update doc pages as per main, add code layouts, introduce framework overview 2023-08-24 13:13:08 +05:30
ShubhamPalriwala
809bf1207b fix: quick resources as per analytics 2023-08-23 21:33:23 +05:30
Johannes
debf8433d0 Update docs with a new improved Quickstart guide (#725)
* update quickstart

* update quickstart and add react

* add screenshot

* update images and comments

* added image

* fill placeholder

* fix build error

* updating wording

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-08-23 16:25:50 +02:00
ShubhamPalriwala
79ea40c742 Merge branch 'feature/new-docs' of https://github.com/formbricks/formbricks into feature/new-docs 2023-08-23 19:13:42 +05:30
ShubhamPalriwala
d96ab91c6e feat: migration to new docs 2023-08-23 19:13:20 +05:30
M. Palanikannan
8ad4ba0f77 Add Gitpod support to the Formbricks Repo (#718)
* Initialized Gitpod tested scripts

* ignored ports 1025 and 8025

* added website dev environment

* removed api and error tasks and prioritized web task to be shown first
2023-08-23 12:10:07 +02:00
Matti Nannt
2a60e8f464 Fix Link Survey also showing for In-Product Surveys (#727) 2023-08-22 17:14:03 +02:00
Matti Nannt
4562d85974 Fix Link Survey not pulling the right product (#726) 2023-08-22 17:07:05 +02:00
Matthias Nannt
81652b445b fix font on mainpage 2023-08-22 16:13:14 +02:00
Johannes
75ac56ff3b fixy thingys 2023-08-22 15:20:43 +02:00
Matthias Nannt
b0e42e00e9 add missing lib files 2023-08-22 14:45:11 +02:00
Matthias Nannt
8c229e4685 remove old formbricks-com 2023-08-22 14:38:52 +02:00
Matthias Nannt
80c64f2bf5 add components, images and pages 2023-08-22 14:25:06 +02:00
Matthias Nannt
c8f88fa4b2 move docs to subfolder 2023-08-22 14:07:45 +02:00
Matthias Nannt
e636bb4116 move docs to subfolder 2023-08-22 14:07:25 +02:00
Matthias Nannt
7ce8d75d91 add new template 2023-08-22 13:58:23 +02:00
Johannes
6538f8abdc UI: Responsiveness of Settings Menu
UI: Responsive of Settings Menu
2023-08-22 11:14:34 +02:00
Johannes
9a6997a3bb Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1142-create-responsive-menu-for-settings 2023-08-22 11:10:45 +02:00
Johannes
f8f0bb5f13 responsiveness tweaks 2023-08-22 11:10:26 +02:00
ShubhamPalriwala
2b7ec57722 fix: setting pages responsiveness bugs 2023-08-21 23:11:24 +05:30
Johannes
34ca2953d2 Remove zero width characters
Remove zero width characters
2023-08-21 15:58:32 +02:00
Johannes
03144164e9 Add Ghostfolio to OSS Friends
Add Ghostfolio to OSS Friends
2023-08-21 15:57:10 +02:00
Johannes
bed70be938 fix: Button descendent of button error
fix: Button descendent of button error
2023-08-21 15:52:45 +02:00
Matti Nannt
ba68c6d85d Improve loading time of person detail page (#723) 2023-08-21 13:40:40 +02:00
Matti Nannt
683ca1acec Fix old survey data shown in survey overview (#722) 2023-08-21 12:20:38 +02:00
ShubhamPalriwala
4cf7c84abe feat: responsive settings menu for mobile screens 2023-08-21 15:22:54 +05:30
Matti Nannt
4de85eb365 Add jsVersion & sessionCreated event to Telemetry (#720) 2023-08-21 11:30:00 +02:00
Matti Nannt
754bdfbca7 Move Telemetry events to services and limit events to surveyCreated and responseCreated (#719) 2023-08-21 09:47:06 +02:00
joyal007
e7c863d3ae fixed err in mobile view 2023-08-19 19:44:51 +05:30
joyal007
51430b7f5a Merge branch 'main' of https://github.com/joyal007/formbricks into fix/button-desc-error 2023-08-19 19:09:48 +05:30
joyal007
692c56226d fixed button descendent on button error 2023-08-19 19:08:58 +05:30
Thomas Kaul
503afbafb6 Add Ghostfolio
See https://ghostfol.io/en/about/oss-friends
2023-08-19 12:16:04 +02:00
Thomas Kaul
da27af39ec Remove zero width characters 2023-08-19 12:11:13 +02:00
Matti Nannt
0e19044b7f Add Formbricks version number to Setup Checklist (#712) 2023-08-19 09:18:39 +02:00
Matti Nannt
6b462504f6 Fix build errors in formbricks-com (#710)
* Fix build errors in formbricks-com'

* run pnpm format
2023-08-18 16:05:12 +02:00
Johannes
944bdc1e8e Add usagebased attributes to Formbricks
Add usagebased attributes to Formbricks
2023-08-18 15:11:18 +02:00
Johannes
72dcc66811 resolved comments 2023-08-18 15:10:15 +02:00
Johannes
b141a38e03 Merge branch 'main' of github.com:formbricks/formbricks into more-formbricks-in-formbricks 2023-08-18 15:08:19 +02:00
Johannes
0417320eb0 UI: Replace Static Truncate fn with Tailwind truncate class
UI: Replace Static Truncate fn with Tailwind truncate class
2023-08-18 15:06:32 +02:00
Johannes
0c19664bf5 update wording 2023-08-18 15:05:34 +02:00
Johannes
908350aa22 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1153-truncate-dynamically-in-logic-editor 2023-08-18 14:31:33 +02:00
Matti Nannt
09b730bc0f Update lock file (#709) 2023-08-18 09:04:09 +02:00
Johannes
d2916c7878 UI fixes in Survey Editor
UI fixes in Survey Editor
2023-08-17 17:50:11 +02:00
Johannes
435eb75714 Log Survey Count & Names on Sync in JS widget
Log Survey Count & Names on Sync in JS widget
2023-08-17 17:45:44 +02:00
Johannes
551459a7c5 Add Strapi as CMS for SEO content
Add Strapi as CMS for SEO content
2023-08-17 17:39:42 +02:00
Johannes
6b79e8a888 fix packages 2023-08-17 17:36:14 +02:00
Johannes
dd43a55e20 remove unfinished template subpage 2023-08-17 16:57:40 +02:00
Johannes
c667b7d949 remove logs 2023-08-17 16:53:58 +02:00
ShubhamPalriwala
70c26af79c feat: use native tailwind dynamic truncate 2023-08-17 14:17:42 +05:30
ShubhamPalriwala
0d5af6b44d feat: responses already recd warning and survey preview padding 2023-08-17 13:08:50 +05:30
ShubhamPalriwala
60d3036ca1 feat: log survey count and names in js widget 2023-08-17 11:13:28 +05:30
Johannes
4362ef9ed4 data model tweaks 2023-08-16 16:37:02 +02:00
Johannes
a0ff35ed86 new data model, faq data, new image host 2023-08-16 13:21:43 +02:00
Johannes
e25d4e9a21 Merge branch 'main' of github.com:formbricks/formbricks into Rewrite-Link-Surveys-to-RSC 2023-08-16 13:20:05 +02:00
Dhruwang Jariwala
15fde11804 Use Server Components for Link Survey to improve loading speed (#676)
* moved link LinkSurvey to RSC

* made some code refactors

* made requested changes

* ran pnpm build and added configured inactive survey

* fixed a build issue

* made some code refactors

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-08-16 10:56:15 +02:00
Johannes
de90e10b91 Add Loading State to Action Delete & Person Delete Buttons
Add Loading State to Action Delete & Person Delete Buttons
2023-08-16 09:24:38 +02:00
Johannes
5453b2fb31 add usage based attributes 2023-08-15 17:13:44 +02:00
Johannes
1764cb5f1e add name as attribute 2023-08-15 16:17:55 +02:00
Matti Nannt
0659343a0b Fix zod types interfer with zapier integration (#697) 2023-08-15 15:49:48 +02:00
Johannes
1b64fd32b3 Add explainer note to demo app env example
Add explainer note to demo app env example
2023-08-15 14:12:56 +02:00
Johannes
52896d490a Add explainer note to demo app env example
Add explainer note to demo app env example
2023-08-15 14:12:03 +02:00
ShubhamPalriwala
fba2d1def9 feat: loader in deleteAction 2023-08-15 14:20:59 +05:30
ShubhamPalriwala
be4f96bb18 feat: loader in deletePerson 2023-08-15 14:12:35 +05:30
Johannes
252a6236dc Fix: Button Alignment in widget and Demo App Responsiveness
Fix: Button Alignment in widget and Demo App Responsiveness
2023-08-15 10:33:08 +02:00
Johannes
7c845202b2 responsiveness demo app 2023-08-15 10:31:07 +02:00
Dhruwang
eb41e4a419 fix: left align issue 2023-08-15 10:41:30 +05:30
github-actions[bot]
8a0f7fde3d Release formbricks-js 1.0.4 (#689)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-14 12:29:23 +02:00
Matti Nannt
01523393db Convert all attributes and userIds to string in formbricks-js (#688)
* convert any attribute input to string in formbricks-js

* add changeset, increase patch version of formbricks-js
2023-08-14 12:26:40 +02:00
Johannes
534dd5050d Make Survey Summary Page and Several Other Pages Responsive
Make Survey Summary Page and Several Other Pages Responsive
2023-08-14 11:12:48 +02:00
Johannes
a3e1e0498d fix restart UI 2023-08-14 11:11:50 +02:00
Johannes
beadbfa4b9 attributes and people page responsiveness 2023-08-14 10:53:35 +02:00
Johannes
a3162150a6 survey list and editor mobile tweaks 2023-08-14 10:43:30 +02:00
Johannes
1c6a5b2685 Add Loader in Product Delete button and tweak Weekly Summary UI
Add Loader in Product Delete button and tweak Weekly Summary UI
2023-08-14 10:33:56 +02:00
Johannes
9c8141abb2 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1124-responsiveness-create-a-mobile-friendly-version-of-all-data 2023-08-14 10:23:16 +02:00
Johannes
88c17546b7 add font weight bold to weekly summary 2023-08-14 10:20:53 +02:00
Johannes
ccfc85f4fa Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1122-tweak-add-loading-state-to-delete-button-in-delete-product 2023-08-14 10:15:29 +02:00
Johannes
d9839aba24 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1122-tweak-add-loading-state-to-delete-button-in-delete-product 2023-08-14 10:14:16 +02:00
Johannes
14a6cba3f4 Merge branch 'main' of github.com:formbricks/formbricks into lp/strapi 2023-08-14 10:13:35 +02:00
Matti Nannt
d83c530012 Remove responses limit for link surveys on free plan (#686) 2023-08-14 09:50:58 +02:00
ShubhamPalriwala
8716367ec1 ui: data comps of survey summary are now responsive 2023-08-14 13:09:17 +05:30
ShubhamPalriwala
dcffb8106e feat: loader in product delete button 2023-08-13 09:54:10 +05:30
Johannes
004e524002 Merge branch 'main' of github.com:formbricks/formbricks into lp/strapi 2023-08-11 14:17:10 +02:00
Johannes
2815ab2175 first article 2023-08-11 08:52:26 +02:00
Johannes
b96fbf06d9 update new blog 2023-08-10 12:56:34 +02:00
Johannes
c261c63f43 Merge branch 'main' of github.com:formbricks/formbricks into lp/strapi 2023-08-10 09:58:04 +02:00
Johannes
d065817ba3 fix build error 2023-08-08 11:04:08 +02:00
Johannes
997f85bf32 update formatting 2023-08-08 11:04:08 +02:00
Piyush Gupta
81ee4ade1e fix: added loading states in CTA 2023-08-08 11:04:08 +02:00
Piyush Gupta
a2c07d3be7 added loading in transfer ownership CTA 2023-08-08 11:04:08 +02:00
Piyush Gupta
4a09253234 refactor: used isOwner in delete team 2023-08-08 11:04:08 +02:00
Piyush Gupta
a2f6677b54 fix: independent queries -> Txn 2023-08-08 11:04:08 +02:00
Piyush Gupta
0039647718 feat: added transfer ownership 2023-08-08 11:04:08 +02:00
Piyush Gupta
7e27730447 feat: added leave team 2023-08-08 11:04:08 +02:00
Piyush Gupta
c22158515d feat: added delete team functionality 2023-08-08 11:04:08 +02:00
Piyush Gupta
b8176ce800 feat: added delete card and modal 2023-08-08 11:04:08 +02:00
Johannes
f8cd9dbb00 Merge branch 'main' of github.com:formbricks/formbricks into lp/strapi 2023-08-07 21:37:52 +02:00
Johannes
d780ae1e59 strapi setup working 2023-08-05 15:28:55 +02:00
1732 changed files with 68097 additions and 37976 deletions

View File

@@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@formbricks/formbricks-com", "@formbricks/demo"]
"ignore": ["@formbricks/formbricks-com", "@formbricks/demo", "@formbricks/web"]
}

View File

@@ -1,103 +0,0 @@
########################################################################
# ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------#
########################################################################
############
# BASICS #
############
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
##############
# DATABASE #
##############
DATABASE_URL='postgresql://postgres:postgres@postgres:5432/formbricks?schema=public'
# Uncomment to enable a dedicated connection pool for Prisma using Prisma Data Proxy
# Cold boots will be faster and you'll be able to scale your DB independently of your app.
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
# PRISMA_GENERATE_DATAPROXY=true
PRISMA_GENERATE_DATAPROXY=
###############
# NEXT AUTH #
###############
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
# You can use: `openssl rand -base64 32` to generate one
NEXTAUTH_SECRET=RANDOM_STRING
# Set this to your public-facing URL, e.g., https://example.com
# You do not need the NEXTAUTH_URL environment variable in Vercel.
NEXTAUTH_URL=http://localhost:3000
# If you encounter NEXT_AUTH URL problems this should always be localhost:3000 (or whatever port your app is running on)
# NEXTAUTH_URL_INTERNAL=http://localhost:3000
################
# MAIL SETUP #
################
# Necessary if email verification and password reset are enabled.
# See optional configurations below if you want to disable these features.
# MAIL_FROM=noreply@example.com
# SMTP_HOST=localhost
# SMTP_PORT=1025
# Enable SMTP_SECURE_ENABLED for TLS (port 465)
# SMTP_SECURE_ENABLED=0 # Enable for TLS (port 465)
# SMTP_USER=smtpUser
# SMTP_PASSWORD=smtpPassword
########################################################################
# ------------------------------ OPTIONAL -----------------------------#
########################################################################
# Uncomment the variables you would like to use and customize the values.
#####################
# Disable Features #
#####################
# Email Verification. If you enable Email Verification you have to setup SMTP-Settings, too.
NEXT_PUBLIC_EMAIL_VERIFICATION_DISABLED=1
# Password Reset. If you enable Password Reset functionality you have to setup SMTP-Settings, too.
NEXT_PUBLIC_PASSWORD_RESET_DISABLED=1
# Signup. Disable the ability for new users to create an account.
# NEXT_PUBLIC_SIGNUP_DISABLED=1
# Team Invite. Disable the ability for invited users to create an account.
# NEXT_PUBLIC_INVITE_DISABLED=1
##########
# Other #
##########
# Display privacy policy, imprint and terms of service links in the footer of signup & public pages.
NEXT_PUBLIC_PRIVACY_URL=
NEXT_PUBLIC_TERMS_URL=
NEXT_PUBLIC_IMPRINT_URL=
# Disable Sentry warning
SENTRY_IGNORE_API_RESOLUTION_ERROR=1
# Enable Sentry Error Tracking
NEXT_PUBLIC_SENTRY_DSN=
# Configure Github Login
NEXT_PUBLIC_GITHUB_AUTH_ENABLED=0
GITHUB_ID=
GITHUB_SECRET=
# Configure Google Login
NEXT_PUBLIC_GOOGLE_AUTH_ENABLED=0
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Cron Secret
CRON_SECRET=

View File

@@ -1,3 +1,4 @@
/*
########################################################################
# ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------#
########################################################################
@@ -7,7 +8,16 @@
# BASICS #
############
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
WEBAPP_URL=http://localhost:3000
# Set this if you want to have a shorter link for surveys
SHORT_URL_BASE=
# Encryption keys
# Please set both for now, we will change this in the future
# You can use: `openssl rand -hex 32` to generate one
ENCRYPTION_KEY=
##############
# DATABASE #
@@ -15,27 +25,18 @@ NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
DATABASE_URL='postgresql://postgres:postgres@localhost:5432/formbricks?schema=public'
# Uncomment to enable a dedicated connection pool for Prisma using Prisma Data Proxy
# Cold boots will be faster and you'll be able to scale your DB independently of your app.
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
# PRISMA_GENERATE_DATAPROXY=true
PRISMA_GENERATE_DATAPROXY=
###############
# NEXT AUTH #
###############
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
# You can use: `openssl rand -base64 32` to generate one
# You can use: `openssl rand -hex 32` to generate one
NEXTAUTH_SECRET=RANDOM_STRING
# Set this to your public-facing URL, e.g., https://example.com
# You do not need the NEXTAUTH_URL environment variable in Vercel.
NEXTAUTH_URL=http://localhost:3000
# If you encounter NEXT_AUTH URL problems this should always be localhost:3000 (or whatever port your app is running on)
# NEXTAUTH_URL_INTERNAL=http://localhost:3000
################
# MAIL SETUP #
################
@@ -63,39 +64,50 @@ SMTP_PASSWORD=smtpPassword
#####################
# Email Verification. If you enable Email Verification you have to setup SMTP-Settings, too.
# NEXT_PUBLIC_EMAIL_VERIFICATION_DISABLED=1
# EMAIL_VERIFICATION_DISABLED=1
# Password Reset. If you enable Password Reset functionality you have to setup SMTP-Settings, too.
# NEXT_PUBLIC_PASSWORD_RESET_DISABLED=1
# PASSWORD_RESET_DISABLED=1
# Signup. Disable the ability for new users to create an account.
# NEXT_PUBLIC_SIGNUP_DISABLED=1
# SIGNUP_DISABLED=1
# Team Invite. Disable the ability for invited users to create an account.
# NEXT_PUBLIC_INVITE_DISABLED=1
# INVITE_DISABLED=1
##########
# Other #
##########
# Display privacy policy, imprint and terms of service links in the footer of signup & public pages.
NEXT_PUBLIC_PRIVACY_URL=
NEXT_PUBLIC_TERMS_URL=
NEXT_PUBLIC_IMPRINT_URL=
PRIVACY_URL=
TERMS_URL=
IMPRINT_URL=
# Configure Github Login
NEXT_PUBLIC_GITHUB_AUTH_ENABLED=0
GITHUB_AUTH_ENABLED=0
GITHUB_ID=
GITHUB_SECRET=
# Configure Google Login
NEXT_PUBLIC_GOOGLE_AUTH_ENABLED=0
GOOGLE_AUTH_ENABLED=0
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Configure Azure Active Directory Login
AZUREAD_AUTH_ENABLED=0
AZUREAD_CLIENT_ID=
AZUREAD_CLIENT_SECRET=
AZUREAD_TENANT_ID=
AZURE_DIRECT_REDIRECT=0
# Cron Secret
CRON_SECRET=
# Configure this when you want to ship JS & CSS files from a complete URL instead of the current domain
# ASSET_PREFIX_URL=
# Stripe Billing Variables
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
@@ -104,5 +116,15 @@ NEXT_PUBLIC_FORMBRICKS_API_HOST=
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=
NEXT_PUBLIC_FORMBRICKS_ONBOARDING_SURVEY_ID=
# Cron Secret
CRON_SECRET=
# Oauth credentials for Google sheet integration
GOOGLE_SHEETS_CLIENT_ID=
GOOGLE_SHEETS_CLIENT_SECRET=
GOOGLE_SHEETS_REDIRECT_URL=
# Oauth credentials for Airtable integration
AIRTABLE_CLIENT_ID=
# Enterprise License Key
ENTERPRISE_LICENSE_KEY=
*/

View File

@@ -4,42 +4,45 @@ title: "[FEATURE]"
labels: enhancement
assignees: []
body:
- type: textarea
id: problem-description
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution-description
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: alternate-solution-description
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
- type: markdown
id: formbricks-info
attributes:
value: |
### How we code at Formbricks 🤓
- type: textarea
id: problem-description
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution-description
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: alternate-solution-description
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
- type: markdown
id: formbricks-info
attributes:
value: |
### How we code at Formbricks 🤓
- Everything is type-safe
- All UI components are in the package `formbricks/ui`
- Run `pnpm dev` to find a demo app to test in-app surveys at `localhost:3002`
- We use **chatGPT** to help refactor code. Use our [Formbricks ✨ megaprompt ✨](https://github.com/formbricks/formbricks/blob/main/megaprompt.md) to create the right
context before you write your prompt.
- Follow Best Practices lined out in our [Contributor Docs](https://formbricks.com/docs/contributing/how-we-code)
- First time: Please read our [introductory blog post](https://formbricks.com/blog/join-the-formtribe)
- All UI components are in the package `formbricks/ui`
- Run `pnpm go` to find a demo app to test in-app surveys at `localhost:3002`
- Everything is type-safe
- We use **chatGPT** to help refactor code. Use our [Formbricks ✨ megaprompt ✨](https://github.com/formbricks/formbricks/blob/main/megaprompt.md) to create the right
context before you write your prompt.
- Anything unclear? [Ask in Discord](https://formbricks.com/discord)

View File

@@ -31,9 +31,10 @@ Fixes # (issue)
<!-- We're starting to get more and more contributions. Please help us making this efficient for all of us and go through this checklist. Please tick off what you did -->
- [ ] Added a screen recording or screenshots to this PR
### Required
- [ ] Filled out the "How to test" section in this PR
- [ ] Read the [contributing guide](https://github.com/formbricks/formbricks/blob/main/CONTRIBUTING.md)
- [ ] Read [How we Code at Formbricks](<[https://github.com/formbricks/formbricks/blob/main/CONTRIBUTING.md](https://formbricks.com/docs/contributing/how-we-code)>)
- [ ] Self-reviewed my own code
- [ ] Commented on my code in hard-to-understand bits
- [ ] Ran `pnpm build`
@@ -41,4 +42,9 @@ Fixes # (issue)
- [ ] Removed all `console.logs`
- [ ] Merged the latest changes from main onto my branch with `git pull origin main`
- [ ] My changes don't cause any responsiveness issues
- [ ] First PR at Formbricks? [Please sign the CLA!](https://formbricks.com/clmyhzfrymr4ko00hycsg1tvx) Without it we wont be able to merge it 🙏
### Appreciated
- [ ] If a UI change was made: Added a screen recording or screenshots to this PR
- [ ] Updated the Formbricks Docs if changes were necessary

6
.github/labeler.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
"❗️ migrations":
- packages/database/migrations/**/migration.sql
"❗️ .env changes":
- .env.example
- .env.docker

View File

@@ -0,0 +1,74 @@
name: "Apply issue labels to PR"
on:
pull_request_target:
types:
- opened
jobs:
label_on_pr:
runs-on: ubuntu-latest
permissions:
contents: none
issues: read
pull-requests: write
steps:
- name: Apply labels from linked issue to PR
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
async function getLinkedIssues(owner, repo, prNumber) {
const query = `query GetLinkedIssues($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
closingIssuesReferences(first: 10) {
nodes {
number
labels(first: 10) {
nodes {
name
}
}
}
}
}
}
}`;
const variables = {
owner: owner,
repo: repo,
prNumber: prNumber,
};
const result = await github.graphql(query, variables);
return result.repository.pullRequest.closingIssuesReferences.nodes;
}
const pr = context.payload.pull_request;
const linkedIssues = await getLinkedIssues(
context.repo.owner,
context.repo.repo,
pr.number
);
const labelsToAdd = new Set();
for (const issue of linkedIssues) {
if (issue.labels && issue.labels.nodes) {
for (const label of issue.labels.nodes) {
labelsToAdd.add(label.name);
}
}
}
if (labelsToAdd.size) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
labels: Array.from(labelsToAdd),
});
}

View File

@@ -0,0 +1,26 @@
name: Build
on:
workflow_call:
jobs:
build:
name: Build Formbricks-com
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --config.platform=linux --config.architecture=x64
- name: Build Formbricks-com
run: pnpm build --filter=formbricks-com...

34
.github/workflows/build-web.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Build
on:
workflow_call:
jobs:
build:
name: Build Formbricks-web
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --config.platform=linux --config.architecture=x64
- name: create .env
run: cp .env.example .env
- name: Generate Random NEXTAUTH_SECRET
run: |
SECRET=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV
- name: Build Formbricks-web
run: pnpm build --filter=web...

View File

@@ -0,0 +1,22 @@
name: Cron - reportUsageToStripe
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
schedule:
# This will run the job at 23:00 UTC every day of every month.
- cron: "0 21 * * *"
jobs:
cron-reportUsageToStripe:
env:
APP_URL: ${{ secrets.APP_URL }}
CRON_SECRET: ${{ secrets.CRON_SECRET }}
runs-on: ubuntu-latest
steps:
- name: cURL request
if: ${{ env.APP_URL && env.CRON_SECRET }}
run: |
curl ${{ env.APP_URL }}/api/cron/report-usage \
-X POST \
-H 'x-api-key: ${{ env.CRON_SECRET }}' \
--fail

19
.github/workflows/labeler.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: "Pull Request Labeler"
on:
- pull_request_target
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
labeler:
name: Pull Request Labeler
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# https://github.com/actions/labeler/issues/442#issuecomment-1297359481
sync-labels: ""

34
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Lint
on:
workflow_call:
jobs:
build:
name: Linters
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --config.platform=linux --config.architecture=x64
- name: create .env
run: cp .env.example .env
- name: Generate Random NEXTAUTH_SECRET
run: |
SECRET=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV
- name: Lint
run: pnpm lint

37
.github/workflows/pr.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: PR Update
on:
pull_request_target:
branches:
- main
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run Tests
uses: ./.github/workflows/test.yml
secrets: inherit
lint:
name: Run Linters
uses: ./.github/workflows/lint.yml
secrets: inherit
build:
name: Build Formbricks-web
uses: ./.github/workflows/build-web.yml
secrets: inherit
required:
needs: [lint, test, build]
if: always()
runs-on: ubuntu-latest
steps:
- name: fail if conditional jobs failed
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')
run: exit 1

View File

@@ -1,4 +1,4 @@
name: Release
name: Release Changesets
on:
push:
@@ -7,10 +7,15 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

View File

@@ -0,0 +1,93 @@
name: Docker
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
push:
tags:
- "v*"
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
with:
cosign-release: 'v2.1.1'
# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

View File

@@ -1,4 +1,4 @@
name: Release Formbricks Image on Dockerhub
name: Release on Dockerhub
on:
push:
@@ -7,9 +7,23 @@ on:
jobs:
release-image-on-dockerhub:
name: Release
name: Release on Dockerhub
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/formbricks?schema=public"
steps:
- name: Generate Random NEXTAUTH_SECRET
run: |
SECRET=$(openssl rand -hex 32)
echo "NEXTAUTH_SECRET=$SECRET" >> $GITHUB_ENV
- name: Generate Random ENCRYPTION_KEY
run: |
SECRET=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV
- name: Checkout Repo
uses: actions/checkout@v2
@@ -38,3 +52,7 @@ jobs:
tags: |
${{ secrets.DOCKER_USERNAME }}/formbricks:${{ env.RELEASE_TAG }}
${{ secrets.DOCKER_USERNAME }}/formbricks:latest
build-args: |
NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }}
DATABASE_URL=${{ env.DATABASE_URL }}
ENCRYPTION_KEY=${{ env.ENCRYPTION_KEY }}

View File

@@ -0,0 +1,47 @@
name: "Check PR"
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
permissions:
pull-requests: write
jobs:
validate-pr:
name: PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
Details:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
message: |
Thank you for following the naming conventions for pull request titles! 🙏

View File

@@ -1,9 +1,11 @@
name: Checks
on: [push]
name: Tests
on:
workflow_call:
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
@@ -11,27 +13,24 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --config.platform=linux --config.architecture=x64
- name: Build formbricks-js dependencies
run: pnpm build --filter=js
- name: create .env
run: cp .env.example .env
- name: Lint
run: pnpm lint
- name: Build formbricks-js dependencies
run: pnpm build --filter=js
#- name: Test
# run: pnpm test
- name: Test
run: pnpm test

View File

@@ -0,0 +1,27 @@
name: "Welcome new contributors"
on:
issues:
types: opened
pull_request:
types: opened
permissions:
pull-requests: write
issues: write
jobs:
welcome-message:
name: Welcoming New Users
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.action == 'opened'
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |-
Thank you so much for making your first Pull Request and taking the time to improve Formbricks! 🚀🙏❤️
Feel free to join the conversation at [Discord](https://formbricks.com/discord)
issue-message: |
Thank you for opening your first issue! 🙏❤️ One of our team members will review it and get back to you as soon as it possible. 😊

6
.gitpod.Dockerfile vendored Normal file
View File

@@ -0,0 +1,6 @@
FROM gitpod/workspace-full
# Install custom tools, runtime, etc.
RUN brew install yq
RUN pnpm install turbo --global

78
.gitpod.yml Normal file
View File

@@ -0,0 +1,78 @@
tasks:
- name: demo
init: |
gp sync-await init-install &&
bash .gitpod/setup-demo.bash
command: |
cd apps/demo &&
cp .env.example .env &&
sed -i -r "s#^(NEXT_PUBLIC_FORMBRICKS_API_HOST=).*#\1 $(gp url 3000)#" .env &&
gp sync-await init &&
turbo --filter "@formbricks/demo" go
- name: website
command: gp sync-await init && turbo --filter "@formbricks/formbricks-com" dev
- name: Init Formbricks
init: |
cp .env.example .env &&
bash .gitpod/init.bash &&
turbo --filter "@formbricks/js" build &&
gp sync-done init-install
command: |
gp sync-done init &&
gp tasks list &&
gp ports await 3002 && gp ports await 3000 && gp open apps/demo/.env && gp preview $(gp url 3002) --external
- name: web
init: |
gp sync-await init-install &&
bash .gitpod/setup-web.bash &&
turbo --filter "@formbricks/database" db:down
command: |
gp sync-await init &&
cp .env.example .env &&
sed -i -r "s#^(WEBAPP_URL=).*#\1 $(gp url 3000)#" .env &&
sed -i -r "s#^(NEXTAUTH_URL=).*#\1 $(gp url 3000)#" .env &&
RANDOM_ENCRYPTION_KEY=$(openssl rand -hex 32)
sed -i 's/^ENCRYPTION_KEY=.*/ENCRYPTION_KEY='"$RANDOM_ENCRYPTION_KEY"'/' .env
turbo --filter "@formbricks/web" go
image:
file: .gitpod.Dockerfile
ports:
- port: 3000
visibility: public
onOpen: open-browser
- port: 3001
visibility: public
onOpen: ignore
- port: 3002
visibility: public
onOpen: ignore
- port: 5432
visibility: public
onOpen: ignore
- port: 1025
visibility: public
onOpen: ignore
- port: 8025
visibility: public
onOpen: open-browser
github:
prebuilds:
master: true
pullRequests: true
addComment: true
vscode:
extensions:
- "ban.spellright"
- "bradlc.vscode-tailwindcss"
- "DavidAnson.vscode-markdownlint"
- "dbaeumer.vscode-eslint"
- "esbenp.prettier-vscode"
- "Prisma.prisma"
- "yzhang.markdown-all-in-one"

18
.gitpod/init.bash Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
images=($(yq eval '.services.*.image' packages/database/docker-compose.yml))
pull_image() {
docker pull "$1"
}
# install packages in background
pnpm i &
# pull images
for image in "${images[@]}"
do
pull_image "$image" &
done
wait

5
.gitpod/setup-demo.bash Normal file
View File

@@ -0,0 +1,5 @@
for task in $(yq -r -oy '.pipeline."@formbricks/demo#go".dependsOn[]' turbo.json); do
package="${task%#*}"
command="${task#*#}"
turbo --filter "$package" $command
done

5
.gitpod/setup-web.bash Normal file
View File

@@ -0,0 +1,5 @@
for task in $(yq -r -oy '.pipeline."@formbricks/web#go".dependsOn[]' turbo.json); do
package="${task%#*}"
command="${task#*#}"
turbo --filter "$package" $command
done

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint-staged

4
.npmrc
View File

@@ -3,4 +3,6 @@ link-workspace-packages = true
shamefully-hoist = true
shared-workspace-shrinkwrap = true
access = public
enable-pre-post-scripts = true
enable-pre-post-scripts = true
legacy-peer-deps=true
node-linker=hoisted

69
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,69 @@
# Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in Formbricks and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct that could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
We as project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
We have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hola@formbricks.com - all complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
## Enforcement Guidelines
Community managers will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public of private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

View File

@@ -1,29 +1,33 @@
We are so happy that you are interested in contributing to Formbricks 🤗
# 🚀 Join the Formbricks Tribe! 🧱
There are many ways to contribute to Formbricks with writing Issues, fixing bugs, building new features or updating the docs.
First and foremost, we're absolutely thrilled that you're considering becoming a part of the Formbricks Tribe! 🤗
# Issues
Discover a myriad of ways to leave your mark on Formbricks — whether it's by squashing bugs, crafting new features, or enhancing our documentation.
Spotted a bug? Has deployment gone wrong? Do you have user feedback? [Raise an issue](https://github.com/formbricks/formbricks/issues/new/choose) for the fastest response.
## 🐛 Issue Hunters
... or pick up and fix an issue if you want to do a Pull Request.
Did you stumble upon a bug? Encountered a hiccup in deployment? Perhaps you have some user feedback to share? Your quickest route to help us out is by [raising an issue](https://github.com/formbricks/formbricks/issues/new/choose). We're on standby to respond swiftly.
# Feature requests
## 💡 Feature Architects
Raise an issue for these and tag it as an Enhancement. We love every idea. Please give us as much context on the why as possible.
Are you brimming with brilliant ideas? For new features that can elevate Formbricks, create an issue and slap on the "Enhancement" tag. We adore every concept that you throw our way. Just make sure to provide us with the "why" behind your idea. We're all ears!
# Creating a PR
## 🛠 Crafting Pull Requests
Please fork the repository, make your changes and create a new pull request if you want to make an update.
Ready to dive into the code and make a real impact? Here's your path:
If you want to speak to us before doing lots of work, please join our [Discord server](https://formbricks.com/discord) and tell us what you would like to work on - we're very responsive and friendly!
1. **Read our Best Practices**: [It takes 5 minutes](https://formbricks.com/docs/contributing/how-we-code) but will help you save hours 🤓
For QA of your Pull-Request, you can also get in touch with Matti on Discord. But we will also get to your PR without you taking additional action ;-)
1. **Fork the Repository:** Fork our repository or use [Gitpod](https://formbricks.com/docs/contributing/gitpod)
# Features
1. **Tweak and Transform:** Work your coding magic and apply your changes.
We are currently working on having a clear [Roadmap](https://github.com/orgs/formbricks/projects/1) for the next steps ahead.
1. **Pull Request Act:** If you're ready to go, craft a new pull request closely following our PR template 🙏
But you can also pick a feature that is not already on the roadmap if you think it creates a positive impact for Formbricks.
Would you prefer a chat before you dive into a lot of work? Our [Discord server](https://formbricks.com/discord) is your harbor. Share your thoughts, and we'll meet you there with open arms. We're responsive and friendly, promise!
If you are at all unsure, just raise it as an enhancement issue first and tell us that you like to work on it, and we'll very quickly respond.
## 🚀 Aspiring Features
If you spot a feature that isn't part of our official plan but could propel Formbricks forward, don't hesitate. Raise it as an enhancement issue, and let us know you're ready to take the lead. We'll be quick to respond.
Together, let's craft the future of Formbricks, making it better, bolder, and more brilliant! 🚀🧱🌟

122
README.md
View File

@@ -1,11 +1,15 @@
<div id="top"></div>
[<img src="ph.png">](https://www.producthunt.com/posts/formbricks)
<p align="center">
<a href="https://github.com/formbricks/formbricks">
<img src="https://user-images.githubusercontent.com/675065/203262290-3c2bc5b8-839c-468a-b675-e26a369c7fe2.png" alt="Logo" width="500">
<a href="https://formbricks.com">
<img width="120" alt="Open Source Experience Management Solution Qualtrics Alternative Logo" src="https://github.com/formbricks/formbricks/assets/72809645/0086704f-bee7-4d38-9cc8-fa42ee59e004">
</a>
<h3 align="center">Formbricks</h3>
<p align="center">
The Open Source Survey & Experience Management solution for fast growing companies
The Open Source Survey Toolbox
<br />
<a href="https://formbricks.com/">Website</a> | <a href="https://formbricks.com/discord">Join Discord community</a>
</p>
@@ -29,6 +33,10 @@
<a href="https://neverinstall.com/"><img src="https://github.com/formbricks/formbricks/assets/675065/72e5e37b-8ef7-4340-b06e-f1d12a05330f#gh-light-mode-only" height="20px"></a><a href="https://neverinstall.com/"><img src="https://github.com/formbricks/formbricks/assets/72809645/9d9711dc-75e5-4084-b7fa-bbaf621064a8#gh-dark-mode-only" height="20px">
</p>
<p align="center">
<a href="https://trendshift.io/repositories/2570" target="_blank"><img src="https://trendshift.io/api/badge/repositories/2570" alt="Trendshift Badge for formbricks/formbricks" style="width: 250px; height: 55px;" width="250" height="55"/></a>
</p>
## ✨ About Formbricks
<img width="1527" alt="formbricks-sneak" src="https://github-production-user-asset-6210df.s3.amazonaws.com/675065/249441967-ccb89ea3-82b4-4bf2-8d2c-528721ec313b.png">
@@ -39,17 +47,31 @@ Formbricks is your go-to solution for in-product micro-surveys that will superch
## 💪 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.
Formbricks is a powerful tool for creating in-product micro-surveys - and leverage a significantly higher conversion rate. It allows you to gather valuable insights from your users, enabling you to make data-driven decisions that enhance your product's user experience. With Formbricks, you can create surveys with our no-code editor, choose from a variety of templates, target specific user groups, and much more.
### Table of Contents
- [Features](#features)
- [Getting Started](#getting-started)
- [Cloud Version](#cloud-version)
- [Self-hosted Version](#self-hosted-version)
- [Development](#development)
- [Contribution](#contribution)
- [Contact](#contact-us)
- [License](#license)
- [Security](#security)
<a id="features"></a>
### 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 and more**
- 🔒 All **open source**, transparent and self-hostable
- 📲 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
@@ -61,17 +83,65 @@ Formbricks helps you apply best practices from data-driven work and experience m
- 🔒 [Auth.js](https://authjs.dev/)
- 🧘‍♂️ [Zod](https://zod.dev/)
<a id="getting-started"></a>
## 🚀 Getting started
We've got several options depending on your need to help you quickly get started with Formbricks.
<a id="cloud-version"></a>
### ☁️ 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](https://formbricks.com)
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](https://formbricks.com).
<a id="self-hosted-version"></a>
### 🐳 Self-hosted version
Formbricks is available Open-Source under AGPLv3 license. You can host Formbricks on your own servers using Docker without a subscription. To get started with self-hosting, take a look at our [self-hosting docs](https://formbricks.com/docs/self-hosting/deployment).
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)
(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](https://formbricks.com/docs/self-hosting/deployment).
#### Community-managed One Click Hosting
##### Railway
You can deploy Formbricks on [Railway](https://railway.app) using the button below.
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/PPDzCd)
<a id="development"></a>
### 👨‍💻 Development
#### Prerequisites
Here is what you need to be able to run Formbricks:
- [Node.js](https://nodejs.org/en) (Version: >=18.x)
- [Pnpm](https://pnpm.io/)
- [Docker](https://www.docker.com/) - to run PostgreSQL and MailHog
#### Local Setup
To get started locally, we've got a [guide to help you](https://formbricks.com/docs/contributing/setup).
#### 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](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/formbricks/formbricks)
<a id="contribution"></a>
## ✍️ Contribution
@@ -79,22 +149,36 @@ 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
- Star this repo.
- Create issues every time you feel something is missing or goes wrong.
- Upvote issues with 👍 reaction so we know what the demand for a particular issue is to prioritize it within the roadmap.
Please check out [our contribution guide](https://formbricks.com/docs/contributing/introduction) and our [list of open issues](https://github.com/formbricks/formbricks/issues) for more information.
## All Thanks To Our Contributors
<a href="https://github.com/formbricks/formbricks/graphs/contributors">
<img src="https://contrib.rocks/image?repo=formbricks/formbricks" />
</a>
<a id="contact-us"></a>
## 📆 Contact us
Let's have a chat about your survey needs and get you started.
<a href="https://cal.com/johannes/onboarding?utm_source=banner&utm_campaign=oss"><img alt="Book us with Cal.com" src="https://cal.com/book-with-cal-dark.svg" /></a>
<a id="license"></a>
## ⚖️ License
Distributed under the AGPLv3 License. See `LICENSE` for more information.
Distributed under the AGPLv3 License. See [`LICENSE`](./LICENSE) for more information.
<a id="security"></a>
## 🔒 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.
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`](./SECURITY.md) for more information.
<p align="right"><a href="#top">🔼 Back to top</a></p>

View File

@@ -1,39 +1,75 @@
# Security
# Security Policy of Formbricks
Contact: security@formbricks.com
This is Formbrick's security policy. Please reach out to us
on our Discord or, if privately, via <security@formbricks.com>
Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)
## Introduction
At Formbricks, we consider the security of our systems a top priority. But no matter how much effort we put into system security, there can still be vulnerabilities present.
Formbricks is dedicated to maintaining the integrity and security of our systems and our clients' data. In our pursuit to keep our technology environment safe, we welcome the collaborative efforts of our user community and security researchers to enhance security protocols and continuously secure our platform. This security policy outlines our approach towards handling data, ensuring secure practices, and managing the disclosure of vulnerabilities.
If you discover a vulnerability, we would like to know about it so we can take steps to address it as quickly as possible. We would like to ask you to help us better protect our clients and our systems.
## I. Third-Party Data Usage Policy
## Out of scope vulnerabilities:
We affirm our commitment towards meticulous validation of data usage and collection scope by any third-party library or integration utilized in our operations. We adhere to the following protocols:
- Clickjacking on pages with no sensitive actions.
- Unauthenticated/logout/login CSRF.
- Attacks requiring MITM or physical access to a user's device.
- Any activity that could lead to the disruption of our service (DoS).
- Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS.
- Email spoofing
- Missing DNSSEC, CAA, CSP headers
- Lack of Secure or HTTP only flag on non-sensitive cookies
- Deadlinks
- Rigorous vetting of third-party services to confirm adherence to our data usage and privacy standards.
- Continuous monitoring and assessment of third-party practices to ensure ongoing compliance.
- Immediate action to mitigate risks if a third-party deviates from agreed-upon data practices.
## Please do the following:
## II. Annual Penetration Testing (Pentest)
- E-mail your findings to [security@formbricks.com](mailto:security@formbricks.com).
- Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you.
- Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,
- Do not reveal the problem to others until it has been resolved,
- Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties,
- Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.
To understand and bolster our security stature, Formbricks undertakes:
## What we promise:
- Annual penetration testing executed by an independent, skilled third party.
- Prioritization of any identified issues, with immediate action on critical vulnerabilities.
- Transparent communication and learnings shared with relevant stakeholders.
- We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,
- If you have followed the instructions above, we will not take any legal action against you in regard to the report,
- We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,
- We will keep you informed of the progress towards resolving the problem,
- In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and
- We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.
## III. Vulnerability Reporting and Management
Please do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties.
### **A. When to Report a Vulnerability**
We invite you to report if:
- A potential security vulnerability in Formbricks is identified.
- There is uncertainty about how a vulnerability affects our platform.
- A vulnerability is detected in a dependent project of Formbricks.
- An action was executed which, in your belief, should be restricted.
### **B. When Reporting is Unnecessary**
Avoid reporting if:
- Assistance is needed to optimize Formbricks for security please engage on our Discord for this.
- Help is required for applying security-related updates.
- The concern is not related to security.
### **C. Vulnerability Reporting Procedure**
In the interest of responsibly managing vulnerabilities, please adhere to the following procedure:
> Do not reveal the problem to others until it has been resolved.
1. **Send a Detailed Report**:
- Address emails to [security@formbricks.com](mailto:security@formbricks.com).
- Include:
- Problem description.
- Detailed, reproducible steps, with screenshots where possible.
- Affected version(s).
- Known possible mitigations.
- Your Discord username or preferred contact method.
2. **Acknowledgement of Receipt**:
- Our security team will acknowledge receipt and provide an initial response within 48 hours.
- Following verification of the vulnerability and the fix, a release plan will be formulated, with the fix deployed between 7 to 28 days, depending on the severity and complexity.
3. **Ongoing Communication**:
- A project maintainer may engage with you for additional details or clarification.
- We appreciate your patience as we explore the reported item, verify its authenticity, and ascertain the existence of a vulnerability.
---
### Please Read the below carefully
If you have followed the instructions above, we will **not** take any legal action against you in regard to the report,
We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission, We will keep you informed of the progress towards resolving the problem, In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise).
We, at Formbricks, wish to express our gratitude towards all individuals who assist us in fortifying our security posture. Your responsible disclosure and cooperation enable us to elevate our security protocols, safeguarding our platform and data therein.

View File

@@ -1,2 +1,5 @@
NEXT_PUBLIC_FORMBRICKS_API_HOST=http://localhost:3000
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=YOUR_ENVIRONMENT_ID
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=YOUR_ENVIRONMENT_ID
# Copy the environment ID for the URL of your Formbricks App and
# paste it above to connect your Formbricks App with the Demo App.

View File

@@ -5,7 +5,7 @@
"scripts": {
"clean": "rimraf .turbo node_modules .next",
"dev": "next dev -p 3002 --turbo",
"go": "next dev -p 3002 --turbo",
"go": "next dev -p 3002",
"build": "next build",
"start": "next start",
"lint": "next lint"
@@ -13,7 +13,7 @@
"dependencies": {
"@formbricks/js": "workspace:*",
"@heroicons/react": "^2.0.18",
"next": "13.4.12",
"next": "14.0.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},

View File

@@ -1,38 +1,8 @@
import formbricks from "@formbricks/js";
import type { AppProps } from "next/app";
import Head from "next/head";
import { useRouter } from "next/router";
import { useEffect } from "react";
import "../styles/globals.css";
declare const window: any;
if (typeof window !== "undefined") {
if (process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID && process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST) {
formbricks.init({
environmentId: process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID,
apiHost: process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST,
debug: true,
});
window.formbricks = formbricks;
}
}
export default function App({ Component, pageProps }: AppProps) {
const router = useRouter();
useEffect(() => {
// Connect next.js router to Formbricks
if (process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID && process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST) {
const handleRouteChange = formbricks?.registerRouteChange;
router.events.on("routeChangeComplete", handleRouteChange);
return () => {
router.events.off("routeChangeComplete", handleRouteChange);
};
}
}, []);
return (
<>
<Head>

View File

@@ -2,9 +2,13 @@ import formbricks from "@formbricks/js";
import Image from "next/image";
import { useEffect, useState } from "react";
import fbsetup from "../../public/fb-setup.png";
import { useRouter } from "next/router";
declare const window: any;
export default function AppPage({}) {
const [darkMode, setDarkMode] = useState(false);
const router = useRouter();
useEffect(() => {
if (darkMode) {
@@ -14,9 +18,33 @@ export default function AppPage({}) {
}
}, [darkMode]);
useEffect(() => {
if (process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID && process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST) {
const isUserId = window.location.href.includes("userId=true");
const userId = isUserId ? "THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING" : undefined;
formbricks.init({
environmentId: process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID,
apiHost: process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST,
userId,
debug: true,
});
window.formbricks = formbricks;
}
// Connect next.js router to Formbricks
if (process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID && process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST) {
const handleRouteChange = formbricks?.registerRouteChange;
router.events.on("routeChangeComplete", handleRouteChange);
return () => {
router.events.off("routeChangeComplete", handleRouteChange);
};
}
});
return (
<div className="h-screen bg-white px-12 py-6 dark:bg-slate-800">
<div className="flex justify-between">
<div className="flex flex-col justify-between md:flex-row">
<div>
<h1 className="text-2xl font-bold text-slate-900 dark:text-white">
Formbricks In-product Survey Demo App
@@ -27,23 +55,36 @@ export default function AppPage({}) {
</p>
</div>
<button
className="rounded-lg bg-slate-200 px-6 py-1 dark:bg-slate-700 dark:text-slate-100"
className="mt-2 rounded-lg bg-slate-200 px-6 py-1 dark:bg-slate-700 dark:text-slate-100"
onClick={() => setDarkMode(!darkMode)}>
Toggle Dark Mode
{darkMode ? "Toggle Light Mode" : "Toggle Dark Mode"}
</button>
</div>
<div className="my-4 grid grid-cols-1 gap-6 md:grid-cols-2">
<div>
<div className="rounded-lg border border-slate-300 bg-slate-100 p-6 dark:border-slate-600 dark:bg-slate-900">
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">Setup .env</h3>
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">1. Setup .env</h3>
<p className="text-slate-700 dark:text-slate-300">
Copy the environment ID of your Formbricks app to the env variable in demo/.env
</p>
<Image src={fbsetup} alt="fb setup" className="mt-4 rounded" priority />
<div className="mt-4 flex-col items-start text-sm text-slate-700 dark:text-slate-300 sm:flex sm:items-center sm:text-base">
<p className="mb-1 sm:mb-0 sm:mr-2">You&apos;re connected with env:</p>
<div className="flex items-center">
<strong className="w-32 truncate sm:w-auto">
{process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID}
</strong>
<span className="relative ml-2 flex h-3 w-3">
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-400 opacity-75"></span>
<span className="relative inline-flex h-3 w-3 rounded-full bg-green-500"></span>
</span>
</div>
</div>
</div>
<div className="mt-4 rounded-lg border border-slate-300 bg-slate-100 p-6 dark:border-slate-600 dark:bg-slate-900">
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">Widget Logs</h3>
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">2. Widget Logs</h3>
<p className="text-slate-700 dark:text-slate-300">
Look at the logs to understand how the widget works.{" "}
<strong className="dark:text-white">Open your browser console</strong> to see the logs.
@@ -60,18 +101,18 @@ export default function AppPage({}) {
Reset person / pull data from Formbricks app
</h3>
<p className="text-slate-700 dark:text-gray-300">
On formbricks.logout() a few things happen: <strong>New person is created</strong> and{" "}
On formbricks.reset() a few things happen: <strong>New person is created</strong> and{" "}
<strong>surveys & no-code actions are pulled from Formbricks:</strong>.
</p>
<button
className="my-4 rounded-lg bg-slate-500 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
formbricks.logout();
formbricks.reset();
}}>
Logout
Reset
</button>
<p className="text-xs text-slate-700 dark:text-gray-300">
If you made a change in Formbricks app and it does not seem to work, hit &apos;Logout&apos; and
If you made a change in Formbricks app and it does not seem to work, hit &apos;Reset&apos; and
try again.
</p>
</div>
@@ -191,25 +232,37 @@ export default function AppPage({}) {
</div>
</div>
<div className="p-6">
<div>
<button
onClick={() => {
formbricks.setUserId("THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING");
}}
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600">
Set User ID
</button>
</div>
{router.query.userId === "true" ? (
<div>
<button
onClick={() => {
window.location.href = "/app";
}}
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600">
Deactivate User Identification
</button>
</div>
) : (
<div>
<button
onClick={() => {
window.location.href = "/app?userId=true";
}}
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600">
Activate User Identification
</button>
</div>
)}
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">
This button sets an external{" "}
This button activates/deactivates{" "}
<a
href="https://formbricks.com/docs/attributes/identify-users"
target="_blank"
className="underline dark:text-blue-500">
user ID
user identification
</a>{" "}
to &apos;THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING&apos;
with the userId &apos;THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING&apos;
</p>
</div>
</div>

View File

@@ -0,0 +1,202 @@
import formbricks from "@formbricks/js";
import Image from "next/image";
import { useEffect, useState } from "react";
import fbsetup from "../../public/fb-setup.png";
export default function AppPage({}) {
const [darkMode, setDarkMode] = useState(false);
useEffect(() => {
if (darkMode) {
document.body.classList.add("dark");
} else {
document.body.classList.remove("dark");
}
}, [darkMode]);
return (
<div className="h-full bg-white px-12 py-6 dark:bg-slate-800">
<div className="flex flex-col justify-between md:flex-row">
<div>
<h1 className="text-2xl font-bold text-slate-900 dark:text-white">
Formbricks In-product Survey Demo App
</h1>
<p className="text-slate-700 dark:text-slate-300">
This app helps you test your in-app surveys. You can create and test user actions, create and
update user attributes, etc.
</p>
</div>
<button
className="mt-2 rounded-lg bg-slate-200 px-6 py-1 dark:bg-slate-700 dark:text-slate-100"
onClick={() => setDarkMode(!darkMode)}>
{darkMode ? "Toggle Light Mode" : "Toggle Dark Mode"}
</button>
</div>
<div className="my-4 grid grid-cols-1 gap-6 md:grid-cols-2">
<div>
<div className="rounded-lg border border-slate-300 bg-slate-100 p-6 dark:border-slate-600 dark:bg-slate-900">
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">1. Setup .env</h3>
<p className="text-slate-700 dark:text-slate-300">
Copy the environment ID of your Formbricks app to the env variable in demo/.env
</p>
<Image src={fbsetup} alt="fb setup" className="mt-4 rounded" priority />
<div className="mt-4 flex-col items-start text-sm text-slate-700 dark:text-slate-300 sm:flex sm:items-center sm:text-base">
<p className="mb-1 sm:mb-0 sm:mr-2">You&apos;re connected with env:</p>
<div className="flex items-center">
<strong className="w-32 truncate sm:w-auto">
{process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID}
</strong>
<span className="relative ml-2 flex h-3 w-3">
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-400 opacity-75"></span>
<span className="relative inline-flex h-3 w-3 rounded-full bg-green-500"></span>
</span>
</div>
</div>
</div>
<div className="mt-4 rounded-lg border border-slate-300 bg-slate-100 p-6 dark:border-slate-600 dark:bg-slate-900">
<h3 className="text-lg font-semibold text-slate-900 dark:text-white">2. Widget Logs</h3>
<p className="text-slate-700 dark:text-slate-300">
Look at the logs to understand how the widget works.{" "}
<strong className="dark:text-white">Open your browser console</strong> to see the logs.
</p>
{/* <div className="max-h-[40vh] overflow-y-auto py-4">
<LogsContainer />
</div> */}
</div>
</div>
<div className="md:grid md:grid-cols-3">
<div className="col-span-3 rounded-lg border border-slate-300 bg-slate-100 p-6 dark:border-gray-600 dark:bg-gray-800">
<h3 className="text-lg font-semibold dark:text-white">
Reset person / pull data from Formbricks app
</h3>
<p className="text-slate-700 dark:text-gray-300">
On formbricks.reset() a few things happen: <strong>New person is created</strong> and{" "}
<strong>surveys & no-code actions are pulled from Formbricks:</strong>.
</p>
<button
className="my-4 rounded-lg bg-slate-500 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
formbricks.reset();
}}>
Reset
</button>
<p className="text-xs text-slate-700 dark:text-gray-300">
If you made a change in Formbricks app and it does not seem to work, hit &apos;Reset&apos; and
try again.
</p>
</div>
<div className="p-6">
<div>
<button
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("Inner Text");
}}>
Inner Text
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">Inner Text only</p>
</div>
</div>
<div className="p-6">
<div>
<button
id="css-id"
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("Inner Text + CSS ID");
}}>
Inner Text
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">Inner Text + Css ID</p>
</div>
</div>
<div className="p-6">
<div>
<button
className="css-class mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("Inner Text + CSS Class");
}}>
Inner Text
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">Inner Text + CSS Class</p>
</div>
</div>
<div className="p-6">
<div>
<button
id="css-id"
className="css-class mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("ID + Class");
}}>
ID and Class
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">ID + Class</p>
</div>
</div>
<div className="p-6">
<div>
<button
id="css-id"
className="mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("ID + Class");
}}>
ID only
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">ID only</p>
</div>
</div>
<div className="p-6">
<div>
<button
className="css-class mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("Class only");
}}>
Class only
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">Class only</p>
</div>
</div>
<div className="p-6">
<div>
<button
className="css-1 css-2 mb-4 rounded-lg bg-slate-800 px-6 py-3 text-white hover:bg-slate-700 dark:bg-gray-700 dark:hover:bg-gray-600"
onClick={() => {
console.log("Class + Class");
}}>
Class + Class
</button>
</div>
<div>
<p className="text-xs text-slate-700 dark:text-gray-300">Class + Class</p>
</div>
</div>
</div>
</div>
</div>
);
}

View File

@@ -1,3 +1,6 @@
NEXT_PUBLIC_FORMBRICKS_COM_API_HOST=http://localhost:3000
NEXT_PUBLIC_FORMBRICKS_COM_ENVIRONMENT_ID=
NEXT_PUBLIC_FORMBRICKS_COM_DOCS_FEEDBACK_SURVEY_ID=
NEXT_PUBLIC_FORMBRICKS_COM_DOCS_FEEDBACK_SURVEY_ID=
# Strapi API Key
STRAPI_API_KEY=

View File

@@ -34,4 +34,4 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts
public/sitemap*.xml
public/sitemap*.xml

View File

@@ -0,0 +1,129 @@
# Tailwind UI License
## Personal License
Tailwind Labs Inc. grants you an on-going, non-exclusive license to use the Components and Templates.
The license grants permission to **one individual** (the Licensee) to access and use the Components and Templates.
You **can**:
- Use the Components and Templates to create unlimited End Products.
- Modify the Components and Templates to create derivative components and templates. Those components and templates are subject to this license.
- Use the Components and Templates to create unlimited End Products for unlimited Clients.
- Use the Components and Templates to create End Products where the End Product is sold to End Users.
- Use the Components and Templates to create End Products that are open source and freely available to End Users.
You **cannot**:
- Use the Components and Templates to create End Products that are designed to allow an End User to build their own End Products using the Components and Templates or derivatives of the Components and Templates.
- Re-distribute the Components and Templates or derivatives of the Components and Templates separately from an End Product, neither in code or as design assets.
- Share your access to the Components and Templates with any other individuals.
- Use the Components and Templates to produce anything that may be deemed by Tailwind Labs Inc, in their sole and absolute discretion, to be competitive or in conflict with the business of Tailwind Labs Inc.
### Example usage
Examples of usage **allowed** by the license:
- Creating a personal website by yourself.
- Creating a website or web application for a client that will be owned by that client.
- Creating a commercial SaaS application (like an invoicing app for example) where end users have to pay a fee to use the application.
- Creating a commercial self-hosted web application that is sold to end users for a one-time fee.
- Creating a web application where the primary purpose is clearly not to simply re-distribute the components (like a conference organization app that uses the components for its UI for example) that is free and open source, where the source code is publicly available.
Examples of usage **not allowed** by the license:
- Creating a repository of your favorite Tailwind UI components or templates (or derivatives based on Tailwind UI components or templates) and publishing it publicly.
- Creating a React or Vue version of Tailwind UI and making it available either for sale or for free.
- Create a Figma or Sketch UI kit based on the Tailwind UI component designs.
- Creating a "website builder" project where end users can build their own websites using components or templates included with or derived from Tailwind UI.
- Creating a theme, template, or project starter kit using the components or templates and making it available either for sale or for free.
- Creating an admin panel tool (like [Laravel Nova](https://nova.laravel.com/) or [ActiveAdmin](https://activeadmin.info/)) that is made available either for sale or for free.
In simple terms, use Tailwind UI for anything you like as long as it doesn't compete with Tailwind UI.
### Personal License Definitions
Licensee is the individual who has purchased a Personal License.
Components and Templates are the source code and design assets made available to the Licensee after purchasing a Tailwind UI license.
End Product is any artifact produced that incorporates the Components or Templates or derivatives of the Components or Templates.
End User is a user of an End Product.
Client is an individual or entity receiving custom professional services directly from the Licensee, produced specifically for that individual or entity. Customers of software-as-a-service products are not considered clients for the purpose of this document.
## Team License
Tailwind Labs Inc. grants you an on-going, non-exclusive license to use the Components and Templates.
The license grants permission for **up to 25 Employees and Contractors of the Licensee** to access and use the Components and Templates.
You **can**:
- Use the Components and Templates to create unlimited End Products.
- Modify the Components and Templates to create derivative components and templates. Those components and templates are subject to this license.
- Use the Components and Templates to create unlimited End Products for unlimited Clients.
- Use the Components and Templates to create End Products where the End Product is sold to End Users.
- Use the Components and Templates to create End Products that are open source and freely available to End Users.
You **cannot**:
- Use the Components or Templates to create End Products that are designed to allow an End User to build their own End Products using the Components or Templates or derivatives of the Components or Templates.
- Re-distribute the Components or Templates or derivatives of the Components or Templates separately from an End Product.
- Use the Components or Templates to create End Products that are the property of any individual or entity other than the Licensee or Clients of the Licensee.
- Use the Components or Templates to produce anything that may be deemed by Tailwind Labs Inc, in their sole and absolute discretion, to be competitive or in conflict with the business of Tailwind Labs Inc.
### Example usage
Examples of usage **allowed** by the license:
- Creating a website for your company.
- Creating a website or web application for a client that will be owned by that client.
- Creating a commercial SaaS application (like an invoicing app for example) where end users have to pay a fee to use the application.
- Creating a commercial self-hosted web application that is sold to end users for a one-time fee.
- Creating a web application where the primary purpose is clearly not to simply re-distribute the components or templates (like a conference organization app that uses the components or a template for its UI for example) that is free and open source, where the source code is publicly available.
Examples of use **not allowed** by the license:
- Creating a repository of your favorite Tailwind UI components or template (or derivatives based on Tailwind UI components or templates) and publishing it publicly.
- Creating a React or Vue version of Tailwind UI and making it available either for sale or for free.
- Creating a "website builder" project where end users can build their own websites using components or templates included with or derived from Tailwind UI.
- Creating a theme or template using the components or templates and making it available either for sale or for free.
- Creating an admin panel tool (like [Laravel Nova](https://nova.laravel.com/) or [ActiveAdmin](https://activeadmin.info/)) that is made available either for sale or for free.
- Creating any End Product that is not the sole property of either your company or a client of your company. For example your employees/contractors can't use your company Tailwind UI license to build their own websites or side projects.
### Team License Definitions
Licensee is the business entity who has purchased a Team License.
Components and Templates are the source code and design assets made available to the Licensee after purchasing a Tailwind UI license.
End Product is any artifact produced that incorporates the Components or Templates or derivatives of the Components or Templates.
End User is a user of an End Product.
Employee is a full-time or part-time employee of the Licensee.
Contractor is an individual or business entity contracted to perform services for the Licensee.
Client is an individual or entity receiving custom professional services directly from the Licensee, produced specifically for that individual or entity. Customers of software-as-a-service products are not considered clients for the purpose of this document.
## Enforcement
If you are found to be in violation of the license, access to your Tailwind UI account will be terminated, and a refund may be issued at our discretion. When license violation is blatant and malicious (such as intentionally redistributing the Components or Templates through private warez channels), no refund will be issued.
The copyright of the Components and Templates is owned by Tailwind Labs Inc. You are granted only the permissions described in this license; all other rights are reserved. Tailwind Labs Inc. reserves the right to pursue legal remedies for any unauthorized use of the Components or Templates outside the scope of this license.
## Liability
Tailwind Labs Inc.s liability to you for costs, damages, or other losses arising from your use of the Components or Templates — including third-party claims against you — is limited to a refund of your license fee. Tailwind Labs Inc. may not be held liable for any consequential damages related to your use of the Components or Templates.
This Agreement is governed by the laws of the Province of Ontario and the applicable laws of Canada. Legal proceedings related to this Agreement may only be brought in the courts of Ontario. You agree to service of process at the e-mail address on your original order.
## Questions?
Unsure which license you need, or unsure if your use case is covered by our licenses?
Email us at [support@tailwindui.com](mailto:support@tailwindui.com) with your questions.

View File

@@ -0,0 +1,37 @@
export const metadata = {
title: "Implementing Code Actions in Formbricks | Real-time User Action Tracking",
description:
"Dive into the world of Formbricks' code actions. Learn how to seamlessly integrate formbricks.track() method into your codebase, enabling real-time tracking of user actions like button clicks, visiting a specific URL. Up your survey game with precise and exact triggers.",
};
#### Actions
# Code Actions
Actions can also be set in the codebase to trigger surveys. Please add the code action first in the Formbricks web interface to be able to configure your surveys to use this action.
After that you can fire an action using `formbricks.track()`
<Col>
<CodeGroup title="Track an action">
```javascript
formbricks.track("Action Name");
```
</CodeGroup>
</Col>
Here is an example of how to fire an action when a user clicks a button:
<Col>
<CodeGroup title="Track Button Click">
```javascript
const handleClick = () => {
formbricks.track("Button Clicked");
};
return <button onClick={handleClick}>Click Me</button>;
```
</CodeGroup>
</Col>

View File

@@ -1,11 +1,13 @@
import { Layout } from "@/components/docs/Layout";
export const meta = {
title: "No-Code Actions",
export const metadata = {
title: "Implementing No-Code Actions in Formbricks | Real-time User Action Tracking",
description:
"Utilize Formbricks' No-Code Actions like Page URL, innerText, and CSS Selector for easy survey triggers and enhanced user insights.",
"Discover the power of Formbricks' No-Code Actions. Easily set up triggers based on Page URL, innerText, and CSS Selectors without touching a line of code. Inccrease user engagement and get insights at precise moments in the user journey.",
};
#### Actions
# No-Code Actions
No-Code actions can be set up within Formbricks with just a few clicks. There are three types of No-Code actions:
## Page URL Action
@@ -26,5 +28,3 @@ The innerText action checks if the `innerText` of a clicked HTML element matches
## CSS Selector Action
The CSS Selector action checks if the provided CSS selector matches the selector of a clicked HTML element. The CSS selector can be a class, id or any other CSS selector within your website. Display a survey on any element click!
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

View File

@@ -1,11 +1,13 @@
import { Layout } from "@/components/docs/Layout";
export const meta = {
title: "What are actions and why are they useful?",
export const metadata = {
title: "Using Actions in Formbricks | Fine-tuning User Moments",
description:
"Actions in Formbricks enable targeted survey displays during specific user journey moments. Enhance user segmentation by tracking actions for granular surveying.",
"Dive deep into how actions in Formbricks help products and teams to engage users at precise moments in their journey. Discover the power of actions, from coding to no-code setups, to refine user targeting and generate richer, more detailed user insights.",
};
#### Actions
# What are actions and why are they useful?
You want to understand what your users think and feel during specific moments in the user journey. To be able to ask at exactly the right point in time, you need actions.
## What are actions?
@@ -19,5 +21,3 @@ When a predefined action happens in your app, the Formbricks widget notices. Thi
## Why are actions useful?
Actions help you to display your surveys at the right time. Later on, you will be able to segment your users based on the actions they have triggered in the past. This way, you can create much more granular user segments, e.g. only target users that already have used a specific feature.
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

View File

@@ -0,0 +1,168 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks Public Client API Guide: Manage Survey Displays & Responses",
description:
"Dive deep into Formbricks' Public Client API designed for customisation. This comprehensive guide provides detailed instructions on how to mark surveys as displayed as well as responded for individual persons, ensuring seamless client-side interactions without compromising data security.",
};
#### Client API
# Displays API
The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.
This set of API can be used to
- [Mark Survey as Displayed](#mark-survey-as-displayed-for-person)
- [Mark Survey as Responded](#mark-survey-as-responded-for-person)
---
## Mark Survey as Displayed for Person {{ tag: 'POST', label: '/api/v1/client/diplays' }}
<Row>
<Col>
Mark a Survey as seen for a Person provided valid SurveyId and PersonId.
### Mandatory Request Body JSON Keys
<Properties>
<Property name="surveyId" type="string">
Survey ID to mark as viewed for a person
</Property>
</Properties>
<Properties>
<Property name="personId" type="string">
Person ID for whom mark a survey as viewed
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/displays">
```bash {{ title: 'cURL' }}
curl -X POST \
'https://app.formbricks.com/api/v1/client/displays' \
-H 'Content-Type: application/json' \
-d '{
"surveyId": "<survey-id>",
"personId": "<person-id>"
}'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "clm4qiygr00uqs60h5f5ola5h",
"createdAt": "2023-09-04T10:24:36.603Z",
"updatedAt": "2023-09-04T10:24:36.603Z",
"surveyId": "<survey-id>",
"person": {
"id": "<person-id>",
"attributes": {
"userId": "CYO600",
"email": "wei@google.com",
"Name": "Wei Zhu",
"Role": "Manager",
"Company": "Google",
"Experience": "2 years",
"Usage Frequency": "Daily",
"Company Size": "2401 employees",
"Product Satisfaction Score": "4",
"Recommendation Likelihood": "3"
},
"createdAt": "2023-08-08T18:05:01.483Z",
"updatedAt": "2023-08-08T18:05:01.483Z"
},
"status": "seen"
}
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "Fields are missing or incorrectly formatted",
"details": {
"surveyId": "Required"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Mark Survey as Responded for Person {{ tag: 'POST', label: '/api/v1/client/diplays/[displayId]/responded' }}
<Row>
<Col>
Mark a Displayed Survey as responded for a Person.
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/client/diplays/[displayId]/responded">
```bash {{ title: 'cURL' }}
curl -X POST \
--location \
'https://app.formbricks.com/api/v1/client/displays/<displayId>/responded'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "<displayId>",
"createdAt": "2023-09-04T10:24:36.603Z",
"updatedAt": "2023-09-04T10:33:56.978Z",
"surveyId": "<surveyId>",
"person": {
"id": "<personId>",
"attributes": {
"userId": "CYO600",
"email": "wei@google.com",
"Name": "Wei Zhu",
"Role": "Manager",
"Company": "Google",
"Experience": "2 years",
"Usage Frequency": "Daily",
"Company Size": "2401 employees",
"Product Satisfaction Score": "4",
"Recommendation Likelihood": "3"
},
"createdAt": "2023-08-08T18:05:01.483Z",
"updatedAt": "2023-08-08T18:05:01.483Z"
},
"status": "responded"
}
}
```
```json {{ title: '500 Internal Server Error' }}
{
"code": "internal_server_error",
"message": "Database operation failed",
"details": {}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,45 @@
export const metadata = {
title: "Formbricks API Overview: Public Client & Management API Breakdown",
description:
"Get a detailed understanding of Formbricks' dual API offerings: the unauthenticated Public Client API optimized for client-side tasks and the secured Management API for advanced account operations. Choose the perfect fit for your integration needs and ensure robust data handling",
};
#### API
# API Overview
Formbricks offers two types of APIs: the **Public Client API** and the **Management API**. Each API serves a different purpose, has different authentication requirements, and provides access to different data and settings.
Checkout the [API Key Setup](/docs/api/api-key-setup) - to generate, store, or delete API Keys.
## Public Client API
The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.
- [Displays API](/docs/api/client/displays) - Mark Survey as Displayed or Responded for a Person
- [Responses API](/docs/api/client/responses) - Create & update responses for a survey
## Management API
The Management API provides access to all data and settings that are visible in the Formbricks App. This API requires a personal API Key for authentication, which can be generated in the Settings section of the Formbricks App. With the Management API, you can manage your Formbricks account programmatically, accessing and modifying data and settings as needed.
**Auth:** Personal API Key
API requests made to the Management API are authorized using a personal API key. This key grants the same rights and access as if you were logged in at formbricks.com. It's essential to keep your API key secure and not share it with others.
To generate, store, or delete an API key, follow the instructions provided on the following page [API Key](/docs/api/api-key-setup).
- [Action Class API](/docs/api/management/action-classes) - Create, Update, and Delete Action Classes
- [Attribute Class API](/docs/api/management/attribute-classes) - Create, Update, and Delete Attribute Classes
- [Me API](/docs/api/management/me) - Retrieve Account Information
- [People API](/docs/api/management/people) - Create, Update, and Delete People
- [Responses API](/docs/api/management/responses) - Create, Update, and Delete Responses
- [Surveys API](/docs/api/management/surveys) - Create, Update, and Delete Surveys
- [Webhook API](/docs/api/management/webhooks) - Create, Update, and Delete Webhooks
<Note>
By understanding the differences between these two APIs, you can choose the appropriate one for your needs,
ensuring a secure and efficient integration with the Formbricks platform.
</Note>
---

View File

@@ -0,0 +1,222 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks Responses API Documentation - Manage Your Survey Data Seamlessly",
description:
"Unlock the full potential of Formbricks' Responses API. From fetching to updating survey responses, our comprehensive guide helps you integrate and manage survey data efficiently without compromising security. Ideal for client-side interactions.",
};
#### Management API
# Responses API
The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.
---
## Create a response {{ tag: 'POST', label: '/api/v1/client/responses' }}
Add a new response to a survey.
<Row>
<Col>
### Mandatory Body Fields
<Properties>
<Property name="surveyId" type="string">
The id of the survey the response belongs to.
</Property>
<Property name="finished" type="boolean">
Marks whether the response is complete or not.
</Property>
<Property name="data" type="string">
The data of the response as JSON object (key: questionId, value: answer).
</Property>
</Properties>
### Optional Body Fields
<Properties>
<Property name="personId" type="string" required>
Internal Formbricks id to identify the user sending the response
</Property>
</Properties>
### Parameters Explained
| field name | required | default | description |
| ---------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| data | yes | - | The response data object (answers to the survey). In this object the key is the questionId, the value the answer of the user to this question. |
| personId | no | - | The person this response is connected to. |
| surveyId | yes | - | The survey this response is connected to. |
| finished | yes | false | Mark a response as complete to be able to filter accordingly. |
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/client/responses">
```bash {{ title: 'cURL' }}
curl --location --request POST 'https://app.formbricks.com/api/v1/client/responses' \
--data-raw '{
"surveyId":"clfqz1esd0000yzah51trddn8",
"personId": "clfqjny0v000ayzgsycx54a2c",
"finished": true,
"data": {
"clfqjny0v0003yzgscnog1j9i": 10,
"clfqjtn8n0070yzgs6jgx9rog": "I love Formbricks"
}
}'
```
```json {{ title: 'Example Request Body' }}
{
"personId": "clfqjny0v000ayzgsycx54a2c",
"surveyId": "clfqz1esd0000yzah51trddn8",
"finished": true,
"data": {
"clfqjny0v0003yzgscnog1j9i": 10,
"clfqjtn8n0070yzgs6jgx9rog": "I love Formbricks"
}
}
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "clisyqeoi000219t52m5gopke",
"surveyId": "clfqz1esd0000yzah51trddn8",
"finished": true,
"person": {
"id": "clfqjny0v000ayzgsycx54a2c",
"attributes": {
"email": "me@johndoe.com"
}
},
"data": {
"clfqjny0v0003yzgscnog1j9i": 10,
"clfqjtn8n0070yzgs6jgx9rog": "I love Formbricks"
}
}
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "surveyId was not provided.",
"details": {
"surveyId": "This field is required."
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Update a response {{ tag: 'POST', label: '/api/v1/client/responses/<response-id>' }}
Update an existing response in a survey.
<Row>
<Col>
### Mandatory Body Fields
<Properties>
<Property name="data" type="string">
The data of the response as JSON object (key: questionId, value: answer).
</Property>
</Properties>
### Parameters Explained
| field name | required | default | description |
| ---------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| data | yes | - | The response data object (answers to the survey). In this object the key is the questionId, the value the answer of the user to this question. |
| finished | yes | false | Mark a response as complete to be able to filter accordingly. |
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/client/responses/<response-id>">
```bash {{ title: 'cURL' }}
curl --location --request POST 'https://app.formbricks.com/api/v1/client/responses/<response-id>' \
--data-raw '{
"personId": "clfqjny0v000ayzgsycx54a2c",
"surveyId": "clfqz1esd0000yzah51trddn8",
"finished": true,
"data": {
"clggpvpvu0009n40g8ikawby8": 5,
}
}'
```
```json {{ title: 'Example Request Body' }}
{
"personId": "clfqjny0v000ayzgsycx54a2c",
"surveyId": "clfqz1esd0000yzah51trddn8",
"finished": true,
"data": {
"clggpvpvu0009n40g8ikawby8": 5,
}
}
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "clisyqeoi000219t52m5gopke",
"surveyId": "clfqz1esd0000yzah51trddn8",
"finished": true,
"person": {
"id": "clfqjny0v000ayzgsycx54a2c",
"attributes": {
"email": "me@johndoe.com"
}
},
"data": {
"clfqjny0v0003yzgscnog1j9i": 10,
"clfqjtn8n0070yzgs6jgx9rog": "I love Formbricks",
"clggpvpvu0009n40g8ikawby8": 5
}
}
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "data was not provided.",
"details": {
"data": "This field is required."
}
}
```
```json {{ title: '404 Not Found' }}
{
"code": "not_found",
"message": "Response not found"
}
```
</CodeGroup>
</Col>
</Row>

View File

@@ -0,0 +1,301 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks People API: Fetch or Create Person Overview",
description:
"Dive into Formbricks' People API within the Public Client API suite, designed to work without authentication requirements. Seamlessly fetch or create a person by their userId and environmentId, optimizing client-side interactions while maintaining data privacy.",
};
#### Management API
# Action Classes API
This set of API can be used to
- [List Actions](#get-all-action-classes)
- [Get Action](#get-action-class-by-id)
- [Create Actions](#create-action-class)
- [Delete Actions](#delete-action-class)
<Note>You will need an API Key to interact with these APIs.</Note>
---
## Get all Action Classes {{ tag: 'GET', label: '/api/v1/management/action-classes' }}
<Row>
<Col>
Get all the existing action classes in your environment.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/action-classes">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/action-classes' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": [
{
"id": "cln8k0t47000gz87nw4ibwv35",
"createdAt": "2023-10-02T07:13:19.207Z",
"updatedAt": "2023-10-02T07:13:19.207Z",
"name": "New Session",
"description": "Gets fired when a new session is created",
"type": "automatic",
"noCodeConfig": null,
"environmentId": "cln8k0t47000fz87njmmu2bck"
},
{
"id": "cln8k0t55000uz87noerwdooj",
"createdAt": "2023-10-02T07:13:19.241Z",
"updatedAt": "2023-10-02T07:13:19.241Z",
"name": "Invited Team Member",
"description": "Person invited a team member",
"type": "noCode",
"noCodeConfig": {
"type": "innerHtml",
"innerHtml": {
"value": "Add Team Member"
}
},
"environmentId": "cln8k0t47000fz87njmmu2bck"
},
]
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Get Action Class by ID {{ tag: 'GET', label: '/api/v1/management/action-classes/<action-class-id>' }}
<Row>
<Col>
Fetch an action class by its ID.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/action-classes/<action-class-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/action-classes/<action-class-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln8k0t55000uz87noerwdooj",
"createdAt": "2023-10-02T07:13:19.241Z",
"updatedAt": "2023-10-02T07:13:19.241Z",
"name": "Invited Team Member",
"description": "Person invited a team member",
"type": "noCode",
"noCodeConfig": {
"type": "innerHtml",
"innerHtml": {
"value": "Add Team Member"
}
},
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Create Action Class {{ tag: 'POST', label: '/api/v1/management/action-classes/' }}
<Row>
<Col>
Create an action class.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
### Body
<CodeGroup title="Request Body">
```json {{ title: 'cURL' }}
{
"environmentId": "cln8k0t47000fz87njmmu2bck",
"name": "My Action from API",
"type": "code"
}
```
</CodeGroup>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/management/action-classes/">
```bash {{ title: 'cURL' }}
curl -X POST https://app.formbricks.com/api/v1/management/action-classes/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
-d '{"environmentId": "cln8k0t47000fz87njmmu2bck", "name": "My Action from API", "type": "code"}'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln9w1cno0008z8zu79nk5w0c",
"createdAt": "2023-10-03T05:37:26.100Z",
"updatedAt": "2023-10-03T05:37:26.100Z",
"name": "My Action from API",
"description": null,
"type": "code",
"noCodeConfig": null,
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete Action Class {{ tag: 'DELETE', label: '/api/v1/management/action-classes/<action-class-id>' }}
<Row>
<Col>
Delete an action class by its ID.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/management/action-classes/<action-class-id>">
```bash {{ title: 'cURL' }}
curl -X DELETE https://app.formbricks.com/api/v1/management/action-classes/<action-class-id> \
--header 'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln9w1cno0008z8zu79nk5w0c",
"createdAt": "2023-10-03T05:37:26.100Z",
"updatedAt": "2023-10-03T05:37:26.100Z",
"name": "My Action from API",
"description": null,
"type": "code",
"noCodeConfig": null,
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,103 @@
import Image from "next/image";
import AddApiKey from "./add-api-key.webp";
import ApiKeySecret from "./api-key-secret.webp";
export const metadata = {
title: "Formbricks API Key: Setup and Testing",
description:
"This guide provides step-by-step instructions to generate, store, and delete API keys, ensuring safe and authenticated access to your Formbricks account.",
};
#### API
# API Key Setup
## Auth: Personal API key
The API requests are authorized with a personal API key. This API key gives you the same rights as if you were logged in at formbricks.com - **don't share it around!**
### How to generate an API key
1. Go to your settings on [app.formbricks.com](https://app.formbricks.com).
2. Go to page “API keys”
<Image src={AddApiKey} alt="Add API Key" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
3. Create a key for the development or production environment.
4. Copy the key immediately. You wont be able to see it again.
<Image
src={ApiKeySecret}
alt="API Key Secret"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
<Note>
### Store API key safely
Anyone who has your API key has full control over your account.
For security reasons, you cannot view the API key again.
</Note>
### Test your API Key
Hit the below request to verify that you are authenticated with your API Key and the server is responding.
## Get My Profile {{ tag: 'GET', label: '/api/v1/me' }}
<Row>
<Col>
Get the product details and environment type of your account.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/me">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/me' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"id": "cll2m30r70004mx0huqkitgqv",
"createdAt": "2023-08-08T18:04:59.922Z",
"updatedAt": "2023-08-08T18:04:59.922Z",
"type": "production",
"product": {
"id": "cll2m30r60003mx0hnemjfckr",
"name": "My Product"
},
"widgetSetupCompleted": false
}
```
```json {{ title: '401 Not Authenticated' }}
Not authenticated
```
</CodeGroup>
</Col>
</Row>
---
### Delete a personal API key
1. Go to settings on [app.formbricks.com](https://app.formbricks.com/).
2. Go to page “API keys”.
3. Find the key you wish to revoke and select “Delete”.
4. Your API key will stop working immediately.

View File

@@ -0,0 +1,292 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks People API: Fetch or Create Person Overview",
description:
"Dive into Formbricks' People API within the Public Client API suite, designed to work without authentication requirements. Seamlessly fetch or create a person by their userId and environmentId, optimizing client-side interAttributes while maintaining data privacy.",
};
#### Management API
# Attribute Classes API
This set of API can be used to
- [List Attributes](#get-all-attribute-classes)
- [Get Attributes](#get-attribute-class-by-id)
- [Create Attributes](#create-attribute-class)
- [Delete Attributes](#delete-attribute-class)
<Note>You will need an API Key to interact with these APIs.</Note>
---
## Get all Attribute Classes {{ tag: 'GET', label: '/api/v1/management/attribute-classes' }}
<Row>
<Col>
Get all the existing attribute classes in your environment.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/attribute-classes">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/attribute-classes' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": [
{
"id": "cln8k0t47000kz87n3lh23zf0",
"createdAt": "2023-10-02T07:13:19.207Z",
"updatedAt": "2023-10-02T07:13:19.207Z",
"name": "email",
"description": "The email of the person",
"archived": false,
"type": "automatic",
"environmentId": "cln8k0t47000fz87njmmu2bck"
},
{
"id": "cln8k0t55000xz87nrtwbo7sf",
"createdAt": "2023-10-02T07:13:19.241Z",
"updatedAt": "2023-10-02T07:13:19.241Z",
"name": "Name",
"description": "Full Name of the Person",
"archived": false,
"type": "code",
"environmentId": "cln8k0t47000fz87njmmu2bck"
},
]
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Get Attribute Class by ID {{ tag: 'GET', label: '/api/v1/management/attribute-classes/<attribute-class-id>' }}
<Row>
<Col>
Fetch an Attribute class by its ID.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/attribute-classes/<attribute-class-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/attribute-classes/<attribute-class-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln8k0t47000jz87nfwcey6mh",
"createdAt": "2023-10-02T07:13:19.207Z",
"updatedAt": "2023-10-02T07:13:19.207Z",
"name": "userId",
"description": "The internal ID of the person",
"archived": false,
"type": "automatic",
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Create Attribute Class {{ tag: 'POST', label: '/api/v1/management/attribute-classes/' }}
<Row>
<Col>
Create an Attribute class.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
### Body
<CodeGroup title="Request Body">
```json {{ title: 'cURL' }}
{
"environmentId": "clmlmwdqq0003196ufewo6ibg",
"name": "My Attribute from API",
"type": "code",
"description": "My description"
}
```
</CodeGroup>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/management/attribute-classes/">
```bash {{ title: 'cURL' }}
curl -X POST https://app.formbricks.com/api/v1/management/attribute-classes/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
-d '{"environmentId": "clmlmwdqq0003196ufewo6ibg", "name": "My Attribute from API", "type": "code", "description":"My description"}'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "clna0hd7z0009z8zue2z3a7wy",
"createdAt": "2023-10-03T07:41:51.792Z",
"updatedAt": "2023-10-03T07:41:51.792Z",
"name": "My Attribute from API",
"description": null,
"archived": false,
"type": "code",
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete Attribute Class {{ tag: 'DELETE', label: '/api/v1/management/attribute-classes/<attribute-class-id>' }}
<Row>
<Col>
Delete an Attribute class by its ID.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/management/attribute-classes/<attribute-class-id>">
```bash {{ title: 'cURL' }}
curl -X DELETE https://app.formbricks.com/api/v1/management/attribute-classes/<attribute-class-id> \
--header 'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "clna0hd7z0009z8zue2z3a7wy",
"createdAt": "2023-10-03T07:41:51.792Z",
"updatedAt": "2023-10-03T07:41:51.792Z",
"name": "My Attribute from API",
"description": null,
"archived": false,
"type": "code",
"environmentId": "cln8k0t47000fz87njmmu2bck"
}
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,78 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks People API: Fetch or Create Person Overview",
description:
"Dive into Formbricks' People API within the Public Client API suite, designed to work without authentication requirements. Seamlessly fetch or create a person by their userId and environmentId, optimizing client-side interactions while maintaining data privacy.",
};
#### Management API
# Me API
This API can be used to get your own current environment details.
<Note>You will need an API Key to interact with these APIs.</Note>
---
## Get Environment {{ tag: 'GET', label: '/api/v1/management/me' }}
<Row>
<Col>
Get your current environment details.
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/me">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/me' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"id": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.207Z",
"updatedAt": "2023-10-02T07:14:14.162Z",
"type": "production",
"product": {
"id": "cln8k0t47000ez87n57aqywvz",
"name": "Demo Product"
},
"widgetSetupCompleted": true
}
```
```json {{ title: '401 Unauthorized' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,234 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks People API: Fetch or Create Person Overview",
description:
"Dive into Formbricks' People API within the Public Client API suite, designed to work without authentication requirements. Seamlessly fetch or create a person by their userId and environmentId, optimizing client-side interactions while maintaining data privacy.",
};
#### Management API
# People API
This set of API can be used to
- [List People](#list-people)
- [Get Person](#get-person)
- [Delete Person](#delete-person)
<Note>You will need an API Key to interact with these APIs.</Note>
---
## List People {{ tag: 'GET', label: '/api/v1/management/people' }}
<Row>
<Col>
List People
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/people">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/people' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": [
{
"id": "b4wgrzl363dn3zb6yy5gf265",
"attributes": {
"userId": "CYO618",
"email": "sophia@amazon.com",
"Name": "Sophia Johnson",
"Role": "Designer",
"Company": "Amazon",
"Experience": "7 years",
"Usage Frequency": "Yearly",
"Company Size": "1628 employees",
"Product Satisfaction Score": "62",
"Recommendation Likelihood": "9"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
},
{
"id": "jrb5iyzqvnkg9322ckhde3j4",
"attributes": {
"userId": "CYO511",
"email": "antonio@ibm.com",
"Name": "Antonio García",
"Role": "Designer",
"Company": "IBM",
"Experience": "1 years",
"Usage Frequency": "Weekly",
"Company Size": "4023 employees",
"Product Satisfaction Score": "77",
"Recommendation Likelihood": "4"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
},
]
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "Fields are missing or incorrectly formatted",
"details": {
"userId": ""
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Get Person {{ tag: 'GET', label: '/api/v1/management/people/<person-id>' }}
<Row>
<Col>
Get Person by ID
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/people/<person-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/people/<person-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "jrb5iyzqvnkg9322ckhde3j4",
"attributes": {
"userId": "CYO511",
"email": "antonio@ibm.com",
"Name": "Antonio García",
"Role": "Designer",
"Company": "IBM",
"Experience": "1 years",
"Usage Frequency": "Weekly",
"Company Size": "4023 employees",
"Product Satisfaction Score": "77",
"Recommendation Likelihood": "4"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
}
}
```
```json {{ title: '404 Not Found' }}
{
"code": "not_found",
"message": "Person not found",
"details": {
"resource_id": "clmlmykc2000019vz5o3jglsa",
"resource_type": "Person"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete Person {{ tag: 'DELETE', label: '/api/v1/management/people/<person-id>' }}
<Row>
<Col>
Delete Person by ID
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/management/people/<person-id>">
```bash {{ title: 'cURL' }}
curl -X DELETE https://app.formbricks.com/api/v1/management/people/<person-id> \
--header 'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"success": "Person deleted successfully"
}
}
```
```json {{ title: '404 Not Found' }}
{
"code": "not_found",
"message": "Person not found",
"details": {
"resource_id": "clmlmykc2000019vz5o3jglsa",
"resource_type": "Person"
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,289 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks Responses API Documentation - Manage Your Survey Data Seamlessly",
description:
"Unlock the full potential of Formbricks' Responses API. From fetching to updating survey responses, our comprehensive guide helps you integrate and manage survey data efficiently without compromising security. Ideal for client-side interactions.",
};
#### Management API
# Responses API
This set of API can be used to
- [List Responses](#list-all-responses)
- [Get Response](#get-response-by-id)
- [Delete Response](#delete-a-response)
<Note>You will need an API Key to interact with these APIs.</Note>
---
## List all Responses {{ tag: 'GET', label: '/api/v1/management/responses' }}
<Row>
<Col>
Retrieve all the responses you have received in your environment.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/responses">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/responses' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data":[
{
"id": "cln8k0tqv00pcz87no4qrw333",
"createdAt": "2023-10-02T07:13:20.023Z",
"updatedAt": "2023-10-02T07:13:20.023Z",
"surveyId": "cln8k0tqu00p7z87nqr4thi3k",
"finished": true,
"data": {
"interview-prompt": "clicked"
},
"meta": {
"userAgent": {
"os": "MacOS",
"browser": "Chrome"
}
},
"personAttributes": null,
"person": {
"id": "e0x4i5tvsp8puxfztyrwykvn",
"attributes": {
"userId": "CYO675",
"email": "ravi@netflix.com",
"Name": "Ravi Kumar",
"Role": "Manager",
"Company": "Netflix",
"Experience": "6 years",
"Usage Frequency": "Monthly",
"Company Size": "4610 employees",
"Product Satisfaction Score": "43",
"Recommendation Likelihood": "4"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
},
"notes": [],
"tags": []
},
]
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Get Response by ID {{ tag: 'GET', label: '/api/v1/management/responses/<response-id>' }}
<Row>
<Col>
Retrieve a response by its ID.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/responses/<response-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/responses/<response-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data":
{
"id": "cln8k0tqv00pbz87nwo5lr72b",
"createdAt": "2023-10-02T07:13:20.023Z",
"updatedAt": "2023-10-02T07:13:20.023Z",
"surveyId": "cln8k0tqu00p7z87nqr4thi3k",
"finished": true,
"data": {
"interview-prompt": "clicked"
},
"meta": {
"userAgent": {
"os": "Windows",
"browser": "Edge"
}
},
"personAttributes": null,
"person": {
"id": "hsx38f15v50ua8383uadagq5",
"attributes": {
"userId": "CYO278",
"email": "jorge@facebook.com",
"Name": "Jorge Sanchez",
"Role": "Product Manager",
"Company": "Facebook",
"Experience": "10 years",
"Usage Frequency": "Daily",
"Company Size": "1685 employees",
"Product Satisfaction Score": "84",
"Recommendation Likelihood": "6"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
},
"notes": [],
"tags": []
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete a response {{ tag: 'DELETE', label: '/api/v1/client/responses/<response-id>' }}
<Row>
<Col>
Delete Response by ID
### Mandatory Headers
<Properties>
<Property name="x-api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/client/responses/<response-id>">
```bash {{ title: 'cURL' }}
curl -X DELETE https://app.formbricks.com/api/v1/management/resposnes/<response-id> \
--header 'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "cln8k0tqv00pbz87nwo5lr72b",
"createdAt": "2023-10-02T07:13:20.023Z",
"updatedAt": "2023-10-02T07:13:20.023Z",
"surveyId": "cln8k0tqu00p7z87nqr4thi3k",
"finished": true,
"data": {
"interview-prompt": "clicked"
},
"meta": {
"userAgent": {
"os": "Windows",
"browser": "Edge"
}
},
"personAttributes": null,
"person": {
"id": "hsx38f15v50ua8383uadagq5",
"attributes": {
"userId": "CYO278",
"email": "jorge@facebook.com",
"Name": "Jorge Sanchez",
"Role": "Product Manager",
"Company": "Facebook",
"Experience": "10 years",
"Usage Frequency": "Daily",
"Company Size": "1685 employees",
"Product Satisfaction Score": "84",
"Recommendation Likelihood": "6"
},
"environmentId": "cln8k0t47000fz87njmmu2bck",
"createdAt": "2023-10-02T07:13:19.444Z",
"updatedAt": "2023-10-02T07:13:19.444Z"
},
"notes": [],
"tags": []
}
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "surveyId was not provided.",
"details": {
"surveyId": "This field is required."
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,667 @@
import { Fence } from "@/components/shared/Fence";
export const metadata = {
title: "Formbricks Surveys API Documentation - How to Retrieve All Surveys",
description:
"Explore the comprehensive guide to the Formbricks Surveys API. Learn how to effectively retrieve all the surveys in your environment with the necessary headers and API key setup. Includes sample request and response formats.",
};
#### Management API
# Surveys API
This set of API can be used to
- [List All Surveys](#list-all-surveys)
- [Get Survey](#get-survey-by-id)
- [Create Survey](#create-survey)
- [Delete Survey](#delete-survey-by-id)
<Note>You will need an API Key to interact with these APIs.</Note>
---
## List all surveys {{ tag: 'GET', label: '/api/v1/management/surveys' }}
<Row>
<Col>
Retrieve all the surveys you have for the environment.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/surveys">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/surveys' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": [
{
"id": "cllnfy2780fromy0hy7uoxvtn",
"createdAt": "2023-08-23T07:56:20.516Z",
"updatedAt": "2023-08-23T07:56:26.947Z",
"name": "Product Market Fit (Superhuman)",
"type": "link",
"environmentId": "cll2m30r70004mx0huqkitgqv",
"status": "inProgress",
"attributeFilters": [],
"displayOption": "displayOnce",
"autoClose": null,
"triggers": [],
"redirectUrl": null,
"recontactDays": null,
"questions": [
{
"id": "gml6mgy71efgtq8np3s9je5p",
"type": "cta",
"headline": "You are one of our power users! Do you have 5 minutes?",
"required": false,
"buttonLabel": "Happy to help!",
"logic": [
{
"condition": "skipped",
"destination": "end"
}
],
"html": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span>We would love to understand your user experience better. Sharing your insight helps a lot!</span></p>",
"buttonExternal": false,
"dismissButtonLabel": "No, thanks."
},
{
"id": "kp62fbqe8cfzmvy8qwpr81b2",
"type": "multipleChoiceSingle",
"headline": "How disappointed would you be if you could no longer use My Product?",
"subheader": "Please select one of the following options:",
"required": true,
"choices": [
{
"id": "bdgy1hnwd7uwmfxk1ljqp1n5",
"label": "Not at all disappointed"
},
{
"id": "poabnvgtwenp8rb2v70gj4hj",
"label": "Somewhat disappointed"
},
{
"id": "opfiqyqz8wrqn0i0f7t24d3n",
"label": "Very disappointed"
}
],
"shuffleOption": "none"
},
{
"id": "klvpwd4x08x8quesihvw5l92",
"type": "multipleChoiceSingle",
"headline": "What is your role?",
"subheader": "Please select one of the following options:",
"required": true,
"choices": [
{
"id": "c8nerw6l9gpsxcmqkn10f9hy",
"label": "Founder"
},
{
"id": "ebjqezei6a2axtuq86cleetn",
"label": "Executive"
},
{
"id": "ctiijjblyhlp22snypfamqt1",
"label": "Product Manager"
},
{
"id": "ibalyr0mhemfkkr82vypmg40",
"label": "Product Owner"
},
{
"id": "fipk606aegslbd0e7yhc0xjx",
"label": "Software Engineer"
}
],
"shuffleOption": "none"
},
{
"id": "ryo75306flyg72iaeditbv51",
"type": "openText",
"headline": "What type of people do you think would most benefit from My Product?",
"required": true
},
{
"id": "lkjaxb73ulydzeumhd51sx9g",
"type": "openText",
"headline": "What is the main benefit your receive from My Product?",
"required": true
},
{
"id": "ec7agikkr58j8uonhioinkyk",
"type": "openText",
"headline": "How can we improve My Product for you?",
"subheader": "Please be as specific as possible.",
"required": true
}
],
"thankYouCard": {
"enabled": true,
"headline": "Thank you!",
"subheader": "We appreciate your feedback."
},
"delay": 0,
"autoComplete": null,
"closeOnDate": null
}
]
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Get Survey by ID {{ tag: 'GET', label: '/api/v1/management/surveys/<survey-id>' }}
<Row>
<Col>
Get a specific survey by its ID.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/management/surveys/<survey-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/management/surveys/<survey-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln8k0tjz00n5z87nwq527h3z",
"createdAt": "2023-10-02T07:13:19.775Z",
"updatedAt": "2023-10-02T07:13:19.775Z",
"name": "Churn Survey",
"type": "link",
"environmentId": "cln8k0t47000fz87njmmu2bck",
"status": "inProgress",
"attributeFilters": [],
"displayOption": "displayOnce",
"autoClose": null,
"triggers": [],
"redirectUrl": null,
"recontactDays": null,
"questions": [
{
"id": "churn-reason",
"type": "multipleChoiceSingle",
"headline": "Why did you cancel your subscription?",
"subheader": "We're sorry to see you leave. Help us do better:",
"required": true,
"logic": [
{
"condition": "equals",
"value": "Difficult to use",
"destination": "easier-to-use"
},
{
"condition": "equals",
"value": "It's too expensive",
"destination": "30-off"
},
{
"condition": "equals",
"value": "I am missing features",
"destination": "missing-features"
},
{
"condition": "equals",
"value": "Poor customer service",
"destination": "poor-service"
},
{
"condition": "equals",
"value": "I just didn't need it anymore",
"destination": "end"
}
],
"choices": [
{
"id": "isud2xethsw63dlwl89kr4kj",
"label": "Difficult to use"
},
{
"id": "opuu4ba3dlele3n0gjkuh27c",
"label": "It's too expensive"
},
{
"id": "gnypapo0rhvkt8pwosrphvbl",
"label": "I am missing features"
},
{
"id": "wkgsrsrazd9kfunqhzjezx6t",
"label": "Poor customer service"
},
{
"id": "pykmgyyw74vg0gaeryj6bo4c",
"label": "I just didn't need it anymore"
}
]
},
{
"id": "easier-to-use",
"type": "openText",
"headline": "What would have made {{productName}} easier to use?",
"subheader": "",
"required": true,
"buttonLabel": "Send",
"logic": [
{
"condition": "submitted",
"destination": "end"
}
]
},
{
"id": "30-off",
"type": "cta",
"headline": "Get 30% off for the next year!",
"required": true,
"buttonLabel": "Get 30% off",
"logic": [
{
"condition": "clicked",
"destination": "end"
}
],
"html": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span>We'd love to keep you as a customer. Happy to offer a 30% discount for the next year.</span></p>",
"buttonUrl": "https://formbricks.com",
"buttonExternal": true,
"dismissButtonLabel": "Skip"
},
{
"id": "missing-features",
"type": "openText",
"headline": "What features are you missing?",
"subheader": "",
"required": true,
"logic": [
{
"condition": "submitted",
"destination": "end"
}
]
},
{
"id": "poor-service",
"type": "cta",
"headline": "So sorry to hear 😔 Talk to our CEO directly!",
"required": true,
"buttonLabel": "Send email to CEO",
"logic": [
{
"condition": "clicked",
"destination": "end"
}
],
"html": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span>We aim to provide the best possible customer service. Please email our CEO and she will personally handle your issue.</span></p>",
"buttonUrl": "mailto:ceo@company.com",
"buttonExternal": true,
"dismissButtonLabel": "Skip"
}
],
"thankYouCard": {
"enabled": false
},
"delay": 0,
"autoComplete": null,
"closeOnDate": null,
"surveyClosedMessage": null,
"verifyEmail": null
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Create Survey {{ tag: 'POST', label: '/api/v1/management/surveys' }}
<Row>
<Col>
Create a survey
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
### Body
<CodeGroup title="Request Body">
```json {{ title: 'cURL' }}
{
"environmentId": "clmlmwdqq0003196ufewo6ibg",
"type": "link",
"name": "My new Survey"
}
```
</CodeGroup>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/management/surveys">
```bash {{ title: 'cURL' }}
curl -X POST \
'https://app.formbricks.com/api/v1/management/surveys' \
--header \
'x-api-key: <your-api-key>'
```
```bash {{ title: 'cURL' }}
curl -X POST https://app.formbricks.com/api/v1/management/surveys/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
-d '{"environmentId": "cln8k0t47000fz87njmmu2bck", "name": "My Survey from API", "type": "link"}'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "clna6bqnz000az8zubq3e757t",
"createdAt": "2023-10-03T10:25:26.975Z",
"updatedAt": "2023-10-03T10:25:26.975Z",
"name": "My new Survey",
"redirectUrl": null,
"type": "link",
"environmentId": "cln8k0t47000fz87njmmu2bck",
"status": "draft",
"questions": [],
"thankYouCard": {
"enabled": false
},
"displayOption": "displayOnce",
"recontactDays": null,
"autoClose": null,
"delay": 0,
"autoComplete": null,
"closeOnDate": null,
"surveyClosedMessage": null,
"verifyEmail": null
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete Survey by ID {{ tag: 'DELETE', label: '/api/v1/management/surveys/<survey-id>' }}
<Row>
<Col>
Delete a survey by its ID.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/management/surveys/<survey-id>">
```bash {{ title: 'cURL' }}
curl -X DELETE \
'https://app.formbricks.com/api/v1/management/surveys/<survey-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{title:'200 Success'}}
{
"data": {
"id": "cln8k0tjz00n5z87nwq527h3z",
"createdAt": "2023-10-02T07:13:19.775Z",
"updatedAt": "2023-10-02T07:13:19.775Z",
"name": "Churn Survey",
"type": "link",
"environmentId": "cln8k0t47000fz87njmmu2bck",
"status": "inProgress",
"attributeFilters": [],
"displayOption": "displayOnce",
"autoClose": null,
"triggers": [],
"redirectUrl": null,
"recontactDays": null,
"questions": [
{
"id": "churn-reason",
"type": "multipleChoiceSingle",
"headline": "Why did you cancel your subscription?",
"subheader": "We're sorry to see you leave. Help us do better:",
"required": true,
"logic": [
{
"condition": "equals",
"value": "Difficult to use",
"destination": "easier-to-use"
},
{
"condition": "equals",
"value": "It's too expensive",
"destination": "30-off"
},
{
"condition": "equals",
"value": "I am missing features",
"destination": "missing-features"
},
{
"condition": "equals",
"value": "Poor customer service",
"destination": "poor-service"
},
{
"condition": "equals",
"value": "I just didn't need it anymore",
"destination": "end"
}
],
"choices": [
{
"id": "isud2xethsw63dlwl89kr4kj",
"label": "Difficult to use"
},
{
"id": "opuu4ba3dlele3n0gjkuh27c",
"label": "It's too expensive"
},
{
"id": "gnypapo0rhvkt8pwosrphvbl",
"label": "I am missing features"
},
{
"id": "wkgsrsrazd9kfunqhzjezx6t",
"label": "Poor customer service"
},
{
"id": "pykmgyyw74vg0gaeryj6bo4c",
"label": "I just didn't need it anymore"
}
]
},
{
"id": "easier-to-use",
"type": "openText",
"headline": "What would have made {{productName}} easier to use?",
"subheader": "",
"required": true,
"buttonLabel": "Send",
"logic": [
{
"condition": "submitted",
"destination": "end"
}
]
},
{
"id": "30-off",
"type": "cta",
"headline": "Get 30% off for the next year!",
"required": true,
"buttonLabel": "Get 30% off",
"logic": [
{
"condition": "clicked",
"destination": "end"
}
],
"html": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span>We'd love to keep you as a customer. Happy to offer a 30% discount for the next year.</span></p>",
"buttonUrl": "https://formbricks.com",
"buttonExternal": true,
"dismissButtonLabel": "Skip"
},
{
"id": "missing-features",
"type": "openText",
"headline": "What features are you missing?",
"subheader": "",
"required": true,
"logic": [
{
"condition": "submitted",
"destination": "end"
}
]
},
{
"id": "poor-service",
"type": "cta",
"headline": "So sorry to hear 😔 Talk to our CEO directly!",
"required": true,
"buttonLabel": "Send email to CEO",
"logic": [
{
"condition": "clicked",
"destination": "end"
}
],
"html": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span>We aim to provide the best possible customer service. Please email our CEO and she will personally handle your issue.</span></p>",
"buttonUrl": "mailto:ceo@company.com",
"buttonExternal": true,
"dismissButtonLabel": "Skip"
}
],
"thankYouCard": {
"enabled": false
},
"delay": 0,
"autoComplete": null,
"closeOnDate": null,
"surveyClosedMessage": null,
"verifyEmail": null
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -0,0 +1,400 @@
export const metadata = {
title: "Formbricks Webhook API Documentation - List, Retrieve, Create, and Delete Webhooks",
description:
"Explore the comprehensive guide to the Formbricks Webhooks API. This is all you need to interact and play with the Formbricks Webhooks and integrate them into any third party app of your choice",
};
#### Management API
# Webhook API
Formbricks' Webhook API offers a powerful interface for interacting with webhooks. Webhooks allow you to receive real-time HTTP notifications of changes to specific objects in the Formbricks environment.
The behavior of the webhooks is determined by their trigger settings. The trigger determines which updates the webhook sends. Current available triggers include "responseCreated", "responseUpdated", and "responseFinished". This allows you to customize your webhooks to only send notifications for the events that are relevant to your application.
Webhooks are tied to a specific Formbricks environment. Once set, a webhook will receive updates from all surveys within this environment. This makes it easy to manage your data flow and ensure that all relevant updates are caught by the webhook.
This set of API can be used to
- [List All Webhooks](#list-webhooks)
- [Get Webhook](#retrieve-webhook-by-id)
- [Create Webhook](#create-webhook)
- [Delete Webhook](#delete-webhook-by-id)
And the detailed Webhook Payload is elaborated [here](#webhook-payload).
These APIs are designed to facilitate seamless integration of Formbricks with third-party systems. By making use of our webhook API, you can automate the process of sending data to these systems whenever significant events occur within your Formbricks environment.
<Note>You will need an API Key to interact with these APIs.</Note>
---
## List Webhooks {{ tag: 'GET', label: '/api/v1/webhooks' }}
<Row>
<Col>
Learn how to retrieve a list of all webhooks via API.
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/webhooks">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/webhooks' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": [
{
"id": "cliu1kdza000219zftad4ip6c",
"createdAt": "2023-06-13T08:49:04.198Z",
"updatedAt": "2023-06-13T08:49:04.198Z",
"url": "https://mysystem.com/myendpoint",
"environmentId": "clisypjy4000319t4imm289uo",
"triggers": [
"responseFinished"
]
}
]
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Retrieve Webhook by ID {{ tag: 'GET', label: '/api/v1/webhooks/<webhook-id>' }}
<Row>
<Col>
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="GET" label="/api/v1/webhooks/<webhook-id>">
```bash {{ title: 'cURL' }}
curl --location \
'https://app.formbricks.com/api/v1/webhooks/<webhook-id>' \
--header \
'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "cliu167rk000019zfhbo68bar",
"createdAt": "2023-06-13T08:38:02.960Z",
"updatedAt": "2023-06-13T08:38:02.960Z",
"url": "https://mysystem.com/myendpoint",
"environmentId": "clisypjy4000319t4imm289uo",
"triggers": [
"responseFinished"
]
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Create Webhook {{ tag: 'POST', label: '/api/v1/webhooks' }}
Add a webhook to your product.
<Row>
<Col>
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
### Request Body Parameters
<Properties>
<Property name="url" type="string" required>
The URL where the webhook will send data to.
</Property>
<Property name="triggers" type="string[]" required>
List of events that will trigger the webhook.
</Property>
<Property name="surveyIds" type="string[]">
List of survey IDs that will trigger the webhook. If not provided, the webhook will be triggered for all surveys.
</Property>
</Properties>
| field name | required | default | description |
| ---------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
| url | yes | - | The endpoint that the webhook will send data to |
| trigger | yes | - | The event that will trigger the webhook ("responseCreated" or "responseUpdated" or "responseFinished") |
| surveyIds | no | - | List of survey IDs that will trigger the webhook. If not provided, the webhook will be triggered for all surveys. |
</Col>
<Col sticky>
<CodeGroup title="Request" tag="POST" label="/api/v1/webhooks">
```bash {{ title: 'cURL' }}
curl --location --request POST 'https://app.formbricks.com/api/v1/webhooks' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://mysystem.com/myendpoint",
"triggers": ["responseFinished"]
}'
```
```json {{ title: 'Example Request Body' }}
{
"url": "https://mysystem.com/myendpoint",
"triggers": ["responseFinished"]
}
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "cliu1kdza000219zftad4ip6c",
"createdAt": "2023-06-13T08:49:04.198Z",
"updatedAt": "2023-06-13T08:49:04.198Z",
"url": "https://mysystem.com/myendpoint",
"environmentId": "clisypjy4000319t4imm289uo",
"triggers": ["responseFinished"],
"surveyIds": ["clisypjy4000319t4imm289uo"]
}
}
```
```json {{ title: '400 Bad Request' }}
{
"code": "bad_request",
"message": "Missing trigger",
"details": {
"missing_field": "trigger"
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Delete Webhook by ID {{ tag: 'DELETE', label: '/api/v1/webhooks/<webhook-id>' }}
<Row>
<Col>
### Mandatory Headers
<Properties>
<Property name="x-Api-Key" type="string">
Your Formbricks API key.
</Property>
</Properties>
</Col>
<Col sticky>
<CodeGroup title="Request" tag="DELETE" label="/api/v1/webhooks/<webhook-id>">
```bash {{ title: 'cURL' }}
curl --location --request DELETE 'https://app.formbricks.com/api/v1/webhooks/<webhook-id>' \
--header 'x-api-key: <your-api-key>'
```
</CodeGroup>
<CodeGroup title="Response">
```json {{ title: '200 Success' }}
{
"data": {
"id": "cliu167rk000019zfhbo68bar",
"createdAt": "2023-06-13T08:38:02.960Z",
"updatedAt": "2023-06-13T08:38:02.960Z",
"url": "https://mysystem.com/myendpoint",
"environmentId": "clisypjy4000319t4imm289uo",
"triggers": ["responseFinished"]
}
}
```
```json {{ title: '401 Not Authenticated' }}
{
"code": "not_authenticated",
"message": "Not authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
}
}
```
```json {{ title: '404 Not Found' }}
{
"code": "not_found",
"message": "Webhook not found.",
"details": {
"webhookId": "The requested webhook does not exist."
}
}
```
</CodeGroup>
</Col>
</Row>
---
## Webhook Payload
This documentation helps understand the payload structure that will be received when the webhook is triggered in Formbricks.
<Row>
<Col sticky>
| Variable | Type | Description |
| --------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| webhookId | String | Webhook's Id |
| event | String | The name of the trigger event [responseCreated, responseUpdated, responseFinished] |
| data | Object | Contains the details of the newly created response. |
| data.id | String | Formbricks Response ID. |
| data.createdAt | String | The timestamp when the response was created. |
| data.updatedAt | String | The timestamp when the response was last updated. |
| data.surveyId | String | The identifier of the survey associated with this response. |
| data.finished | Boolean | A boolean value indicating whether the survey response is marked as finished. |
| data.data | Object | An object containing the response data, where keys are question identifiers, and values are the corresponding answers given by the respondent. |
| data.meta | Object | Additional metadata related to the response, such as the user's operating system and browser information. |
| data.personAttributes | Object | An object with attributes related to the respondent, such as their email and a user ID (if available). |
| data.person | Object | Information about the respondent, including their unique id, attributes, and creation/update timestamps. |
| data.notes | Array | An array of notes associated with the response (if any). |
| data.tags | Array | An array of tags assigned to the response (if any). |
</Col>
<Col>
### An example webhook payload
<CodeGroup title="Payload">
```json
{
"webhookId": "cljwxvjos0003qhnvj2jg4k5i",
"event": "responseCreated",
"data": {
"id": "cljwy2m8r0001qhclco1godnu",
"createdAt": "2023-07-10T14:14:17.115Z",
"updatedAt": "2023-07-10T14:14:17.115Z",
"surveyId": "cljsf3d7a000019cv9apt2t27",
"finished": false,
"data": {
"qumbk3fkr6cky8850bvvq5z1": "Executive"
},
"meta": {
"userAgent": {
"os": "Mac OS",
"browser": "Chrome"
}
},
"personAttributes": {
"email": "test@web.com",
"userId": "THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING"
},
"person": {
"id": "cljold01t0000qh8ewzigzmjk",
"attributes": {
"email": "test@web.com",
"userId": "THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING"
},
"createdAt": "2023-07-04T17:56:17.154Z",
"updatedAt": "2023-07-04T17:56:17.154Z"
},
"notes": [],
"tags": []
}
}
```
</CodeGroup>
</Col>
</Row>
---

View File

@@ -1,27 +1,35 @@
import { Layout } from "@/components/docs/Layout";
export const meta = {
title: "Setting attributes with code",
export const metadata = {
title: "Guide for Setting Custom Attributes | Formbricks Documentation",
description:
"Set attributes in code using setAttribute function. Enhance user segmentation, target surveys effectively, and gather valuable insights for better decisions. All open-source.",
"Learn how to set attributes in code using setAttribute function. Enhance user segmentation, target surveys effectively, and gather valuable insights for better decisions. Easily send user-specific details for better survey segmentation and gain deeper insights.",
};
#### Attributes
# Setting attributes with code
One way to send attributes to Formbricks is in your code. In Formbricks, there are two special attributes for [user identification](/docs/attributes/identify-users)(user ID & email) and custom attributes. An example:
### Setting Custom User Attributes
## Setting Custom User Attributes
You can use the setAttribute function to set any custom attribute for the user (e.g. name, plan, etc.):
<Col>
<CodeGroup title="Setting Plan to Pro">
```javascript
formbricks.setAttribute("Plan", "Pro");
```
</CodeGroup>
</Col>
Generally speaking, the setAttribute function works like this:
<Col>
<CodeGroup title="Setting Custom Attributes">
```javascript
formbricks.setAttribute("attribute_key", "attribute_value");
```
</CodeGroup>
</Col>
Where `attributeName` is the name of the attribute you want to set, and `attributeValue` is the value of the attribute you want to set.
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

View File

@@ -0,0 +1,70 @@
export const metadata = {
title: "User Identification in Formbricks | Enhancing Survey Feedback",
description:
"A comprehensive guide on identifying users in Formbricks without compromising privacy. Learn how to set User ID, email, and custom attributes to optimize survey targeting, recontact users, and control survey intervals, all while respecting user anonymity.",
};
#### Attributes
# Identifying Users
At Formbricks, we value user privacy. By default, Formbricks doesn't collect or store any personal information from your users. However, we understand that it can be helpful for you to know which user submitted the feedback and also functionality like recontacting users and controlling the waiting period between surveys requires identifying the users. That's why we provide a way for you to share existing user data from your app, so you can view it in our dashboard.
If you would like to use the User Identification feature of Formbricks, target surveys to specific user segments and see more information about the user who responded to a survey, you can identify users by setting a User ID, email, and custom attributes. This guide will walk you through how to do that.
## Setting User ID
To enable the User identification feature you need to set the `userId` in the init() call of Formbricks. Only when the `userId` is set the person will be visible in the Formbricks dashboard. The `userId` can be any string and it's best to use the default identifier you use in your app (e.g. unique id from database or the email address if it's unique) but you can also anonymize these as long as they are unique for every user.
<Col>
<CodeGroup title="Setting User ID">
```javascript
formbricks.init({
environmentId: "<environment-id>",
apiHost: "<api-host>",
userID: "<user_id>",
});
```
</CodeGroup>
</Col>
## Setting User Email
The `userId` is the main identifier used in Formbricks and user identification is only enabled when it is set. In addition to the userId you can also set attributes that describes the user better. The email address can be set using the setEmail function:
<Col>
<CodeGroup title="Setting Email">
```javascript
formbricks.setEmail("user@example.com");
```
</CodeGroup>
</Col>
### Setting Custom User Attributes
You can use the setAttribute function to set any custom attribute for the user (e.g. name, plan, etc.):
<Col>
<CodeGroup title="Setting Custom Attributes">
```javascript
formbricks.setAttribute("Plan", "free");
```
</CodeGroup>
</Col>
### Logging Out Users
When a user logs out of your webpage, make sure to log them out of Formbricks as well. This will prevent new activity from being associated with an incorrect user. Use the logout function:
<Col>
<CodeGroup title="Logging out User">
```javascript
formbricks.logout();
```
</CodeGroup>
</Col>

View File

@@ -1,11 +1,13 @@
import { Layout } from "@/components/docs/Layout";
export const meta = {
title: "What are attributes and why are they useful?",
export const metadata = {
title: "Understanding User Attributes in Formbricks Surveys",
description:
"How to use attributes for user segmentation, enhancing survey targeting & results. Improve feedback quality and make data-driven decisions.",
"Dive into the importance of attributes in surveys. Learn how key-value pairs can significantly improve survey targeting, enhance feedback quality, and guide data-driven decisions with Formbricks.",
};
#### Attributes
# What are attributes and why are they useful?
Surveying your user base without segmentation leads to weak results and survey fatigue. Attributes help you segment your users into groups.
## What are attributes?
@@ -19,5 +21,3 @@ Attributes are sent from your application to Formbricks and are associated with
## Why are attributes useful?
Attributes help show surveys to the right group of people. For example, you can show a survey to all users who have a "Plan" attribute set to "Paid".
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -1,28 +1,29 @@
import { Layout } from "@/components/docs/Layout";
import { Fence } from "@/components/shared/Fence";
import { Callout } from "@/components/shared/Callout";
import Image from "next/image";
import DemoPreview from "@/components/dummyUI/DemoPreview";
import CreateChurnFlow from "./create-cancel-flow.png";
import ChangeText from "./change-text.png";
import TriggerInnerText from "./trigger-inner-text.png";
import TriggerCSS from "./trigger-css-selector.png";
import TriggerPageUrl from "./trigger-page-url.png";
import RecontactOptions from "./recontact-options.png";
import PublishSurvey from "./publish-survey.png";
import SelectAction from "./select-action.png";
import CreateChurnFlow from "./create-cancel-flow.webp";
import ChangeText from "./change-text.webp";
import TriggerInnerText from "./trigger-inner-text.webp";
import TriggerCSS from "./trigger-css-selector.webp";
import TriggerPageUrl from "./trigger-page-url.webp";
import RecontactOptions from "./recontact-options.webp";
import PublishSurvey from "./publish-survey.webp";
import SelectAction from "./select-action.webp";
export const meta = {
title: "Learn from Churn",
description: "To know how to decrease churn, you have to understand it. Use a micro-survey.",
export const metadata = {
title: "Mastering Churn Surveys with Formbricks | Essential Tips & Steps",
description: "Learn how to effectively utilize Formbricks' Churn Surveys to gain deeper insights into user departures. Dive into a step-by-step guide to craft, trigger, and optimize your churn surveys, ensuring you capture invaluable feedback at critical junctures",
};
#### Best Practices
# Learn from Churn
Churn is hard, but can teach you a lot. Whenever a user decides that your product isnt worth it anymore, you have a unique opportunity to get deep insights. These insights are pure gold to reduce churn.
## Purpose
The Churn Survey is among the most effective ways to identify weaknesses in you offering. People were willing to pay but now are not anymore: What changed? Lets find out!
The Churn Survey is among the most effective ways to identify weaknesses in your offering. People were willing to pay but now are not anymore: What changed? Lets find out!
## Preview
@@ -43,11 +44,11 @@ To run the Churn Survey in your app you want to proceed as follows:
3. Choose correct recontact options to never miss a feedback
4. Prevent that churn!
<Callout title="Formbricks Widget running?" type="note">
We assume that you have already installed the Formbricks Widget in your web app. Its required to display
messages and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins
max.)](/docs/getting-started/quickstart)
</Callout>
<Note>
## Formbricks Widget running?
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note>
### 1. Create new Churn Survey
@@ -55,13 +56,23 @@ If you don't have an account yet, create one at [app.formbricks.com](https://app
Click on "Create Survey" and choose the template “Churn Survey”:
<Image src={CreateChurnFlow} alt="Create churn survey by template" quality="100" className="rounded-lg" />
<Image
src={CreateChurnFlow}
alt="Create churn survey by template"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 2. Update questions (if you like)
Youre free to update the question and answer options. However, based on our experience, we suggest giving the provided template a go 😊
<Image src={ChangeText} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ChangeText}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
_Want to change the button color? You can do so in the product settings._
@@ -77,49 +88,79 @@ To create the trigger for your Churn Survey, you have two options to choose from
1. **Trigger by innerText:** You likely have a “Cancel Subscription” button in your app. You can setup a user Action with the according `innerText` to trigger the survey, like so:
<Image src={TriggerInnerText} alt="Set the trigger by inner Text" quality="100" className="rounded-lg" />
<Image
src={TriggerInnerText}
alt="Set the trigger by inner Text"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
2. **Trigger by CSS Selector:** In case you have more than one button saying “Cancel Subscription” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“cancel-subscription”` and set your user action up like so:
<Image src={TriggerCSS} alt="Set the trigger by CSS Selector" quality="100" className="rounded-lg" />
<Image
src={TriggerCSS}
alt="Set the trigger by CSS Selector"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
3. **Trigger by pageURL:** Lastly, you could also display your survey on a subpage “/subscription-cancelled” where you forward users once they cancelled the trial subscription. You can then create a user Action with the type `pageURL` with the following settings:
<Image src={TriggerPageUrl} alt="Set the trigger by page URL" quality="100" className="rounded-lg" />
<Image
src={TriggerPageUrl}
alt="Set the trigger by page URL"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
Whenever a user visits this page, matches the filter conditions above and the recontact options (below) the survey will be displayed ✅
Here is our complete [Actions manual](/docs/actions/why) covering [Code](/docs/actions/code) and [No-Code](/docs/actions/no-code) Actions.
<Callout title="Pre-churn flow coming soon" type="note">
Were currently building full-screen survey pop-ups. Youll be able to prevent users from closing the survey unless they respond to it. Its certainly debatable if you want that but you could force them to click through the survey before letting them cancel 🤷
</Callout>
<Note>
## Pre-churn flow coming soon
Were currently building full-screen survey pop-ups. Youll be able to prevent users from closing the survey
unless they respond to it. Its certainly debatable if you want that but you could force them to click through
the survey before letting them cancel 🤷
</Note>
### 5. Select Action in the “When to ask” card
<Image src={SelectAction} alt="Select feedback button action" quality="100" className="rounded-lg" />
<Image
src={SelectAction}
alt="Select feedback button action"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 6. Last step: Set Recontact Options correctly
Lastly, scroll down to “Recontact Options”. Here you have to choose the correct settings to make sure you milk these super valuable insights. You want to make sure that this survey is always displayed, no matter if the user has already seen a survey in the past days:
<Image src={RecontactOptions} alt="Set recontact options" quality="100" className="rounded-lg" />
<Image
src={RecontactOptions}
alt="Set recontact options"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
These settings make sure the survey is always displayed, when a user wants to Cancel their subscription.
### 7. Congrats! Youre ready to publish your survey 💃
<Image src={PublishSurvey} alt="Publish survey" quality="100" className="rounded-lg" />
<Image
src={PublishSurvey}
alt="Publish survey"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
<Callout title="Formbricks Widget running?" type="warning">
You need to have the Formbricks Widget installed to display the Churn Survey in your app. Please follow
[this tutorial (Step 4 onwards)](/docs/getting-started/quickstart) to install the widget.
</Callout>
<Note>
## Formbricks Widget running?
You need to have the Formbricks Widget installed to display the Churn Survey in your app. Please follow [this
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget.
</Note>
###
# Get those insights! 🎉
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -1,23 +1,26 @@
import { Layout } from "@/components/docs/Layout";
import { Fence } from "@/components/shared/Fence";
import { Callout } from "@/components/shared/Callout";
import Image from "next/image";
import DocsFeedback from "@/components/docs/DocsFeedback";
import AddAction from "./add-action.png";
import ChangeId from "./change-id.png";
import DocsNavi from "./docs-navi.png";
import DocsTemplate from "./docs-template.png";
import SelectNonevent from "./select-nonevent.png";
import SwitchToDev from "./switch-to-dev.png";
import WhenToAsk from "./when-to-ask.png";
import CopyIds from "./copy-ids.png";
import AddAction from "./add-action.webp";
import ChangeId from "./change-id.webp";
import DocsNavi from "./docs-navi.webp";
import DocsTemplate from "./docs-template.webp";
import SelectNonevent from "./select-nonevent.webp";
import SwitchToDev from "./switch-to-dev.webp";
import WhenToAsk from "./when-to-ask.webp";
import CopyIds from "./copy-ids.webp";
export const meta = {
title: "Docs Feedback",
description: "Docs Feedback allows you to measure how clear your documentation is.",
export const metadata = {
title:
"Integrate Docs Feedback in Your Website: A Step-by-Step Guide on getting feedback on your Documentation with Formbricks",
description:
"Learn the step-by-step process to effectively measure the clarity of your documentation using Formbricks Cloud. Dive into best practices, setting up cloud environments, integrating feedback widgets on your frontend, and connecting to the Formbricks API for a seamless user experience.",
};
#### Best Practices
# Docs Feedback
Docs Feedback allows you to measure how clear your documentation is.
## Purpose
@@ -43,43 +46,74 @@ To get this running, you'll need a bit of time. Here are the steps we're going t
2. In the Menu (top right) you see that you can switch between a “Development” and a “Production” environment. These are two separate environments so your test data doesnt mess up the insights from prod. Switch to “Development”:
<Image src={SwitchToDev} alt="switch to dev environment" quality="100" className="rounded-lg" />
<Image
src={SwitchToDev}
alt="switch to dev environment"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
3. Then, create a survey using the template “Docs Feedback”:
<Image src={DocsTemplate} alt="select docs template" quality="100" className="rounded-lg" />
<Image
src={DocsTemplate}
alt="select docs template"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
4. Change the Internal Question ID of the first question to **“isHelpful”** to make your life easier 😉
<Image src={ChangeId} alt="switch to dev environment" quality="100" className="rounded-lg" />
<Image
src={ChangeId}
alt="switch to dev environment"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
5. In the same way, you can change the Internal Question ID of the _Please elaborate_ question to **“additionalFeedback”** and the one of the _Page URL_ question to **“pageUrl”**.
<Callout title="Answers need to be identical" type="note">
If you want different answers than “Yes 👍” and “No 👎” you need update the choices accordingly. They have
to be identical to the frontend we're building in the next step.
</Callout>
<Note>
## Answers need to be identical If you want different answers than “Yes 👍” and “No 👎” you need to update the
choices accordingly. They have to be identical to the frontend we're building in the next step.
</Note>
6. Click on “Continue to Settings or select the audience tab manually. Scroll down to “When to ask” and create a new Action:
<Image src={WhenToAsk} alt="set up when to ask card" quality="100" className="rounded-lg" />
<Image
src={WhenToAsk}
alt="set up when to ask card"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
7. Our goal is to create an event that never fires. This is a bit nonsensical because it is a workaround. Stick with me 😃 Fill the action out like on the screenshot:
<Image src={AddAction} alt="add action" quality="100" className="rounded-lg" className="rounded" />
<Image
src={AddAction}
alt="add action"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
className="rounded"
/>
8. Select the Non-Event in the dropdown. Now you see that the “Publish survey” button is active. Publish your survey 🤝
<Image src={SelectNonevent} alt="select nonevent" quality="100" className="rounded-lg" />
<Image
src={SelectNonevent}
alt="select nonevent"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
**Youre all setup in Formbricks Cloud for now 👍**
### 2. Build the frontend
<Callout title="Your frontend might work differently" type="note">
Your frontend likely looks and works differently. This is an example specific to our tech stack. We want to
illustrate what you should consider building yours 😊
</Callout>
<Note>
## Your frontend might work differently Your frontend likely looks and works differently. This is an example
specific to our tech stack. We want to illustrate what you should consider building yours 😊
</Note>
Before we start, lets talk about the widget. It works like this:
@@ -94,16 +128,25 @@ This allows us to capture and analyze partial feedback where the user is not wil
2. Likely, you have a template file or similar which renders the navigation at the bottom of the page:
<Image src={DocsNavi} alt="doc navigation" quality="100" className="rounded-lg" className="rounded" />
<Image
src={DocsNavi}
alt="doc navigation"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
className="rounded"
/>
Locate that file. We are using the [Tailwind Template “Syntax”](https://tailwindui.com/templates/syntax) for our docs. Here is our [Layout.tsx](https://github.com/formbricks/formbricks/blob/main/apps/formbricks-com/components/docs/Layout.tsx) file.
3. Write the frontend code for the widget. Here is the full component (we break it down right below):
<Col>
<CodeGroup title="Entire Widget">
```tsx
import { useState } from "react";
import { handleFeedbackSubmit, updateFeedback } from "../../lib/handleFeedbackSubmit";
import { Popover, PopoverTrigger, PopoverContent, Button } from "@formbricks/ui";
import { Popover, PopoverTrigger, PopoverContent } from "@formbricks/ui/Popover";
import { Button } from "@formbricks/ui/Button";
import { useRouter } from "next/router";
export default function DocsFeedback() {
@@ -173,9 +216,13 @@ export default function DocsFeedback() {
}
```
</CodeGroup>
</Col>
**Lets break it down!**
Setting the local states and getting the current URL:
<Col>
<CodeGroup title="State Management">
```tsx
const router = useRouter(); // to get the URL of the current docs page
@@ -185,11 +232,13 @@ const [responseId, setResponseId] = useState(null); // to store responseID (will
const [freeText, setFreeText] = useState(""); // to locally store the additional info provided by user
```
</CodeGroup>
</Col>
Disabling feedback if config environment variables are not set properly:
<Col>
<CodeGroup title="Disable feedback if incorrect config env vars">
```tsx
// Disables feedback if key info like survey ID, API Host, or Formbricks environment ID are missing
if (
!process.env.NEXT_PUBLIC_FORMBRICKS_COM_DOCS_FEEDBACK_SURVEY_ID ||
!process.env.NEXT_PUBLIC_FORMBRICKS_COM_API_HOST ||
@@ -199,7 +248,11 @@ if (
}
```
</CodeGroup>
</Col>
The actual frontend (read comments):
<Col>
<CodeGroup title="Actual Frontend">
```tsx
return (
@@ -254,11 +307,15 @@ return (
}
```
</CodeGroup>
</Col>
## 3. Connecting to the Formbricks API
The last step is to hook up your sparkling new frontend to the Formbricks API. To do so, we followed the “[Create Response](/docs/client-api/create-response)” and “[Update Response](/docs/client-api/update-response)” pages in our docs.
Here is the code for the `handleFeedbackSubmit` function with comments:
<Col>
<CodeGroup title="handleFeedbackSubmit() function definition">
```tsx
export const handleFeedbackSubmit = async (YesNo, pageUrl) => {
@@ -299,7 +356,11 @@ export const handleFeedbackSubmit = async (YesNo, pageUrl) => {
};
```
</CodeGroup>
</Col>
And this is the `updateFeedback` function with comments:
<Col>
<CodeGroup title="updateFeedback() function definition">
```tsx
export const updateFeedback = async (freeText, responseId) => {
@@ -338,6 +399,8 @@ export const updateFeedback = async (freeText, responseId) => {
};
```
</CodeGroup>
</Col>
Thats almost it! 🤸
## 4. Setting it up for testing
@@ -349,9 +412,11 @@ Before you roll it out in production, you want to test it. To do so, you need tw
When you are on the survey detail page, youll find both of them in the URL:
<Image src={CopyIds} alt="copy IDs" quality="100" className="rounded-lg" />
<Image src={CopyIds} alt="copy IDs" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
Now, you have to replace the IDs and the API host accordingly in your `handleFeedbackSubmit`:
<Col>
<CodeGroup title="Replace the ID and API accordingly">
```tsx
const payload = {
@@ -366,20 +431,24 @@ Now, you have to replace the IDs and the API host accordingly in your `handleFee
};
```
</CodeGroup>
</Col>
And lastly, in the `updateFeedback` function
<Col>
<CodeGroup title="Replace the ID and API here as well">
```tsx
try {
const res = await fetch(
// Note that we also updated the API host to 'https://app.formbricks.com/'
// Note that we also updated the API host to 'https://app.formbricks.com/'
`https:app.formbricks.com/api/v1/client/environments/clgwcwp4z000lpf0hur7uxbuv/responses/${responseId}`, // Note that we also updated the API host to 'https://app.formbricks.com/'
}
```
</CodeGroup>
</Col>
### Youre good to go! 🎉
Something doesnt work? Check your browser console for the error.
Cant figure it out? [Join our Discord!](https://formbricks.com/discord)
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -1,27 +1,28 @@
import { Layout } from "@/components/docs/Layout";
import { Fence } from "@/components/shared/Fence";
import { Callout } from "@/components/shared/Callout";
import DemoPreview from "@/components/dummyUI/DemoPreview";
import Image from "next/image";
import ActionCSS from "./action-css.png";
import ActionText from "./action-text.png";
import ChangeText from "./change-text.png";
import CreateSurvey from "./create-survey.png";
import Publish from "./publish.png";
import RecontactOptions from "./recontact-options.png";
import SelectAction from "./select-action.png";
import ActionCSS from "./action-css.webp";
import ActionText from "./action-text.webp";
import ChangeText from "./change-text.webp";
import CreateSurvey from "./create-survey.webp";
import Publish from "./publish.webp";
import RecontactOptions from "./recontact-options.webp";
import SelectAction from "./select-action.webp";
export const meta = {
title: "Feature Chaser",
description: "Follow up with users who used a specific feature. Gather feedback and improve your product.",
export const metadata = {
title: "Setting Up Feature Chaser Surveys with Formbricks: A Comprehensive Guide",
description: "Learn how to harness the power of Formbricks to gather targeted user feedback on specific features. Dive deep into creating, triggering, and publishing the Feature Chaser survey to enhance your product with actionable insights for specific users.",
};
#### Best Practices
# Feature Chaser
Following up on specific features only makes sense with very targeted surveys. Formbricks is built for that.
## Purpose
Product analytics never tell you why a feature is used - and why not. Following up on specfic features with highly relevant questions is a great way to gather feedback and improve your product.
Product analytics never tell you why a feature is used - and why not. Following up on specific features with highly relevant questions is a great way to gather feedback and improve your product.
## Preview
@@ -40,11 +41,11 @@ To run the Feature Chaser survey in your app you want to proceed as follows:
1. Create new Feature Chaser survey at [app.formbricks.com](http://app.formbricks.com/)
2. Setup a user action to display survey at the right point in time
<Callout title="Formbricks Widget running?" type="note">
We assume that you have already installed the Formbricks Widget in your web app. Its required to display
messages and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins
max.)](/docs/getting-started/quickstart)
</Callout>
<Note>
## Formbricks Widget running?
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note>
### 1. Create new Feature Chaser
@@ -52,13 +53,23 @@ If you don't have an account yet, create one at [app.formbricks.com](https://app
Click on "Create Survey" and choose the template “Feature Chaser”:
<Image src={CreateSurvey} alt="Create survey by template" quality="100" className="rounded-lg" />
<Image
src={CreateSurvey}
alt="Create survey by template"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 2. Update questions
The questions you want to ask are dependent on your feature and can be very specific. In the template, we suggest a high-level check on how easy it was for the user to achieve their goal. We also add an opportunity to provide context:
<Image src={ChangeText} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ChangeText}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
Save, and move over to where the magic happens: The “Audience” tab.
@@ -72,35 +83,54 @@ There are two ways to track a button:
1. **Trigger by innerText:** You might have a button with a unique text at the end of your feature e.g. "Export Report". You can setup a user Action with the according `innerText` to trigger the survey, like so:
<Image src={ActionText} alt="Set the trigger by inner Text" quality="100" className="rounded-lg" />
<Image
src={ActionText}
alt="Set the trigger by inner Text"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
2. **Trigger by CSS Selector:** In case you have more than one button saying “Export Report” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“export-report-featurename”` and set your user action up like so:
<Image src={ActionCSS} alt="Set the trigger by CSS Selector" quality="100" className="rounded-lg" />
<Image
src={ActionCSS}
alt="Set the trigger by CSS Selector"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
Please follow our [Actions manual](/docs/actions/why) for an in-depth description of how Actions work.
### 4. Select Action in the “When to ask” card
<Image src={SelectAction} alt="Select PMF trigger button action" quality="100" className="rounded-lg" />
<Image
src={SelectAction}
alt="Select PMF trigger button action"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 5. Last step: Set Recontact Options correctly
Lastly, scroll down to “Recontact Options”. Here you have full freedom to decide who you want to ask. Generally, you only want to ask every user once and prevent survey fatigue. It's up to you to decide if you want to ask again, when the user did not yet reply:
<Image src={RecontactOptions} alt="Set recontact options" quality="100" className="rounded-lg" />
<Image
src={RecontactOptions}
alt="Set recontact options"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 7. Congrats! Youre ready to publish your survey 💃
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg" />
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
<Callout title="Formbricks Widget running?" type="warning">
You need to have the Formbricks Widget installed to display the Feature Chaser in your app. Please follow
[this tutorial (Step 4 onwards)](/docs/getting-started/quickstart) to install the widget.
</Callout>
<Note>
## Formbricks Widget running?
You need to have the Formbricks Widget installed to display the Feature Chaser in your app. Please follow [this
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget.
</Note>
###
# Get those insights! 🎉
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -1,24 +1,25 @@
import { Layout } from "@/components/docs/Layout";
import { Fence } from "@/components/shared/Fence";
import Link from "next/link";
import Image from "next/image";
import { Callout } from "@/components/shared/Callout";
import DemoPreview from "@/components/dummyUI/DemoPreview";
import AddAction from "./add-action.png";
import AddCSSAction from "./add-css-action.png";
import AddHTMLAction from "./add-html-action.png";
import ChangeTextContent from "./change-text-content.png";
import CreateFeedbackBox from "./create-feedback-box-by-template.png";
import PublishSurvey from "./publish-survey.png";
import SelectAction from "./select-feedback-button-action.png";
import RecontactOptions from "./set-recontact-options.png";
import AddAction from "./add-action.webp";
import AddCSSAction from "./add-css-action.webp";
import AddHTMLAction from "./add-html-action.webp";
import ChangeTextContent from "./change-text-content.webp";
import CreateFeedbackBox from "./create-feedback-box-by-template.webp";
import PublishSurvey from "./publish-survey.webp";
import SelectAction from "./select-feedback-button-action.webp";
import RecontactOptions from "./set-recontact-options.webp";
export const meta = {
title: "Feedback Box",
description: "The Feedback Box gives your users a direct channel to share their feedback and feel heard.",
export const metadata = {
title: "Implementing the Feedback Box with Formbricks: A Step-by-Step Tutorial",
description: "Unlock user insights effortlessly! Discover how to set up the Feedback Box in your app using Formbricks, allowing your users to provide real-time feedback. Follow our comprehensive guide to enhance user experience and respond rapidly to feedback",
};
#### Best Practices
# Feedback Box
The Feedback Box gives your users a direct channel to share their feedback and feel heard.
## Purpose
@@ -48,58 +49,83 @@ If you don't have an account yet, create one at [app.formbricks.com](https://app
Then, create a new survey and look for the "Feedback Box" template:
<Image src={CreateFeedbackBox} alt="Create feedback box by template" quality="100" className="rounded-lg" />
<Image
src={CreateFeedbackBox}
alt="Create feedback box by template"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 2. Update question content
Change the questions and answer options according to your preference:
<Image src={ChangeTextContent} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ChangeTextContent}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 3. Create user action to trigger Feedback Box:
Go to the “Audience” tab, find the “When to send” card and choose “Add Action”. We will now use our super cool No-Code User Action Tracker:
<Image src={AddAction} alt="Add action" quality="100" className="rounded-lg" />
<Image src={AddAction} alt="Add action" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
<Callout title="You can also add actions in your code" type="note">
You can also create [Code Actions](/docs/actions/code) using `formbricks.track("Eventname")` - they will
automatically appear in your Actions overview as long as the SDK is embedded.
</Callout>
<Note>
## You can also add actions in your code
You can also create [Code Actions](/docs/actions/code) using `formbricks.track("Eventname")` - they will automatically
appear in your Actions overview as long as the SDK is embedded.
</Note>
We have two options to track the Feedback Button in your application: innerText and CSS-Selector:
1. **innerText:** This means that whenever a user clicks any HTML item in your app which has an `innerText` of `Feedback` the Feedback Box will be displayed.
2. **CSS-Selector:** This means that when an element with a specific CSS-Selector like `#feedback-button` is clicked, your Feedback Box is triggered.
<div className="grid grid-cols-2 space-x-2">
<div className="grid grid-cols-2 space-x-2 max-w-full sm:max-w-3xl">
<Image src={AddHTMLAction} alt="Add HTML action" quality="100" className="rounded-lg" />
<Image src={AddCSSAction} alt="Add CSS action" quality="100" className="rounded-lg" />
</div>
### 4. Select action in the “When to ask” card
<Image src={SelectAction} alt="Select feedback button action" quality="100" className="rounded-lg" />
<Image
src={SelectAction}
alt="Select feedback button action"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 5. Set Recontact Options correctly
Scroll down to “Recontact Options”. Here you have to choose the right settings so that the Feedback Box pops up every time the user action is performed. (Our default is that every user sees every survey only once):
<Image src={RecontactOptions} alt="Set recontact options" quality="100" className="rounded-lg" />
<Image
src={RecontactOptions}
alt="Set recontact options"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 7. Youre ready publish your survey!
### 6. Youre ready publish your survey!
<Image src={PublishSurvey} alt="Publish survey" quality="100" className="rounded-lg" />
<Image
src={PublishSurvey}
alt="Publish survey"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
## Setting up the Widget
<Callout title="Formbricks Widget running?" type="warning">
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow
[this tutorial (Step 4 onwards)](/docs/getting-started/quickstart) to install the widget.
</Callout>
<Note>
## Formbricks Widget running?
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow [this
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget.
</Note>
### &nbsp;
# Thats it! 🎉
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -1,22 +1,23 @@
import { Layout } from "@/components/docs/Layout";
import { Fence } from "@/components/shared/Fence";
import { Callout } from "@/components/shared/Callout";
import DemoPreview from "@/components/dummyUI/DemoPreview";
import Image from "next/image";
import ActionText from "./action-innertext.png";
import ActionPageurl from "./action-pageurl.png";
import ChangeText from "./change-text.png";
import CreateSurvey from "./create-survey.png";
import Publish from "./publish.png";
import RecontactOptions from "./recontact-options.png";
import SelectAction from "./select-action.png";
import ActionText from "./action-innertext.webp";
import ActionPageurl from "./action-pageurl.webp";
import ChangeText from "./change-text.webp";
import CreateSurvey from "./create-survey.webp";
import Publish from "./publish.webp";
import RecontactOptions from "./recontact-options.webp";
import SelectAction from "./select-action.webp";
export const meta = {
title: "Improve Trial Conversion",
description: "Understand how to improve the trial conversions to get more paying customers.",
export const metadata = {
title: "Boost Your Trial Conversion Rates with Formbricks: Comprehensive Guide",
description: "Unlock the secret to converting more trial users into paying customers using Formbricks. Understand insights behind trial cancellations and tailor your offering to fit user needs. Dive into our step-by-step tutorial and improve your conversion strategy today",
};
#### Best Practices
# Improve Trial Conversion
When a user doesn't convert, you want to know why. A micro-survey displayed at exactly the right time gives you a window into understanding the most relevant question: To pay or not to pay?
## Purpose
@@ -40,11 +41,11 @@ To display the Trial Conversion Survey in your app you want to proceed as follow
2. Set up the user action to display survey at right point in time
3. Print that 💸
<Callout title="Formbricks Widget running?" type="note">
We assume that you have already installed the Formbricks Widget in your web app. Its required to display
messages and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins
max.)](/docs/getting-started/quickstart)
</Callout>
<Note>
## Formbricks Widget running?
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note>
### 1. Create new Trial Conversion Survey
@@ -52,13 +53,23 @@ If you don't have an account yet, create one at [app.formbricks.com](https://app
Click on "Create Survey" and choose the template “Improve Trial Conversion”:
<Image src={CreateSurvey} alt="Create survey by template" quality="100" className="rounded-lg" />
<Image
src={CreateSurvey}
alt="Create survey by template"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 2. Update questions (if you like)
Youre free to update the questions and answer options. However, based on our experience, we suggest giving the provided template a go 😊
<Image src={ChangeText} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ChangeText}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
_Want to change the button color? You can do so in the product settings!_
@@ -66,9 +77,10 @@ Save, and move over to the “Audience” tab.
### 3. Pre-segment your audience (coming soon)
<Callout title="Filter by attribute coming soon" type="note">
<Note>
## Filter by attribute coming soon
We're working on pre-segmenting users by attributes. We will update this manual in the next days.
</Callout>
</Note>
Pre-segmentation isn't relevant for this survey because you likely want to solve all people who cancel their trial. You probably have a specific user action e.g. clicking on "Cancel Trial" you can use to only display the survey to users trialing your product.
@@ -78,37 +90,56 @@ How you trigger your survey depends on your product. There are two options:
1. **Trigger by pageURL:** Lets say you have a page under “/trial-cancelled” where you forward users once they cancelled the trial subscription. You can then create an user Action with the type `pageURL` with the following settings:
<Image src={ActionPageurl} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ActionPageurl}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
Whenever a user visits this page, the survey will be displayed ✅
2. **Trigger by Button Click:** In a different case, you have a “Cancel Trial button in your app. You can setup a user Action with the according `innerText` like so:
<Image src={ActionText} alt="Change text content" quality="100" className="rounded-lg" />
<Image
src={ActionText}
alt="Change text content"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
Please have a look at our complete [Actions manual](/docs/actions/why) if you have questions.
### 5. Select Action in the “When to ask” card
<Image src={SelectAction} alt="Select feedback button action" quality="100" className="rounded-lg" />
<Image
src={SelectAction}
alt="Select feedback button action"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 6. Last step: Set Recontact Options correctly
Lastly, scroll down to “Recontact Options”. Here you have to choose the correct settings to make sure you gather as many insights as possible. You want to make sure that this survey is always displayed, no matter if the user has already seen a survey in the past days:
<Image src={RecontactOptions} alt="Set recontact options" quality="100" className="rounded-lg" />
<Image
src={RecontactOptions}
alt="Set recontact options"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
### 7. Congrats! Youre ready to publish your survey 💃
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg" />
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
<Callout title="Formbricks Widget running?" type="warning">
You need to have the Formbricks Widget installed to display the Improve Trial Conversion Survey in your app.
Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart) to install the widget.
</Callout>
<Note>
## Formbricks Widget running?
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow [this
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget.
</Note>
###
# Go get 'em 🎉
export default ({ children }) => <Layout meta={meta}>{children}</Layout>;

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Some files were not shown because too many files have changed in this diff Show More