-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enable Prefilling of several values #2482
feat: Enable Prefilling of several values #2482
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
Thank you for following the naming conventions for pull request titles! 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Works well so far :) A few questions:
- Please update the Prefilling docs in the link survye section with the changes. Add a section where you explain the format needed for each question type as well as potential edge cases, what happens when the validation doesn't work and add an example for all question types which can be prefilled.
- Currently, it's not possible to get the initial UX of clicking on an answer in an email which then gets prefilled and the question is skipped. My idea was to do use logic jumps to still enable this UX, even if not by default (see image). Is this possible without being too hacky? So essentially: Don't skip prefilled values unless a logic jump says so?
- Not sure if it was part of the ticket but is it possible to introduce another link parameter skipPrefill which when set to true skips prefilled questions? How hacky would it be?
Thanks!
…73-feature-enable-prefilling-of-several-values
…73-feature-enable-prefilling-of-several-values
Thanks, @jobenjada, for the review.
|
Hey Piyush! Works great, good job until here! As you mentioned, once you bring startAt to the party, things get messy. Let's have a chat re this tomorrow and then merge this 💪 In the meanwhile: if related to this, pls look into the failed E2E test Thanks! |
…73-feature-enable-prefilling-of-several-values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls see comment
…73-feature-enable-prefilling-of-several-values
@jobenjada Thanks for testing the feature. I've pushed the fix for the issues. prefiling.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @gupta-piyush19 😊 looks great!
I just found this bug while testing, could you please take a look at it 🙏
Screen.Recording.2024-04-29.at.12.04.06.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
What does this PR do?
Enables Prefilling of several values
Fixes
https://github.com/formbricks/internal/issues/73
#2433
multi-question-prefill.mp4
How should this be tested?
id=value
in the query params.Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated