ministryofjustice / apply-for-compensation-prototype

Prototype of the new application process
MIT License
3 stars 3 forks source link

Question types to summary page mapping rules #126

Open sinclairs opened 5 years ago

sinclairs commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@sinclairs the pattern is in the backlog https://github.com/alphagov/govuk-design-system-backlog/issues/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 commented 5 years ago

@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 commented 5 years ago

Yes would probably look at something like that