SmsFormValidationService requiredTrue message never matches Angular {required:true} #1015

Closed
opened 2026-08-12 07:27:33 +00:00 by spikerj · 1 comment
Owner

Summary

SmsFormValidationService looks up a requiredTrue error key for the agree/consent control, but Angular’s Validators.requiredTrue emits { required: true }. The “You must agree…” message therefore never surfaces via validateForm.

Found by

Wave 6 coverage tick 7 a3 — SMS form-validation specs (ce1736f4).

Expected

Either map required → the agree message for that control, or use a custom validator that sets requiredTrue.

Impact

Users can fail validation without seeing the intended consent error copy.

## Summary `SmsFormValidationService` looks up a `requiredTrue` error key for the agree/consent control, but Angular’s `Validators.requiredTrue` emits `{ required: true }`. The “You must agree…” message therefore never surfaces via `validateForm`. ## Found by Wave 6 coverage tick 7 a3 — SMS form-validation specs (`ce1736f4`). ## Expected Either map `required` → the agree message for that control, or use a custom validator that sets `requiredTrue`. ## Impact Users can fail validation without seeing the intended consent error copy.
Author
Owner

Resolved in spikersoft-angular PR #819 (merged to master). SmsFormValidationService requiredTrue matches Angular {required:true}. Closing.

Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). SmsFormValidationService requiredTrue matches Angular {required:true}. Closing.
Sign in to join this conversation.