We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We are having so much code looking like this:
{ "name": "test", "question": { "text": "test query", "choices": [{ id: 1, text: "choice 1", }, { id: 2, text: "choice 2", }], }, pre(answer, done) { switch (answer) { case 1: return this.do("form1", done); case 2: return this.do("form2", done); } }, }
which could be shortened to:
{ "name": "test", "question": { "text": "test query", "choices": [{ id: 1, text: "choice 1", do: "form1", }, { id: 2, text: "choice 2", do: "form2", }], }, }
Adding do (and goto) props to choices should allow jumping to a form (and query) when the choice is matched.
do
goto
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We are having so much code looking like this:
which could be shortened to:
Adding
do
(andgoto
) props to choices should allow jumping toa form (and query) when the choice is matched.
The text was updated successfully, but these errors were encountered: