Hello everyone,
I have an use case for Adobe Target in which I must remove an element from a form if a specific checkbox is selected by the user. The approach I was considering consists in sending an mbox parameter to Adobe Target via Adobe Data Collection, stating whether that specific checkbox is selected, and create an audience based on it. This is the Custom Code Data Element I created: return document.querySelector('#elementID').checked;
Given that I already have the general Adobe Target Load Rule created...
... but the "Library Loaded" event does not work for this specific use case, as the user can interact with the checkbox anytime after the page is loaded, I tried creating a new Rule where I set the event as Data Element Change and the condition as the Data Element being true. I then send the parameter with the Data Element value:
However, this did not seem to work when I tested as this parameter did not show up in the call of the Network tab. Additionally, in order to debug this, I inserted a Custom Code action with a simple console.log("hello world") prior to the "Load Target" action and it worked, so I know my event and conditions are correct.
Can anyone help me understand what is wrong with this approach and/or what I should do instead to achieve this?
Thank you in advance.
Best,
Carolina