mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add allow to skip form prop
This commit is contained in:
1 parent
2b8280168e
commit
fa5e3e7163
1 file changed
+6
-1
@@ -419,6 +419,11 @@ export default {
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
allowToSkip: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
goToLast: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -634,7 +639,7 @@ export default {
|
||||
|
||||
stepPromise().then(async () => {
|
||||
const emptyRequiredField = this.stepFields.find((fields, index) => {
|
||||
return index < this.currentStep && fields[0].required && fields[0].type === 'phone' && !this.submittedValues[fields[0].uuid]
|
||||
return index < this.currentStep && fields[0].required && (fields[0].type === 'phone' || !this.allowToSkip) && !this.submittedValues[fields[0].uuid]
|
||||
})
|
||||
|
||||
const formData = new FormData(this.$refs.form)
|
||||
|
||||
Reference in new issue
Block a user