survey-library icon indicating copy to clipboard operation
survey-library copied to clipboard

choicesFromQuestion when targeting generic array value question

Open masciugo opened this issue 4 years ago • 2 comments

Are you requesting a feature, reporting a bug or asking a question?

feature/bug

What is the current behavior?

I'd like to to populate dropdown question choices by collecting paneldynamic/matrixdynamic specific question value. I am trying to do that by leveraging choicesFromQuestion prop and custom function. The target question from which I'd like to fetch choices from with choicesFromQuestion is an expression that produce an array as value (like checkbox questions do)

https://plnkr.co/edit/ht0cOqmY4eRnNw1O?preview

How can I reach my goal?

thank a lot

masciugo avatar Apr 07 '22 06:04 masciugo

Hi all, Any chance to have it implemented? Thanks a lot

cinziasala avatar Apr 20 '22 16:04 cinziasala

@masciugo You have a pretty specific case, I would suggest to handle survey.onValueChanged event and update your dropdown questions in the panel dynamic in the code.

Thank you, Andrew

andrewtelnov avatar Apr 21 '22 12:04 andrewtelnov

implemented. thank you

masciugo avatar Aug 24 '23 14:08 masciugo