Hello.
Using the panel visibility event, I coded this -
survey.onPanelVisibleChanged.add(
function(_survey, _options) {
var _p = _options.panel.elements;
if (! _options.visible) for (var _i in _p) {if (! (_p[_i] instanceof Function)) {_p[_i].value = undefined;}}
});
It does 'reinit' all elements. Is this the correct approach?
Met vriendelijk groeten.
From: D04105641@inbox.lv
Sent: Sunday, December 13, 2020 10:44 PM
To: Serge T [surveyjs Support]
Subject: Reinitialise elements in a panel
Hello.
I do not find a method to 'reset' the state of elements in a panel. This,
for my purpose, is useful when a different 'entry point' of the navigation
path is selected.
I also do not find an element property that points to the first child
element. 'child -> parent' but not the opposite. Also not self->sibling.
Met vriendelijk groeten,
Max