Skip to content

Beautiful Open-Source Form Builder

disable precognition on url prefill modal (#503)

Favour Olayinka7ee5623b8e26
diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vue
index 53df780be..4b286c8d4 100644
--- a/client/components/open/forms/OpenForm.vue
+++ b/client/components/open/forms/OpenForm.vue
@@ -163,6 +163,7 @@ export default {
},
defaultDataForm: {},
adminPreview: {type: Boolean, default: false}, // If used in FormEditorPreview
+ urlPrefillPreview: {type: Boolean, default: false}, // If used in UrlFormPrefill
darkMode: {
type: Boolean,
default: false
@@ -449,7 +450,7 @@ export default {
return false
},
nextPage() {
- if (this.adminPreview) {
+ if (this.adminPreview || this.urlPrefillPreview) {
this.currentFieldGroupIndex += 1
window.scrollTo({ top: 0, behavior: 'smooth' })
return false
diff --git a/client/components/pages/forms/show/UrlFormPrefill.vue b/client/components/pages/forms/show/UrlFormPrefill.vue
index 44e430303..c0806e25d 100644
--- a/client/components/pages/forms/show/UrlFormPrefill.vue
+++ b/client/components/pages/forms/show/UrlFormPrefill.vue
@@ -78,6 +78,7 @@
:show-hidden="true"
:form="form"
:fields="form.properties"
+ :url-prefill-preview="true"
@submit="generateUrl"
>
<template #submit-btn="{ submitForm }">