Skip to content
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

fix: multistep webform page navigation (backport #26172) #26217

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 29, 2024

Steps to reproduce:

  1. Create a multistep webform with a child table in one of the steps
  2. Edit using the child table edit button option. Try adding a few fields
    Screenshot from 2024-04-26 15-18-25
  3. Hit next. The form will be submitted without going to the next page/step.
    image

Problem:
Consider a webform with 3 pages. The pages will have the following classes,

p1: form-page
p2: form-page page-break
p3: form-page page-break

form-page is used for selecting pages for navigation.

If any one of these pages have a child table entry the view will be broken because the child-table-edit dialog uses the same layout component as webform and hence when it's rendered the components with form-page as class are duplicated multiple times. So on hitting the edit button for child table the pages would look something like this,

p1: form-page
    form-page (child table)
    form-page (child table)
    ...
p2: form-page page-break
p3: form-page page-break

Fix: Using page-break classname(since page-break is unique for webform pages) for navigation between pages (the first page is still form-page, since there is no page-break before that)

no-docs


This is an automatic backport of pull request #26172 done by Mergify.

@mergify mergify bot requested a review from a team as a code owner April 29, 2024 14:40
@mergify mergify bot requested review from akhilnarang and removed request for a team April 29, 2024 14:40
@akhilnarang
Copy link
Member

@Mergifyio rebase

Copy link
Contributor Author

mergify bot commented Apr 30, 2024

rebase

✅ Branch has been successfully rebased

@akhilnarang akhilnarang force-pushed the mergify/bp/version-14-hotfix/pr-26172 branch from f610bd5 to d5a25f2 Compare April 30, 2024 10:35
@akhilnarang akhilnarang merged commit 5c4cdc0 into version-14-hotfix Apr 30, 2024
11 checks passed
@akhilnarang akhilnarang deleted the mergify/bp/version-14-hotfix/pr-26172 branch April 30, 2024 11:56
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.74.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants