Skip to content

Beautiful Open-Source Form Builder

Display error with page validation (#486)

Chirag Chhatrala9a17787f760b
diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vue
index 826f780d2..e6f9da6a5 100644
--- a/client/components/open/forms/OpenForm.vue
+++ b/client/components/open/forms/OpenForm.vue
@@ -109,8 +109,8 @@
:color="form.color"
:theme="theme"
class="mt-2 px-8 mx-1"
- @click.stop="nextPage"
:loading="dataForm.busy"
+ @click.stop="nextPage"
>
{{ currentFieldsPageBreak.next_btn_text }}
</open-form-button>
@@ -461,7 +461,11 @@ export default {
this.currentFieldGroupIndex += 1
this.dataForm.busy = false
window.scrollTo({top: 0, behavior: 'smooth'})
- }).catch(err => {
+ }).catch(error => {
+ console.error(error)
+ if (error && error.data && error.data.message) {
+ useAlert().error(error.data.message)
+ }
this.dataForm.busy = false
})
return false