Edit a 'Verified' Address and Retain Its Status¶
When editing an address marked as Verified, any modification to a verified address causes its status to revert to Not checked. This is intentional, and helps maintain data integrity during address verification.
How Address Verification Works¶
The address verification service sets an address status to Verified plus a zero-width space (ZWSP) character (U+200B). This invisible character lets AddressTools distinguish between:
- an address that was already verified before the current transaction
- an address that was verified as part of the current transaction
When the trigger runs, it checks for the ZWSP character:
- if present, it treats the address as already verified in the current context, removes the ZWSP, and does not revert the status to Not checked
- if absent, it treats the status as carried over from an earlier transaction and resets it to Not checked
Preserving the 'Verified' Status After Editing¶
To retain the Verified status after editing an address:
- Check that the status is Verified.
- Append a zero-width space (U+200B) character to the end of the status value.
- Save the updated record.
This ensures the trigger recognises the address as already verified, and prevents the status from resetting.
Example¶
Before saving an updated verified address, the status value should read Verified with the ZWSP (U+200B) included at the end. Without it, the trigger treats the verification as outdated and resets the status.