This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Question Editor API

reset()

To reset data of rendered views and empty the json of given question/feature. For default global layout, the method will set the view back to the widget selection screen. It can optionally pass a widget_type to change between feature and response types in a single instance.

You need to make sure that you don't reset while Question Editor is still initializing, as this may lead to unexpected results. You should only use reset() after readyListener was called.

Examples

document.getElementById('reset').onclick = function () {
    questionEditorApp.reset('feature');
};

Arguments

Return value

None (undefined).

Was this article helpful?