diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index f00f26d3c..44e39e6a9 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -23,7 +23,7 @@ def default_url_options
private
def sign_in_for_demo
- sign_in(User.first) unless signed_in?
+ sign_in(User.order('random()').take) unless signed_in?
end
def current_account
diff --git a/app/javascript/form.js b/app/javascript/form.js
index d69e1f315..ca38da316 100644
--- a/app/javascript/form.js
+++ b/app/javascript/form.js
@@ -14,6 +14,7 @@ window.customElements.define('submission-form', class extends HTMLElement {
authenticityToken: this.dataset.authenticityToken,
canSendEmail: this.dataset.canSendEmail === 'true',
isDirectUpload: this.dataset.isDirectUpload === 'true',
+ isDemo: this.dataset.isDemo === 'true',
values: reactive(JSON.parse(this.dataset.values)),
attachments: reactive(JSON.parse(this.dataset.attachments)),
fields: JSON.parse(this.dataset.fields)
diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue
index 69e72cf49..4043de914 100644
--- a/app/javascript/submission_form/completed.vue
+++ b/app/javascript/submission_form/completed.vue
@@ -40,6 +40,17 @@
Download
+
+