PyInquirer icon indicating copy to clipboard operation
PyInquirer copied to clipboard

Question based on previous answer

Open GeiserX opened this issue 6 years ago • 1 comments

This maybe is kind of the same question as #22

I would like to have like

questions = [
    {
        'type': 'list',
        'name': 'project',
        'message': 'QUESTION A',
        'choices': ['A', 'B', 'C']
    },
    {
        'type': 'input',
        'name': 'ask',
        'message': 'Why did you choose {}?'.format(AnswerToTheFirstQuestion)
    },
]

answers = prompt(questions, style=style)

Is there any function I can use to get the value of the previous question?

Thank you!

GeiserX avatar Apr 19 '19 16:04 GeiserX

See my workaround https://github.com/CITGuru/PyInquirer/issues/49#issuecomment-487054916, it doesn't help for #22 unfortunately.

AndrewOwenMartin avatar Apr 26 '19 13:04 AndrewOwenMartin