-
Notifications
You must be signed in to change notification settings - Fork 34
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
Feature: Make repeating sections aka "Add multiple things" #798
Comments
delaynesr
changed the title
Make a repeating section with UI changes to section pages
Feature: Make repeating sections aka "Add multiple things"
Apr 6, 2022
I've done a spike into this.. it's a bit of a monster but manageable. There are a few refactors that are necessary otherwise it would bloat the PR. To do:Section definition / class
State changesCurrently, the state appears like so {
caz: "Bristol",
registration: { // section called "registration"
registrationNumber: "OUTATIME",
registrationDate: "1985-10-01",
colour: "silver",
},
}; When a section is repeated, the state will appear as an array {
caz: "Bristol",
registration: [{
registrationNumber: "OUTATIME",
registrationDate: "1985-10-01",
colour: "silver",
},
{
registrationNumber: "OU7A7IM3",
registrationDate: "2000-10-01",
colour: "red",
}],
}; Mini summary
Summary page
Screen.Recording.2024-06-06.at.12.13.27.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Need expressed for a feature that allows designers using the form builder to link question pages that can be repeated if the user (completing the form) specifies. This would be used, for example, to add the details of multiple tenants to a property, or adding past addresses. The same questions need to be answered for multiple entries. At the moment, the designer using the form builder has to make the series of pages over again which is labour intensive and creates an unnecessarily long form that is hard to digest in the current designer interface.
Describe the solution you'd like
Adding the ability to make linked question pages into a repeating section. The idea is to make the section repeat, since this is a feature already in the designer that groups pages. I am suggesting adding a simple checkbox to the "Add a new section" page and the "Edit section" page which would make the pages in the given section repeat until the user decides to stop adding information. In the future, there will probably need to be settings designed for this, such as setting the maximum number of entries a user can make. I haven't applied this to the design yet though. There will also need to be notifications to tell the designer using the form builder that a particular section is repeating and indication on the main designer interface the signify what sections are repeating. I have made some design suggestions for how we could do this below. You will notice some changes to other parts of creating and managing/editing section tasks but I will outline these in a separate post.
New design with make repeating section feature
Additional Comments
GDS - "Add multiple things":
https://design.homeoffice.gov.uk/patterns/add-multiple-things
In the process of designing this feature, I have made adjustments/design suggestions for the whole process of creating and managing sections. TBC for linked post containing this info.
The text was updated successfully, but these errors were encountered: