Hi Jantzen,
Thanks for taking the time to answer this.
What I would like to do is have a custom condition, and the if the check fails, add the name of the rule to a global variable.
pseudo code:
----------------------------------------------------------------
var result = ( [custom condition logic] );
if( !result ) window.failedRuleArray.push([the name of this rule]);
return result;
----------------------------------------------------------------
for this to work, the condition needs to know the name of the rule/context it is firing within.
The reason for this is that if the user then does and interaction on the page (without reloading the page) that would make the "[custom condition logic]" return true, we can iterate over the rules that previous failed and trigger them off.
This is all related to the General Data Protection Regulation (GDRP) changes