From 2655a99b80c8b36a3dee9b2f35e6694f8241ea6b Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 26 Aug 2021 15:43:16 +0200 Subject: [PATCH] Allow guest answers by default in forms --- www/form/inner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/form/inner.js b/www/form/inner.js index c22cb7e8e..b83728c0e 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3477,7 +3477,7 @@ define([ UI.alert(content); }; - framework.onReady(function () { + framework.onReady(function (isNew) { var priv = metadataMgr.getPrivateData(); if (APP.isEditor) { @@ -3502,6 +3502,9 @@ define([ } checkIntegrity(); } + if (isNew && content.answers && typeof(content.answers.anonymous) === "undefined") { + content.answers.anonymous = true; + } sframeChan.event('EV_FORM_PIN', {channel: content.answers.channel});