Skip to content
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

Pipe answers to other questions #9

Open
plutov opened this issue Aug 7, 2024 · 4 comments
Open

Pipe answers to other questions #9

plutov opened this issue Aug 7, 2024 · 4 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@plutov
Copy link
Owner

plutov commented Aug 7, 2024

Start simple: with options questions. Pipe selected options of one questions to become options of another question.

@plutov plutov added the enhancement New feature or request label Aug 14, 2024
@anveshthakur
Copy link
Contributor

anveshthakur commented Sep 29, 2024

Can I take this up @plutov?

@plutov
Copy link
Owner Author

plutov commented Sep 29, 2024

@anveshthakur sure, this one needs a good design so it can be scaled later.

@anveshthakur
Copy link
Contributor

I will come up with something first and let you know.

@anveshthakur
Copy link
Contributor

hi @plutov, I am thinking of something like this

- type: short-text
  label: What country you wanna travel?
  name: askCountry
- type: short-text
  label: What is the capital of ${askCountry}?

So basically -

  1. Assign this name property to the question in YAML file and then reference it using the name property
  2. Frontend will be responsible for inserting the answer in the template string
  3. In that case once we get the answer for 1 question we can check which question has that name and can fetch the answer for it?

It is a very rough Idea though as of now..

let me know what do you think about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants