Develop validation helper functions for our "one idea per page" form patterns to ensure a standard approach to requesting commonly asked personal information.
Acceptance criteria
Common Question Types:
The helper functions must support various commonly asked personal information question types such as:
Name
Date of Birth
Address
Contact Information (Email, Phone Number)
Identification Numbers (e.g., Social Insurance Number)
Connect with @twjeffery for finalized list
Page Layout and Question Content:
Each helper function should define the page layout and question content, ensuring consistency across the forms.
The functions should automatically assign the correct input type (e.g., text, number, date, email) based on the question type.
Each helper function should include predefined error messages for common validation issues, ensuring users receive clear and consistent feedback.
The functions should also provide optional helper text to guide users in providing the correct information.
Validation Rules:
The functions should incorporate validation rules specific to each question type, ensuring data integrity and accuracy.
Documentation:
Documentation must be provided for developers to understand how to implement and customize these helper functions. Include on Question pages on DS website
Background
Develop validation helper functions for our "one idea per page" form patterns to ensure a standard approach to requesting commonly asked personal information.
Acceptance criteria
Common Question Types:
Page Layout and Question Content:
Validation Rules:
Documentation: