hmrc/design-patterns

Form Valdiation - Sub level inputs

Closed this issue · 3 comments

Some forms have radio buttons when clicked display a sub level input. Currently there is not a pattern in place for error validation with these form types.
A current implementation is:
errorvalidation
An alternative is:
errorvalidation2
An alternative currently used design:
errorvalidation3

@rpowis this is what I was talking about when I said about interaction between components (panel and error) in AF/Elements

Thanks @Fenwick17. And I see what you mean now @adamliptrot-oc.

I wouldn't say that validation is a pattern or even a component in its own right. Validation should be a consideration of a pattern's implementation and most likely will be pattern specific. It looks like part of a payment pattern, but different to Make a payment?

This should be part of a validation pattern but each component should have validation thought about at a component level.