Skip to content

A customizable form for prototyping a screener experience that either enables people to proceed or directs them to other resources based on their responses.

License

Notifications You must be signed in to change notification settings

joshkimux/uswds-screener-prototyping-tool

 
 

Repository files navigation

USWDS Screener Prototyping Tool

At Bixal, we believe fast cycles of prototyping and testing accelerate learning, reduce risk, and improve outcomes. We started a dedicated internal team to explore new processes and tools for using web-based prototyping to help our delivery teams lower the barriers to making ideas more tangible more quickly. With our focus on speed, tangibility, reusability, and openness, we demonstrate what's possible with rapid prototyping, lean research, content libraries, and design frameworks.

One issue we see commonly across government websites is the need for people to fill out a simple screener form before they continue with a larger task to ensure they understand what’s being asked of them and why. When these screeners are long, onerous, and confusing, they lead to wasted time and bad data. Our goal was to build a template that incorporates best practices for accessibility, plain language, and usability to make it quick and easy to test different versions.

Features

  • Custom questions: Set up any number of questions with their own answer text, related resources, and pathing based on responses. (Radio buttons only for now.)
  • Simple logic flow: For each answer, direct people to the next question, an exit page, or jump ahead to the success page.
  • Linked resources: Each question and exit page can include resource content stored in its own plain-text pages.
  • Step indicator: Show people where they are in the process, even if you're not building the whole thing.
  • No code: Most customization can be done by creating and editing plain-text files. No need to mess with code for the included features.
  • U.S. Web Design System: Built on USWDS for the best in accessible, responsive, usable web experiences for government-focused sites.

Content types

The screener includes the following content types:

  • Home: The starting page to set context for your screener (index.md).
  • Question: A single-question page template (question-1.md).
  • Exit: Pages to direct people who filter out of the screener based on their responses (q1-exit.md).
  • Success: The final page for people who have made it through the screener (success.md).

Flow map

This is how the basic logic flow works:

Flow map

How to

Speak GitHub

GitHub uses some different language to describe things and actions you're probably already familiar with. See this handy GitHub Glossary if you're not sure about some of the terms used in these instructions.

Make your own copy of the repository

  1. If you don't have one, create a GitHub account.
  2. On the Code tab of the repository homepage, press the Use this template button.
  3. Finish creating your copy of the repository.

Screencast of how to make your own copy of the repository

Go live using GitHub Pages

GitHub Pages will compile and host your site automatically. Enable this feature first so you can see your changes in the browser without having to run the site locally.

Note: It takes a few seconds to a minutes to go live, so the first time you go to the site, you may see a "404: Page Not Found" error. After it's live, you should see any changes you make to the main branch at the Pages URL, usually within a few seconds.

  1. Go to the Settings tab.
  2. Go to Pages in the side navigation.
  3. In the Source section, set the branch to main and press Save.

Tip: Copy the Pages URL and add it to your repository About section for easy access. The About section is on in the sidebar of the repository homepage. To edit it, click the gear icon. You can also see the log of publishing activity by pressing the Environments link in the sidebar on the repository homepage.

Screencast of how to go live using GitHub Pages

Configure settings

You'll need to change a few settings in the config file for your site to work properly.

  1. Go to the _config.yml file in your repository.
  2. Press the Edit this file button (pencil icon).
  3. Make changes to following settings:
    • Title: The title of the site that shows up in the browser tab and on the homepage.
    • Description: The description that shows up on the homepage and also the meta description for search engine optimization.
    • Baseurl: This needs to match the name of your repository for internal links to work.
  4. Save your changes by pressing the Commit changes button.

Screencast of how to configure settings

Edit questions

  1. Click on a question file in the Code tab, for example, question-1.md.
  2. Press the Edit this file button (pencil icon).
  3. Make changes to the question text and answers content as desired.
  4. You can also change some navigation settings, like what page the back button for the question goes to, if needed.
  5. Save your changes by pressing the Commit changes button.

Tip: Add a short description about the change you made before committing.

Screencast of how to edit your questions

Edit rich text content

Content for the homepage, exit pages, and resource pages is stored in Markdown format. This is a simple way to structure and format content that is both human- and machine-readable.

See the GitHub Guide, Mastering Markdown for a reference on how to format content.

You can open, edit, and save these pages the same way as described in Edit questions above.

Change the homepage image

You can use an absolute link to an existing image. Or you can upload an image to the repository and use a relative link.

Tip: Make sure your filename…

  • doesn't have any spaces.
  • doesn't start with a period (.) or an underscore (_).
  1. If you're uploading an image, go to /assets/img in your repository.
  2. Press the Add file button and choose Upload files.
  3. Save your changes by pressing the Commit changes button.
  4. Go to the _config.yml file in your repository.
  5. Update the homepage-image setting to "../img" and the new filename.
    • Make sure the name you put in the config file matches the filename you uploaded.
    • If you're using an image hosted somewhere else, replace everything in quotes with the full URL, for example, https://mysite.com/my-image.jpg.

Screencast of how to change your homepage image

Create new content

  1. On the Code tab of the repository homepage, press the Add file button.
  2. Upload a markdown file (.md) or create one in the browser.
  3. If you create one, name the file similar to the existing ones for that content type, and make sure it's in the same place by setting file path to match.

Link resources content

One or more sections of resource content can be added to question and exit pages. Each one appears as a collapsable accordion component.

  1. Create a new file in markdown (.md) format in the _resources folder.
  2. For the related-page-name setting, enter the filename of the page you want the resource to appear on, for example, q2-exit.md.
  3. On the related page, enter yes for the resources setting.

This creates the link between the two pieces of content and will result in the resources showing up on that page.

Tip: To sort the resources in the particular order, prepend numbers to the resources filename. This only affects resources that appear on the same page, so you don't have to worry about numbering everything.

Team

This project was built by the Rapid Response Team at Bixal: Philip Levy, Brianna Naolu, and Kayla Chumley, with a special guest appearance by Emilia Nardi for subject matter expertise and UX support.

Credit and license

This project was created using the GitHub Pages gem for Jekyll and a hosted version of the U.S. Web Design System on CDNJS. The content for this tool is based on an improved version of the Complaint Portal Assistant from the Office of Civil Rights at the U.S. Department of Health & Human Services. Photo by National Cancer Institute on Unsplash.

This project is licensed under The Unlicense, which allows everything and promises nothing. 🌊

About

A customizable form for prototyping a screener experience that either enables people to proceed or directs them to other resources based on their responses.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 91.0%
  • JavaScript 5.4%
  • CSS 1.8%
  • SCSS 1.4%
  • Ruby 0.4%