You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement a multiple choice prompt, where a user is given the option to input more than one choice. Here a list of some basic requirements:
validation function should be called once for each choice, but mutually exclusive validation (using all values entered so far) should also be possible.
each response should be registered visually (highlighted or ✔️ (checked) in the choice table/list)
result type must be a list of values (e.g list[str])
My workaround
I hacked together this quick thing to allow comma separated answers to be validated, it solves some of the issues above, but it's clearly not the best UX though, especially in regard to selecting and registering choices.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Requirements
I want to implement a multiple choice prompt, where a user is given the option to input more than one choice. Here a list of some basic requirements:
list[str]
)My workaround
I hacked together this quick thing to allow comma separated answers to be validated, it solves some of the issues above, but it's clearly not the best UX though, especially in regard to selecting and registering choices.
Beta Was this translation helpful? Give feedback.
All reactions