diff --git a/www/form/inner.js b/www/form/inner.js index 7b73c792f..a32c40033 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3448,6 +3448,11 @@ define([ }; }; var removeQuestion = function (content, uid) { + if (content.form[uid].type === 'section') { + content.form[uid].opts.questions.forEach(function(subQuestionUid) { + delete content.form[subQuestionUid]; + }) + } delete content.form[uid]; var idx = content.order.indexOf(uid); if (idx !== -1) {