---
title: "Verify translated validation keeps user-entered values"
description: "Test a localized registration-like sandbox form with multiple invalid fields, ensuring translated errors map to the right inputs and recovery preserves data."
canonical_url: "https://vostride.com/agent-library/localization/translated-validation-keeps-input.md"
md_url: "https://vostride.com/agent-library/localization/translated-validation-keeps-input.md"
content_kind: "recipe"
topic: "localization"
---

# Verify translated validation keeps user-entered values

Test a localized registration-like sandbox form with multiple invalid fields, ensuring translated errors map to the right inputs and recovery preserves data.

## Risk

Validation can display a translated message under the wrong field or reset unaffected input after rejection. Verify errors by field association, then correct only the invalid values and compare the final stored profile.

## Fixtures

- An owned sandbox enrollment form with delivery and account creation isolated from production, using a supported non-default locale.
- An approved translation reference for required name, invalid email, and minimum-length description errors plus a unique valid organization name.
- A disposable test identity and an independent enrollment oracle showing zero records before the test.

## Steps

1. Enter the valid organization name, an invalid email, and a too-short description while leaving the required personal name empty.
2. Submit and verify each approved localized error appears beside its corresponding field, while the valid organization value remains unchanged.
3. Correct the personal name and email only, submit again, and verify the description error remains while the corrected fields no longer show errors.
4. Expand the description to a valid unique value, submit, and verify the success detail shows all corrected fields and the original organization.
5. Inspect the independent enrollment oracle and verify one record with the complete final values and no partial records from either invalid attempt.

## Expected results

- Translated errors are associated with the intended invalid fields at both validation stages.
- Unchanged valid input survives repeated rejection and correction.
- One complete enrollment is stored only after all required values are valid.

## False-pass traps

- Finding a translated error anywhere on the page does not prove correct field association.
- A final success message can conceal partial records created during invalid submissions.

## Cleanup

- Delete the sandbox enrollment and reset the locale and form-draft fixtures.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa test](/docs/agent-qa/configuration/test.md)

- [Localization QA recipes](/agent-library/localization.md)
- [Software factory QA library](/agent-library.md)
