surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
900 stars 372 forks source link

Survey Creator Survey Logic does not handle dynamic panels properly #923

Open marcziss opened 4 years ago

marcziss commented 4 years ago

Cannot address the controls in a dynamic panel in the Survey Logic builder because the proper fields are not populated as options in the drop downs

Can recreate this issue by dropping a repeating panel and a few questions as children on any SurveyCreator example and then trying to build a rule in the survey logic tab. You will not be able to address the children's values or complete the rule.

andrewtelnov commented 4 years ago

@marcziss Unfortunately there is no way to setup logic for questions in dynamic panel in Logic tab. Logic tab doesn't have the context. When you select a question inside the dynamic panel then in the property grid (Logic tab) you can set visibleIf/enableIf/... properties using "panel." prefix. It will be in the list. As result you will be able to select other questions in the same dynamic panel.

Thank you, Andrew

marcziss commented 4 years ago

This issue wasn't a big deal to me. I didn't need that feature for what I am working on, just thought you guys should know if you didn't already. You can close it if it is a known issue. Thanks Marc