SuffolkLITLab / docassemble-AssemblyLine

Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
https://suffolklitlab.org/docassemble-AssemblyLine-documentation/
MIT License
41 stars 5 forks source link

Potential Soft validation UX thoughts / dealing with long names #390

Open BryceStevenWilley opened 2 years ago

BryceStevenWilley commented 2 years ago

Discussion that happened about a soft validation UX on the length of names, but is generally applicable to other types of soft validation that we've been considering.

Generally low priority.

  1. We might need a custom datatype
  2. We want to show the warning on the same screen, under the field. It would be like the character count you see on some websites that counts down?
  3. Question: how would we know the max length for that field?
    • We think this is only captured by the weaver when you say you want to send the field to the addendum, which isn’t asked about for name fields
  4. We might want to figure out how to show on the screen that it’s a soft validation, and explain the consequences of using a very long name. E.g., it might get squished down into a small size on the PDF output, but we won’t stop you.
  5. A follow-up screen feels hard to use, because we trigger name fields declaratively. It would be confusing to save the soft validation for the end of the interview.
  6. Would any help text on the name questions be worth considering?
    • It might be distracting to people to see help text that is very rarely relevant to the user
  7. Can we even tell if the interview is a PDF or a DOCX for when this is a relevant warning?
purplesky2016 commented 2 years ago

We want to show the warning on the same screen, under the field. It would be like the character count you see on some websites that counts down?

We have something like that in ALToolbox for text field and area field, it uses JS. image

Question: how would we know the max length for that field?

I think I checked with Jonathon when I was working on that tool, and he said we couldn't access the field's maxlength defined on the screen. Don't know if that has changed since then.

nonprofittechy commented 4 months ago

See: https://www.guinnessworldrecords.com/world-records/67285-longest-personal-name

nonprofittechy commented 4 months ago

https://designsystem.digital.gov/components/validation/

https://design-system.service.gov.uk/patterns/validation/