Expand my Community achievements bar.

WebSDK Update Variables - scope of 'this'

Avatar

Level 2

Hi there,

 

We're working through a WebSDK migration at the moment and I have a question about 'this' scope in Update Variables

 

In old AA:

If I have a rule that fires on clicking something, in AA Update Variables Custom Code the 'this' object references the clicked HTML element.

 

In WebSDK:

Same rule, WebSDK Update Variables Custom Code, the 'this' now is the entire window object.

 

Does anyone have a way to get the clicked HTML element that fired the rule?

 

Side question is there any documentation around which javascript objects/function/etc the Web SDK Ext has access to?

 

Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies