Skip to content

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

Merged
merged 5 commits into from
May 9, 2025

Conversation

armine-fliplet
Copy link
Contributor

@armine-fliplet armine-fliplet commented May 8, 2025

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

@armine-fliplet armine-fliplet changed the title Fix/DEV-504 Fix/DEV-504: Fixes bugs and applies improvements in Multi-step form flow May 8, 2025
js/libs/form.js Outdated
formData['Created at'] = new Date().toISOString();
formData['Last updated'] = '';
}
} else if (type === 'flDateRange' || type === 'flTimeRange') {
Copy link
Contributor

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')) {
Copy link
Contributor

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

Comment on lines 1101 to 1112
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; }
Copy link
Contributor

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.

Copy link
Contributor

@zeryabkhan91 zeryabkhan91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I pressed next arrow, an error is thrown without message. Although, no navigation is an expected behavior, but is this error expected. If yes, then there shouldn't be any error message?
image

Copy link
Contributor

@zeryabkhan91 zeryabkhan91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@inna-bieshulia inna-bieshulia merged commit 7eda5ef into projects/DEV-206-multi-step-form May 9, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants