Allow guest answers by default in forms

pull/1/head
yflory 3 years ago
parent 54a9a761f9
commit 2655a99b80

@ -3477,7 +3477,7 @@ define([
UI.alert(content); UI.alert(content);
}; };
framework.onReady(function () { framework.onReady(function (isNew) {
var priv = metadataMgr.getPrivateData(); var priv = metadataMgr.getPrivateData();
if (APP.isEditor) { if (APP.isEditor) {
@ -3502,6 +3502,9 @@ define([
} }
checkIntegrity(); checkIntegrity();
} }
if (isNew && content.answers && typeof(content.answers.anonymous) === "undefined") {
content.answers.anonymous = true;
}
sframeChan.event('EV_FORM_PIN', {channel: content.answers.channel}); sframeChan.event('EV_FORM_PIN', {channel: content.answers.channel});

Loading…
Cancel
Save