Skip to content

Address Field Not Updating When Switching Address Type in Edited Declaration #12433

@taohidkhan22

Description

@taohidkhan22

Description:
For both Community Leader and Hospital Official roles, when a declaration is created using one address type (e.g., Residential Address or Other), and later edited to switch the address type (Residential ↔ Other), the prefilled address value in the form does not update accordingly. It continues to display the previously selected address data.

However, on the review page, the system correctly identifies this mismatch and marks the address as invalid.

Steps to Reproduce:

  1. Login as Community Leader or Hospital Official
  2. Create a declaration using Residential Address (or Other Address)
  3. Save/submit the declaration
  4. Open the declaration for editing
  5. Change the address type (e.g., Residential → Other or vice versa)
  6. Observe the address field in the form

Expected Result:

  • The address field should reset or update based on the newly selected address type
  • Prefilled values should reflect the correct address structure

Actual Result:

  • The address field continues to show the old prefilled value
  • The change in address type does not properly trigger an update in the form
  • On the review page, the address is marked as invalid due to inconsistency

Videos

adress.field.mp4

Tested on:
https://register.v20-test.e2e-k8s.opencrvs.dev/

Metadata

Metadata

Assignees

Labels

2.0 regressionbugs coming up from 2.0 regression + configuration test including performance test

Type

Projects

Status

In Code Review

Relationships

None yet

Development

No branches or pull requests

Issue actions