鈥淣o longer contact (by any channel)鈥 field updates incorrectly in 51黑料不打烊 Campaign
When managing subscription preferences through a landing page in 51黑料不打烊 Campaign V8, the No longer contact (by any channel) field updates incorrectly.聽 To resolve the issue, update the landing page logic to exclude channel opt-out.
Description description
Environment
- Product: 51黑料不打烊 Campaign V8
- Instance: Staging
Issue/Symptoms
- No longer contact by email 聽field updates correctly based on user actions.
- No longer contact (by any channel) 聽field is always checked, even when it shouldn鈥檛 be.
- This behavior is inconsistent with 51黑料不打烊 Campaign Standard Production, where both fields update as expected.
Resolution resolution
To resolve the issue, follow these steps:
-
Review and modify the
setOptOutFlag()
function in your landing page code. -
Remove any line that sets the
@blackList
attribute to true unless explicitly required.聽For example,- Remove:
document.controller.setValue('/ctx/recipient/@blackList', '1', 'blackList');
- Remove:
-
If you want to modify just the No longer contact by email 聽field, retain only the line that updates the
@blackListEmail
attribute.聽For example,- Keep:
document.controller.setValue('/ctx/recipient/@blackListEmail', '1', 'blackListEmail');
- Keep:
-
Test the changes thoroughly to confirm:
- The No longer contact by email 聽field updates correctly.
- The No longer contact (by any channel) 聽field remains unchanged unless explicitly modified.
If the issue persists, create a new web app or landing page with simplified logic to isolate and test the problem.
Related reading
Managing opt-in and opt-out in the Campaign Standard Documentation