diff --git a/src/Formulate.js b/src/Formulate.js index e12f6c6c..5621ecb4 100644 --- a/src/Formulate.js +++ b/src/Formulate.js @@ -403,7 +403,7 @@ class Formulate { */ submit (formName) { const form = this.registry.get(formName) - form.formSubmitted() + return form.formSubmitted() } /** diff --git a/src/FormulateForm.vue b/src/FormulateForm.vue index 15ae5dec..82007e00 100644 --- a/src/FormulateForm.vue +++ b/src/FormulateForm.vue @@ -225,6 +225,10 @@ export default { this.errorComponents.push(component) } }, + getFormValues() { + //return promise of Form values + return new FormSubmission(this).values(); + }, formSubmitted () { if (this.isLoading) { return undefined