-
Notifications
You must be signed in to change notification settings - Fork 19
Fix/DEV-504: Fixes bugs and applies improvements in Multi-step form flow #769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
js/libs/form.js
Outdated
formData['Created at'] = new Date().toISOString(); | ||
formData['Last updated'] = ''; | ||
} | ||
} else if (type === 'flDateRange' || type === 'flTimeRange') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armine-fliplet please fix this spacing issue
js/libs/form.js
Outdated
formData[`${field.name} [${val}]`] = ''; | ||
}); | ||
} | ||
} else if (!(field._type === 'flButtons' || field._type === 'flCustomButton')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armine-fliplet Fix spacing here as well
js/libs/builder.js
Outdated
if (form.sliderContainerId !== currentForm.sliderContainerId) continue; | ||
|
||
if (currentForm.id === form.id) isCurrentForm = true; | ||
|
||
if (currentFormDsId !== formDsId) continue; | ||
|
||
let hasFlButton = false; | ||
|
||
for (let i = form.fields.length - 1; i >= 0; i--) { | ||
const field = form.fields[i]; | ||
|
||
if (field._type === 'flButtons' && field.showSubmit !== false && currentFormDsId === formDsId) { hasFlButton = true; break; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armine-fliplet Please add if statements in block instead of single line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7eda5ef
into
projects/DEV-206-multi-step-form
Product areas affected
Fliplet Form Builder
What does this PR do?
Fixes bugs and applies improvements in Multi-step form flow
JIRA ticket
DEV-491
DEV-500
DEV-501
DEV-502
DEV-504
DEV-506