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

Question types to summary page mapping rules #126

Open
sinclairs opened this issue Nov 20, 2018 · 5 comments
Open

Question types to summary page mapping rules #126

sinclairs opened this issue Nov 20, 2018 · 5 comments

Comments

@sinclairs
Copy link

Single field to single line text:

Enter your telephone number

Presented on summary page as:

Your details

Telephone number    1234456789

Change action

Goes to "Enter your telephone number" page.

Multi-field page to single line text:

Enter your name

Title 
First name
Last name

Presented on summary page as:

Your details

Name    Mr Bilbo Baggins

Change action

Goes to "Enter your name" page.

Multi-field page to multi-line text:

Enter your address [manually]

Building and street [2 text inputs]
Town or city
County (optional)
Postcode (optional)

Presented on summary page as:

Your details

Address     Test building
            1 test lane
            Glasgow
            SomeCounty
            G1 3TA

Change action

Goes to "Enter your address" postcode page. ??

Multi-page to single-line text

Pages

Page 1

Enter your address

Postcode

Page 2

Enter your address

Postcode [change action]
Select an address

Presented on summary page as:

Your details

Address     1 Testing street, Glasgow g1 3ta

Change action

Goes to "Enter your address" postcode page.

Multi-page to multiple change actions

Pages

Page 1

Enter the number of offenders involved

Page 2

Do you know the names of any of the offender(s)? 

Page 3

Enter the name of the first offender

Page 4

Enter the name of the second offender

Page 5

Enter the name of the third offender

...

Presented on the summary page as:

??

Change action

Multiple change actions for each offender name entered?

@gavinwye
Copy link
Contributor

@sinclairs we haven't designed the page for entering multiple offender names yet. It probably won't span multiple pages. There is a patter for adding another thing to the page which is what I'll probably use to do this.

That would mean that we then go back to the offender name page and show all offenders pre-filled.

But yet to be designed.

@sinclairs
Copy link
Author

@gavinwye It would need to span multiple pages to support JavaScript being disabled, or you'd need to put an arbitrary number of fields on a single page. This could obviously be enhanced with JavaScript enabled.

I can't see the repeating question pattern, what one is it you're looking at?

@gavinwye
Copy link
Contributor

@sinclairs the pattern is in the backlog alphagov/govuk-design-system-backlog#21

I'd need to look around a bit to find the right pattern to use but would do that as part of the ticket for the work.

@sinclairs
Copy link
Author

@gavinwye No worries. Let me know when you're looking at it so we can get it right on the technical side.

The HMRC pattern looks nice: http://hmrc.github.io/assets-frontend/patterns/add-to-a-list/index.html

It doesn't appear to use JavaScript and would fit out current model of repeating questions 👍

@gavinwye
Copy link
Contributor

Yes would probably look at something like that

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

No branches or pull requests

2 participants