AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

option for deslect/go back in survey #352

Closed patrick-hermann-sva closed 2 years ago

patrick-hermann-sva commented 3 years ago

it should be possible to deselect an already choosen option during a suevey (like 'go back to a previous question). . or is this possible somehow?

mislav commented 2 years ago

No, sorry; this isn't possible with Survey. But, you can make it in your application if you do survey.Ask(...) in a loop where you dynamically change the questions asked between iterations of the loop based on responses by the user.