Beautiful Open-Source Form Builder
0c9ea page break validation (#464)
Favour Olayinka3226bef13ffd
diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vueindex 52638d319..3ddf92bd3 100644--- a/client/components/open/forms/OpenForm.vue+++ b/client/components/open/forms/OpenForm.vue@@ -443,6 +443,11 @@ export default {return false},nextPage() {+ if (this.adminPreview) {+ this.currentFieldGroupIndex += 1+ window.scrollTo({ top: 0, behavior: 'smooth' })+ return false+ }const fieldsToValidate = this.currentFields.map(f => f.id)this.dataForm.busy = truethis.dataForm.validate('POST', '/forms/' + this.form.slug + '/answer', {}, fieldsToValidate)@@ -453,7 +458,7 @@ export default {}).catch(err => {this.dataForm.busy = false})- return false;+ return false},isFieldHidden(field) {return (new FormLogicPropertyResolver(field, this.dataFormValue)).isHidden()