Skip to content

Investigate: Support advanced form question validation #5696

Open
@srtalbot

Description

@srtalbot

User stories

As a program administrator
I need to get the data in a specific format
When I am asking a question in an form question
So that I can validate the response fits our format

For example:

Types of questions/ components it affects:

  • Short answer open text fields
  • Searchable lists that allow new entries
  • Numbers
  • Emails (to check for domain)
  • ...

Suggestion from a client: "Feature Ideas: Would it be possible to enhance the searchable list component with two configurable modes? A strict mode, where users can only select from the provided list (with search functionality). The current mode, where users can search or input new values—but with the added ability for us to define a custom regex pattern and error message to enforce consistent formatting. Having this flexibility would really help with data integrity on our more technical forms."

Out of scope

Connecting to an external database for validation or list management.

Done when

  • 1-week investigation and implementation options that consider:
    • If/ how we vet custom regular expressions (regex)
    • How to support multiple component types
    • Ensuring we do not bypass any validation done on our end that prevents injection attacks or other attack types.
    • Where to place in the UI and how this may evolve when we have Team Management
  • Book time with tech leads and product to review the options and decide on an approach
  • Create cards for implementation and testing

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions