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
The survey.getAllQuestions(false, true, true) function fails with the following exception:
survey.core.js:55888 Uncaught TypeError: q.getNestedQuestions is not a function
at eval (survey.core.js:55888:15)
at Array.forEach (<anonymous>)
at ./src/survey.ts.SurveyModel.getAllQuestions (survey.core.js:55886:13)
at eval (eval at ngOnInit (survey.component.ts:1:1), <anonymous>:1:8)
at SurveyComponent.ngOnInit (survey.component.ts:19:1)
at callHook (core.mjs:2495:22)
at callHooks (core.mjs:2464:17)
at executeInitAndCheckHooks (core.mjs:2415:9)
at refreshView (core.mjs:12003:21)
at refreshComponent (core.mjs:13084:13)
at refreshChildComponents (core.mjs:11778:9)
at refreshView (core.mjs:12038:13)
at renderComponentOrTemplate (core.mjs:12105:9)
at tickRootContext (core.mjs:13260:13)
at detectChangesInRootView (core.mjs:13286:5)
at RootViewRef.detectChanges (core.mjs:13803:9)
at ApplicationRef.tick (core.mjs:27478:22)
at ApplicationRef._loadComponent (core.mjs:27516:14)
at ApplicationRef.bootstrap (core.mjs:27453:14)
at eval (core.mjs:27104:64)
at Array.forEach (<anonymous>)
at PlatformRef._moduleDoBootstrap (core.mjs:27104:44)
at eval (core.mjs:27074:26)
at _ZoneDelegate.invoke (zone.js:372:26)
at Object.onInvoke (core.mjs:26380:33)
at _ZoneDelegate.invoke (zone.js:371:52)
at Zone.run (zone.js:134:43)
at eval (zone.js:1275:36)
at _ZoneDelegate.invokeTask (zone.js:406:31)
at Object.onInvokeTask (core.mjs:26367:33)
at _ZoneDelegate.invokeTask (zone.js:405:60)
at Zone.runTask (zone.js:178:47)
at drainMicroTaskQueue (zone.js:585:35)
The text was updated successfully, but these errors were encountered:
…ing to obtain a list of survey questions (survey.getAllQuestions(false, true, true)) fix#6666 (#6668)
RomanTsukanov
changed the title
The q.getNestedQuestions is not a function exception appears when trying to obtain a list of survey questions (survey.getAllQuestions(false, true, true))
An exception appears on an attempt to obtain a list of survey questions
Aug 9, 2023
A sample survey can be taken from the following support thread: T14151 - Copy choices from a panel inside a dynamic panel
https://surveyjs.answerdesk.io/internal/ticket/details/T14151
View Demo
The
survey.getAllQuestions(false, true, true)
function fails with the following exception:The text was updated successfully, but these errors were encountered: