Fix URL pre-fill
This commit is contained in:
parent
039b03a5b3
commit
6aec718ef6
|
@ -238,7 +238,7 @@ export default {
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.initForm()
|
this.initForm()
|
||||||
if (window.client && window.location.href.includes('auto_submit=true')) {
|
if (process.client && window.location.href.includes('auto_submit=true')) {
|
||||||
this.isAutoSubmit = true
|
this.isAutoSubmit = true
|
||||||
this.submitForm()
|
this.submitForm()
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ export default {
|
||||||
}
|
}
|
||||||
if (this.isPublicFormPage && this.form.auto_save) {
|
if (this.isPublicFormPage && this.form.auto_save) {
|
||||||
let pendingData = this.pendingSubmission.get()
|
let pendingData = this.pendingSubmission.get()
|
||||||
if (pendingData !== null && pendingData) {
|
if (pendingData !== null && pendingData && Object.keys(this.pendingSubmission.get()).length !== 0) {
|
||||||
this.fields.forEach((field) => {
|
this.fields.forEach((field) => {
|
||||||
if (field.type === 'date' && field.prefill_today === true) { // For Prefill with 'today'
|
if (field.type === 'date' && field.prefill_today === true) { // For Prefill with 'today'
|
||||||
const dateObj = new Date()
|
const dateObj = new Date()
|
||||||
|
|
Loading…
Reference in New Issue