Hi team!
I need to update an question on a paneldynamic based on answer from another question (sibling in same panel template) in the same paneldynamic. can you share code snippet. I tried to listen to survey.onDynamicPanelItemValueChanged
event but could not figure out how to update question on the same panel with same panel index.
Hello Agasya,
If you handle the survey.onDynamicPanelItemValueChanged callback, you can obtain the current panel question using the Panel's questions collection:
options.panel.questions
. Please let me know if this information helps.Can you provide me a demo? The demo should set value.
Hello Agasya,
Why don't you want to use "defaultValueExpression" property? Here is the example.
Thank you,
Andrew
SurveyJS Team
The issue is default value expression is that it wont be updated if corresponding question value changes.