03-02-2021
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
@markusb54298925 What are you doing to try to clear the values or change them? While I get there is nothing out of the box, you can just reset targetPageParams by overwriting it, this object always gets picked up when you call Target global mbox or custom mbox.
Here is how I have set it up real quickly to show what I mean.
1. In Launch, I have a rule that is fired off a custom event, I am calling it "targetReset".
2. For the same Launch rule, I have two items for thee Action section.
3. Lets look at Reset Params... I am overwriting the targetPageParams function. I also have it set to execute globally. The main focus here are lines 23-27, the other logic is something I needed for my environment. This is it for Launch.
4. Lets test it out... In the screenshot below I first call targetPageParams to see what the object has, notice that A: 1 and B: 2, then I create my js event and fire it... Then I call targetPageParams to see what the object has, notice that A: 5 and B: 6 now.
5. And just to make sure the right data was actually set to Target, here are the payloads for each call.
Hopefully this helps.