Please note that you can subscribe to the individual forums. A subscription for news only covers the news.
is it possible to hide certain options in a question definition.
In my script I have a particular question I want to a the sub, however the possible answers depend on the current state of the program.
In my current solution I define multiple versions of the same question and decide which one to show at any given time.
I am currently at 16 questions and 24 procedures. Which is tedious, error prone and if I wanted to add another possible answer I would need additional 16 questions and procedures.
With the ability to hide answers this could be reduced to one question and only one procedure per answer. (optional)
The syntax could work similar to the way the Select keyword works.
[question-MyQuestion] Phrase=My Question ?Option A=MyQuestionA ?Option B=MyQuestionB ?Option C=* If=#SomeCounter>5 Message=Do something completely different.... [procedure-MyQuestionA] Message=Do something.... [procedure-MyQuestionB] If=SomeFlagIsSet Message=Do something else....
- Option A: Would always be shown.
- Option B: Would be shown when #SomeCounter is greater than 5
- Option C: Is only visible if the SomeFlagIsSet flag is set.